SHIFTIN Translation
Archiver
Posts: 46,084
Hello All,
Can anybody translate this porgram to use a command other then
SHIFTIN. I am looking to use this program on a PICAXE chip.
I am eading MAX187 ADC values
Thanks
Yossi
'{$STAMP BS2}
sclk CON 5
cs CON 6
serdata CON 7
adc VAR Word
main:
GOSUB convert
GOSUB print
PAUSE 500
GOTO main
print:
DEBUG DEC adc,CR
RETURN
convert:
LOW cs
SHIFTIN serdata,sclk,MSBPOST,[noparse][[/noparse]adc\12]
HIGH cs
RETURN
Can anybody translate this porgram to use a command other then
SHIFTIN. I am looking to use this program on a PICAXE chip.
I am eading MAX187 ADC values
Thanks
Yossi
'{$STAMP BS2}
sclk CON 5
cs CON 6
serdata CON 7
adc VAR Word
main:
GOSUB convert
GOSUB print
PAUSE 500
GOTO main
print:
DEBUG DEC adc,CR
RETURN
convert:
LOW cs
SHIFTIN serdata,sclk,MSBPOST,[noparse][[/noparse]adc\12]
HIGH cs
RETURN
Comments
>Hello All,
>
>Can anybody translate this porgram to use a command other then
>SHIFTIN. I am looking to use this program on a PICAXE chip.
>
>I am eading MAX187 ADC values
>
>Thanks
>
>Yossi
Yossi -
There is a Yahoo Group for the PICAXE microcontroller. That question might
be better asked there. You can gain access to it here:
http://groups.yahoo.com/group/picaxe/
Regards,
Bruce Bates