PDA

View Full Version : Serial protocol not supported?



paxmowa
- 10th September 2007, 16:15
Hello,

I need to send serial data asynchronously using a frame format of 1 start, 8 data and 1 stop bits.

I've been looking around in the manual and this doesn't seem to be supported.

Am I overlooking something here or will I need to write everything from scratch?

Thank in advance,
Steve

Bruce
- 11th September 2007, 05:47
1 start, 8 data, and 1 stop bit is pretty standard stuff. Nothing special with this.

serin/serout, serin2/serout2, hserin/hserout will all work fine. No need to roll your own.

90alper90
- 11th September 2007, 12:55
If your PIC have UART.I think right way is using HSERIN. :)

paxmowa
- 11th September 2007, 14:11
Oh my,

Shame on me and RTFM i guess.
My PIC indeed has hardware USART on board, should have read the manual.

Just had to set the baud rate and such and of we go...

I will never ask stupid questions on monday ever again (i think).

Thanks,
steve