I have just gotten the chip to ALMOST work correctly. The only port that I can't get control of is GP.2. This port is shared with a clock that seems to be part of the timer, Tmr0. I can't tell from the data sheet, how to gain control. Perhaps someone can help. I figure that once i'm in control of the ports hat it will be much easier to get them to do what I want. Here is the listing that works. Note that GP.3 is always an input and I don't expect to see an noutput on it. Yes, I did throw the kitchen sink at it, but hey...
@ Device PIC10F222, IOFSCS_4MHZ, MCPU_OFF, WDT_OFF, PROTECT_OFF, MCLR_OFF
tmr0= %00000000
TRISIO =%0000
ADCON0 = %000000
GPIO = %0000
Start:
high gpio.2 'test
high gpio.0
high gpio.1
pause 1
low gpio.2
low gpio.0
low gpio.1
pause 9
goto start




Bookmarks