These two lines are in usart.bas, and used when there is a second EUSART, like in the 18F46K22.
RCInput As TRISC.Booleans(7), // As TRISG (2)
TXInput As TRISC.Booleans(6) // As TRISG (1)
These instructions would report the condition of the RX/TX pins. But it seems, not correctly, at least for the 46K22 as its RX2/TX2 pins are on PORTD, not PORTC as in the instruction, or PORTG as in the comment.
Likewise in usart2.bas, PORTG is used, so I would think that either usart.bas module would not properly work with a 46K22?
What am I missing here?
usart.bas Question about two lines of code
Moderators: David Barker, Jerry Messina
-
- Swordfish Developer
- Posts: 1470
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
- Senacharim
- Posts: 139
- Joined: Tue Aug 10, 2010 5:19 pm
- Location: Ventura, CA