View previous topic :: View next topic |
Author |
Message |
dieter Guest
|
Rs232 Hardware UART |
Posted: Wed Aug 25, 2004 7:02 am |
|
|
Hello, how can i use the hardware uart in ccs for my PIC16f76? Is there any example-code for doing this??? This would be very helpful. THX |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
|
Posted: Wed Aug 25, 2004 8:28 am |
|
|
Here is an example setup:
#use RS232(baud=9600,xmit=PIN_C6,rcv=PIN_C7,PARITY=N,BITS=8)
Then use getc(), putc() and printf()..... |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Aug 25, 2004 10:52 am |
|
|
Check the examples that came with the compiler. |
|
|
|