Hi All
OK I now have set :-
TRISB=%00000111 As per Data sheet ...... Really thought that would cure my issue
Stripped code back to :-
Main:
HSERIN 5000, timeout,[char]
HSEROUT[char]
Goto main
Timeout:
HSEROUT["Back to loop"]
Goto Main
Connecting Hyperterminal via a Max232 .....
Still nothing ... Hyperterminal is outputting as if i link tx/rx on 5v side I see the echo
Tried different 16f628A...
I am suspecting a config issue ..... As I can output directly to Hyperterminal OK :-
DEFINE OSC 8
DEFINE HSER_TXSTA 24H
DEFINE HSER_RCSTA 90H
DEFINE HSER_BAUD 9615
DEFINE HSER_CLROERR 1
'76543210
TRISA=%00000010 'Make RA1 input
TRISB=%00000111 'Make RB0 input and set RX/TX
PORTA=%00000000 'Port A all low
PORTB=%00000000 'Port B all low
CMCON=7
HSEROUT["This is a test"] ' Works fine
Help..... :-)
Andy
Bookmarks