Hi everyone,
I downloaded the code below and run it, i was expecting to see the msg "Hello World" but nothnig came up. I'm not sure if the problem is with my PIC16F877 running with 4MHz or HyperTerminal.
I think the PIC is sending the data, as the LED connected to TX (pin 25, PORTC.6) is falshing continously. However the receive pin of the DB-9 connecter (pin 2) is HIGH all the time and don't know what that means.
HyperTerminal is set to 9600- 8-N- 1
I'm just wondering if i'm supposed to see the output on the Terminal? And if not how can i test/ see the result?
Cheers,
Tom
Define LOADER_USED 1
Include "modedefs.bas" ' Mode definitions for Serout
loop: Serout2 PORTC.6,16468,["Hello",10,13] ' Display "Hello", next line
Pause 500 ' Wait .5 second
Serout2 PORTC.6,16468,["World",10,13,10,13] ' Display "World", skip a line
Pause 500 ' Wait .5 second
Goto loop ' Do it forever
End
Bookmarks