Dear all,
Good day!
I use the "WRITE" command in microcode studio plus for PIC18F4620 and I found out during debugging (When I use "DEBUG" command), there is no output is sending out from the PIC18F4620.
Example of my code.
'================================================= ================
step = 0
WRITE $4205, step
.......
.......
goto Checking Step
Checking Step:
READ $ 4205, step
step = step + 1
WRITE $4205, step
DEBUG "step = ",DEC step,10,13 --> (output show on the monitor - use hyperterminal)
if step = 1 then power_on
..........
If step = 14 then multimeter_judge
goto Checking Step
multimeter_judge:
multimeter_string (14) = 0
DEBUGIN timeout,meter_ng, STR multimeter_string\64
WRITE $4210, multimeter_string(0)
WRITE $4211, multimeter_string(1)
WRITE $4212, multimeter_string(2)
WRITE $4213, multimeter_string(3)
if multimeter_string (2)= "H" then judge_ng
goto multimeter_judge
judge_ng:
DEBUG STR multimeter_string(2),10,13 --> No output show on the monitor (I use hyperterminal for
debugging)
'================================================= ================
Any one know what is going on? Why the "DEBUG" command suddenly no function?
TQ and BR
Bookmarks