PDA

View Full Version : DEBUGIN not working on 12F629



fredpret
- 22nd September 2007, 03:23
It was very easy to make DEBUGIN work with a 16F628A but the same program does not work if applied for the 12F629.

Is there any special bits etc that I should first take care of?

Here of some of the code;

DEFINE OSCCAL_1K 1

if receive1 <> "s" and reccnt1 = 0 then
'input GPIO.5 ? any use for this?
debugin 20,jret,[receive1]
'output GPIO.5 ?
debug "Receive1", receive1,10,13
endif

JRet: return

I wil appreciate any help.

Thanks,
Freddie

mister_e
- 22nd September 2007, 12:39
This will work at least as long as you disable all analog stuff, as long as your crystal calibration is not lost.

The WHOLE code would help. But first try to read the crystal calibration in your PIC. If my memory serves me well, it should be @ 3FF