View previous topic :: View next topic |
Author |
Message |
meereck
Joined: 09 Nov 2006 Posts: 173
|
16F1825 - EUSART alternate pin selection |
Posted: Tue Nov 08, 2011 9:28 am |
|
|
Hello,
can anybody tell me how to switch the EUSART for alternate pins C4 and C5?
I have just tested that the basic "#use uart" sets it to A0 and A1 as default.
(which seems weird to me since RXDTSEL,TXCKSEL would therefore be set to 1 as default)
I guess I could use "#pin_select" directive, but I do not know what the correct function name is.
I am using 16F1825.
Regards,
Meereck |
|
|
RF_Developer
Joined: 07 Feb 2011 Posts: 839
|
|
Posted: Tue Nov 08, 2011 9:35 am |
|
|
Try:
#use rs232(..., UART1, ...) // For default
or
#use rs232(..., UART2, ...) // For alternate pins.
RF Developer |
|
|
meereck
Joined: 09 Nov 2006 Posts: 173
|
|
Posted: Wed Nov 09, 2011 3:22 am |
|
|
Thanks, it works. |
|
|
|