PIng))) with Picaxe 28X1
I am using a Ping))) with 28x1 proto board and have it wired per this article http://letsmakerobots.com/node/1276 i am using the code snippet from that article aswell. I am trying to determine the distance of my ping and am having a hard time debuging. How would i go about doing this?
Here is my debug code.
Main:
LOW PORTC 0
HIGH PORTC 0
PAUSE 1
LOW PORTC 0
LET DIRSC = %00000000
PULSIN 0, 1, what goes here for the input?
debug
goto Main



@ Thu, 2009-09-24 19:35
yeah i tried W0 and W1 but i
@ Thu, 2009-09-24 19:41
On the PICAXE processors,
On the PICAXE processors, the word variables w0, w1, etc. are made up of two byte pairs. So w0 is made up of b0+b1, w1 is made up of b2+b3, etc.
On the PICAXE programmer debug screen, you'll see b0 through b13 (I think) by default. You can expand the debug screen and see defined word variables as well, or just look at b0 and b1 for w0.
@ Thu, 2009-09-24 06:27
The sample code you linked