Hello,
does anyone tried to use serout command with 64 Mhz? I have PIC 18LF46K22 with 16 Mhz crystal osc and PLL x 4. So my internal freq. is 64 Mhz. The PIC has 2 hardware serial ports, they are working well. But I need to send something serialy on another pin - debug info and it doesn't work well - most of the characters are not readable. Here is my code:
DEFINE OSC 64
DEFINE DEBUG_REG PORTC
DEFINE DEBUG_BIT 0
DEFINE DEBUG_BAUD 9600
DEFINE DEBUG_MODE 0
DEBUG "GET /"
for i=0 to 30
DEBUG command[i]
if (command[i] == $2F) then goto main
next i
I have on the PC the terminal with USB RS232 TTL converter. It is working well thus I can read the data from hardware serial port without problem. What I am receiving is:
) @¤TTP
the get / which should be at the begining is wrong, these TTP characters are correct but the rest is wrong. I've tried to play with the speed to use e.g. 2400, also I've tried to use serout but no success.
Has anyone idea, what to do? I am using PBP 2.60...
Bookmarks