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
Posted: Wed Aug 09, 2006 3:25 am
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( ... ); ...
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