Try
DEBUG "9",DEC 3
Try
DEBUG "9",DEC 3
Dave
Always wear safety glasses while programming.
Yes, you need DEBUGIN and DEBUG defines.
I am giving you this stuff from memory and evidently I have forgotton something. When I get back to the shop tonight I will test it and see what I am missing.
Maybe someone will fill in my blanks
Dave
Always wear safety glasses while programming.
The send code
The receive codeCode:DEFINE DEBUG_MODE 1 ' Debug sending INVERTED serial data DEFINE DEBUG_REG PORTB ' Debug Port = PortC DEFINE DEBUG_BIT 3 ' Debug.bit = PortC.4 DEFINE DEBUG_BAUD 2400 ' Default baud rate = 2400 DEBUG "9",DEC 3,$d,$a
I just ran this in real life, it works.Code:DEFINE DEBUGIN_MODE 1 ' Debug sending INVERTED serial data DEFINE DEBUGIN_REG PORTB ' Debug Port = PortC DEFINE DEBUGIN_BIT 4 ' Debug.bit = PortC.4 DEFINE DEBUGIN_BAUD 2400 ' Default baud rate = 2400 DEBUGIN [WAIT("9"),DEC NET]
Sorry for giving it wrong before.
Dave
Always wear safety glasses while programming.
IT WORKS !!!
WOOOOOOHOOOOOOOOOO you ROCK ! :-)
Thank you thank you thank you :-)
By the way that memory of yours was pretty damn close :-)
Seems inverted mode was needed ?
What are the $d and $a for in the line below by the way ?
And now for HSERIN and OUTCode:DEBUG "9",DEC 3,$d,$a
A few questions first ..
1. With HSERIN and OUT , is it a necessity to use the onboard TX/RX pins , in my case PORTC. and PORTC.7 ?
2. Is it pretty much a case of replacing the debug lines with HSERIN as you said in a n earlier posting ?
Thanks again Dave
Dennis
Hello Dennis,
I don't know if Dave is online now, so I thought I'de jump in and answer your 2 questions real quick...As Dave has helped me immensely on the same serial in out topic...Thanks again Dave!
1) The $d $a is a "Carriage Return - Line Feed" terminator
2) Yep, the hardware ports have to be used for HSERIN/OUT.
Hope I helped and didn't offend you Dave
Enjoying this thread, and learning from it too!
Chris
Bookmarks