Shop OBEX P1 Docs P2 Docs Learn Events
SHIFTIN Translation — Parallax Forums

SHIFTIN Translation

ArchiverArchiver Posts: 46,084
edited 2003-10-28 10:08 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-10-28 10:08
    At 09:27 AM 10/28/03 +0000, rimon_its wrote:
    >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
Sign In or Register to comment.