TRISB.7 = 1
TRISC.7 = 1
RX1 and RX2 Pins = input pins.
TRISB.7 = 1
TRISC.7 = 1
RX1 and RX2 Pins = input pins.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
I only see 6 of the 8 TRIS bits being set for each port.
Dave Purola,
N8NTA
EN82fn
Something happened in the cut and paste, all 8 TRIS bits are set.
I did change the bits to inputs and it didn't resolve the issue:
TRISA = %11111111 ' Setup TRIS
TRISB = %11110000
TRISC = %11111111
Any other suggestions on why hserin2 may not be working?
Thanks
George
no 1
http://www.picbasic.co.uk/forum/showthread.php?t=19594
no 2
what is it 8 or 16 ?OSCCON = 110010 ' Set internal 8Mhz OSC
Define OSC 16
no 3
that's not a configuration , it does nothing'Configuration
DEFINE FOSC INTIO67
no 4
main does not exist in the snippet , who knows what goes on therehserin2 100, main, [hex char2]
no 5
given that hserin2 does infact work correctly when used correctly , the fault probably lies in the code not shown
Warning I'm not a teacher
Bookmarks