Help with MEMKey
Liquidaudio
Posts: 8
Hello
I have been trying for a week now to get my MEMKey working and it seems to have no communication. Here is my program:
'{$stamp BS2p}
'{$PBASIC 2.5}
INPUT 2 'TM
OUTPUT 12 'FM
INPUT 14 'key
TM CON 2
FM CON 12
key CON 14
baud CON 396 '2400 baud
HIGH 14 'reset time
PAUSE 1000
''''''''''''''''''''''''''''' Typematic delay and rate ''''''''''''''''''''''''''''''''
'2.5ms per unit
SEROUT FM, baud, [noparse][[/noparse]$02,$F0,$0C] 'program typmatic delay=600ms and rate=30ms
PAUSE 10 'EEPROM write time
SEROUT FM, baud, [noparse][[/noparse]$03] 'Read what was written to typematic register
SERIN TM, baud, [noparse][[/noparse]B0,B1]
DEBUG "delay: ", DEC B0, CR, "rate: ", DEC B1, CR
When I run this the stamp (BS2p24) runs up to the serin command and nothing is returned by the MEMKey, so it hangs at that command. I would like to know if there is a problem I have overlooked or should I call tech support since it is only 1 week old? I measure 5.0V on all pins all the time (referencing the GND pin on the MEMKey)
Thanks, John
I have been trying for a week now to get my MEMKey working and it seems to have no communication. Here is my program:
'{$stamp BS2p}
'{$PBASIC 2.5}
INPUT 2 'TM
OUTPUT 12 'FM
INPUT 14 'key
TM CON 2
FM CON 12
key CON 14
baud CON 396 '2400 baud
HIGH 14 'reset time
PAUSE 1000
''''''''''''''''''''''''''''' Typematic delay and rate ''''''''''''''''''''''''''''''''
'2.5ms per unit
SEROUT FM, baud, [noparse][[/noparse]$02,$F0,$0C] 'program typmatic delay=600ms and rate=30ms
PAUSE 10 'EEPROM write time
SEROUT FM, baud, [noparse][[/noparse]$03] 'Read what was written to typematic register
SERIN TM, baud, [noparse][[/noparse]B0,B1]
DEBUG "delay: ", DEC B0, CR, "rate: ", DEC B1, CR
When I run this the stamp (BS2p24) runs up to the serin command and nothing is returned by the MEMKey, so it hangs at that command. I would like to know if there is a problem I have overlooked or should I call tech support since it is only 1 week old? I measure 5.0V on all pins all the time (referencing the GND pin on the MEMKey)
Thanks, John
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
Thanks for the info. I changed the baud value to 1021 and there is still no change in what is received (or not received), all of the pins still stay at 5.0V. Next, I put a debug statement in between the serout and serin commands and it shows on the debug screen, but still nothing from the memkey. I have triple checked that I am using the correct I/O pins as set in the program.
Thanks, John
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
After rewiring and downloading I saw a whole lot of nothing, still a blank debug window after ~1minute. I think this also rules out any bad pins since they have all changed except P2.
Thanks, John
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
kelvin