Latest code is...
Code:
Start:
lcdout $fe,$80,"RFM12B OSC test"
lcdout $fe,$94,"1MHz to 10Mhz"
pause 200
dout = $C0F7
gosub Writecmd
goto Start
WriteCMD:
for n = 15 to 0 step -1
CMD[n] = dout.15
dout = dout << 1
next n
lcdout $fe,$c0," "
SCK = 0
nSEL = 0
for nn = 15 to 0 step -1
if cmd[nn] = 1 then
gosub write1
else
gosub write0
endif
lcdout $fe,$14,bin cmd[nn]
next nn
sck = 0
nSel = 1
return
Write0:
SDI = 0 : SCK = 0 : pauseus 16 : SCK = 1 : return
Write1:
SDI = 1 : SCK = 0 : pauseus 16 : SCK = 1 : return
This displays the binary that I want to feed to the RF12 on the LCD... However it still has not changed the osc freq of the RF12. Despite being in a loop giving the command over and over...
Bookmarks