Re: 10F222 no response?
Oooops, my fault ... wrong chip selected 
this one looks to work fine...
Code:
' set parameters
'
ADCON0=0 'all digital I/O
TRISIO=0 'all outputs (GPIO.3 is input only so it's ignored)
DEFINE OSC 8
DEFINE OSCCAL_1K 1
'*************************************
' variables and constants
'
tempvar var byte
'***********************************
' Other housekeeping
'peekcode $1FF, tempvar 'OSCCAL calibration value
'POKE $05, tempvar 'OSCCAL register location
'**************************************************************
' begin program
GPIO.0=0
loophere:
GPIO.0=1
pause 500
GPIO.0=0
pause 500
goto loophere
end
But you should use PEEKCODE along with POKECODE ... but POKECODE needs a CONSTANT to be stored !
Last edited by Acetronics2; - 19th February 2025 at 17:58.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks