CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

LIN bus and EUSART

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

LIN bus and EUSART
PostPosted: Tue Dec 27, 2005 3:21 am     Reply with quote

Hi Everybody,

I'm writing a code for LIN bus master mode.

As reported in datasheet of PIC16F690 there is a possibiliti to send a break sequence automatically setting TXEN and SENDB bits in TXSTA register.

is this mode supported by CCS ?

Shall I change the TXSTA bit manually in second time ?

Have you got any suggest about ?

Thanks for help,
ploana



Joined: 24 Jul 2006
Posts: 6

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 3:25 am     Reply with quote

Hi

you will need EUSART only for slave mode.
If you use the CCS Comiler and you use #rs232() you will have bi problems by changing the pins manually.
For master Mode by LIN-Bus:
putc(0x0F) with UART-speed of 20000kBit/s 250µs-5ms(Wake up)

delay_ms(130) wait 100-150ms

and then you can begin with your Header frame:
//sync Break
set_uart_speed( 13000 );
putc(0x00);

//sync Field
set_uart_speed( 19200 );
putc(0x55);

then you can send your protected identifier with putc( ... ); ...
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Thu Aug 10, 2006 12:05 am     Reply with quote

Hi ploana,

At the moment project with LIN BUS stopped.

Thanks for help anyway.

Regards,
Fabri
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group