I just tried to run a 28X2 at it's slowest speed using "setfreq k31".
The editor came up with an error that was something along the lines of "setfreq k31" is not supported in this firmware mode. (I don't KNOW my 28X2's but I bought it almost as soon as it came out)
The error message suggested I used "pokesfr $D3,2" instead. So I did
The PICAXE now doesn't seem to be working; I can't download to it (gives same error as if it weren't connected), the sertxd in the program isn't responding, and I can't find anything on the I2C lines which were included in the code using a scope.
This is the exact code I used with the "pokesfr $D3,2" command. I am using the advanced download circuit (don't know if that helps), latest version of PE (5.2.6), windows XP.
Is there any way I can get my PICAXE back?
Addit: Oh the chip was also running at 3.4v while the chip was downloading, it seemed to work ok in that there was no error message for the download.
The editor came up with an error that was something along the lines of "setfreq k31" is not supported in this firmware mode. (I don't KNOW my 28X2's but I bought it almost as soon as it came out)
The error message suggested I used "pokesfr $D3,2" instead. So I did
The PICAXE now doesn't seem to be working; I can't download to it (gives same error as if it weren't connected), the sertxd in the program isn't responding, and I can't find anything on the I2C lines which were included in the code using a scope.
This is the exact code I used with the "pokesfr $D3,2" command. I am using the advanced download circuit (don't know if that helps), latest version of PE (5.2.6), windows XP.
Code:
#Picaxe 28X2
'#Terminal 1200
symbol ENABLE = B.5
symbol MOT_ENABLE = B.4
'SetFreq k31
pokesfr $D3,2
hi2csetup i2cmaster,%00110010,255,i2cbyte
init:
low ENABLE
pause 500
high ENABLE
low MOT_ENABLE
pause 500
hi2cout $0C,($00,$42)
pause 500
main: for b1 = %00000000 to %00000101
pause 50
readi2c b1,(b0)
sertxd (#b0,",")
next
readi2c %00001101,(b0)
sertxd (#b0)
sertxd (CR,LF)
goto main
Addit: Oh the chip was also running at 3.4v while the chip was downloading, it seemed to work ok in that there was no error message for the download.
Last edited: