Newbie trying to work with Basic Stamp and NCD-106
Archiver
Posts: 46,084
Howdy,
I'm hoping someone can tell me what I'm doing wrong.
I'm trying to get a Basic stamp to talk to a National Control
Devices NCD-106 IC (a PIC microcontroller custom programmed to read
two analog inputs, three digital inputs, and has four digital
outputs thru one serial input and one serial output).
To test it and get used to programming it I'm trying to turn the
first output (with an LED attached to it thru a 390 ohm resistor and
2N2222 transistor) on for one second then off and turn on the second
output for one second etc...
My understanding of it is once it is wired up correctly all I have
to do is send an ASCII signal to pin 6 (the NCD-106's input) telling
it what to do. The signal to send to turn on output 1 is pN1, for
output 2 it would be pN2, and so on.
The command I thought would work was:
serout 15, 16468, [noparse][[/noparse]"pN1", CR]
I've also worded it as:
serout 15, 16468, [noparse][[/noparse]112,78,48,13]
but I've had no luck.
Am I missing something simple in the serout command?
Does anyone know of any links with programming examples for talking
to this or similar serial devices?
I'm not looking for someone to program it for me but any help would
be great.
thanks
Keith
I'm hoping someone can tell me what I'm doing wrong.
I'm trying to get a Basic stamp to talk to a National Control
Devices NCD-106 IC (a PIC microcontroller custom programmed to read
two analog inputs, three digital inputs, and has four digital
outputs thru one serial input and one serial output).
To test it and get used to programming it I'm trying to turn the
first output (with an LED attached to it thru a 390 ohm resistor and
2N2222 transistor) on for one second then off and turn on the second
output for one second etc...
My understanding of it is once it is wired up correctly all I have
to do is send an ASCII signal to pin 6 (the NCD-106's input) telling
it what to do. The signal to send to turn on output 1 is pN1, for
output 2 it would be pN2, and so on.
The command I thought would work was:
serout 15, 16468, [noparse][[/noparse]"pN1", CR]
I've also worded it as:
serout 15, 16468, [noparse][[/noparse]112,78,48,13]
but I've had no luck.
Am I missing something simple in the serout command?
Does anyone know of any links with programming examples for talking
to this or similar serial devices?
I'm not looking for someone to program it for me but any help would
be great.
thanks
Keith