PDA

View Full Version : 10f206 Blink led



Bonxy
- 10th November 2005, 19:04
Hi all

Anyone know how to get a 10f206 going ?.

i tried a simple blink prog to start but cant even get that to run, i've looked at datasheet and tried all sorts of option_reg and trisgpio combinations but the damn thing just sits there doing nothing, please help if you can.

TRISIO = %11111101
OPTION_REG = %00000000

main:
High GPIO.1
Pause 50
Low GPIO.1
Pause 50
GoTo main
End

mister_e
- 10th November 2005, 19:36
i used those few times in the past without too much problems. I can't check everything where i'm right now but as i remind, you have to disable the analog comparator with CMCON0 register if my memory is good.
try this line at the top of your code... but double check in the datasheet before... i can be wrong here... as often...
CMCON0.3=0
or
CMCON0=0

i can't remind how to exactly... but the first one sounds familiar to me... anyways let us know

Look for your default config fuses... if i'm right MCLR= enable so MCLR should check that.
HTH

Bonxy
- 10th November 2005, 20:01
Hi Mister_e

It worked first go, THANK YOU !!.
It was the CMCON0=0.



CMCON0=0

main:
High GPIO.1
Pause 30
Low GPIO.1
Pause 30
GoTo main
End