View previous topic :: View next topic |
Author |
Message |
gfrazier12345
Joined: 01 Oct 2018 Posts: 2
|
RS232 setup for the 18F27K42 |
Posted: Mon Oct 01, 2018 10:01 am |
|
|
#USE RS232 doesnt want to behave for the 27K42. This always worked for the 26K22...
Code: | #USE RS232(BAUD=19200,UART1,STREAM=HOST,ERRORS)
| But I get "U1RX not defined errors.
neither of
Code: | #USE RS232(BAUD=19200,UART1,XMIT=PIN_C6) or
#USE RS232(BAUD=19200,UART1,XMIT=PIN_C6,RCV=PIN_C7)
| work either.
(PS, clock is 64MHz)
Does someone have a UART code example for the 27K42?
Many Thanks
Gary |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19549
|
|
Posted: Mon Oct 01, 2018 10:10 am |
|
|
Look at the sticky near the top of the forum for #PIN SELECT.
On the 27K42, the UART TX and RX are both PPS peripherals.
You are also going to meet the same issue with a lot of other peripheral (timer inputs, SPI etc.). |
|
|
gfrazier12345
Joined: 01 Oct 2018 Posts: 2
|
RS232 setup for the 18F27K42 |
Posted: Mon Oct 01, 2018 1:56 pm |
|
|
Thank so much! |
|
|
|