Damaged i/o pin part...again..different thread!
KamPutty
Posts: 48
Hi all,
Got my usb prop last week, finally got time and started to get it up...
Here is my code
Looks just like the demo, because it is!
Okay, I cannot get pin 23 to work on the LED!!! I have validated all the LED wiring by just using a different i/o pin, and all works. I just cannot get pin 23 to work!
My setup is very simple:
9v to pin VIN (pin 12)
Ground to VSS (pin 9)
Ground to VSS (pin 29)
3.3 out from VDD (pin 32)
This is my "hello world" program...the very first one and pin 23 does not work!
Is this a defective usb-prop?...
Any thoughts?
~Kam (^8*
Got my usb prop last week, finally got time and started to get it up...
Here is my code
{{ Output.spin }} PUB Toggle dira[noparse][[/noparse]23]~~ repeat !outa[noparse][[/noparse]23] waitcnt(3_000_000 + cnt)
Looks just like the demo, because it is!
Okay, I cannot get pin 23 to work on the LED!!! I have validated all the LED wiring by just using a different i/o pin, and all works. I just cannot get pin 23 to work!
My setup is very simple:
9v to pin VIN (pin 12)
Ground to VSS (pin 9)
Ground to VSS (pin 29)
3.3 out from VDD (pin 32)
This is my "hello world" program...the very first one and pin 23 does not work!
Is this a defective usb-prop?...
Any thoughts?
~Kam (^8*
Comments
What board do you have (Demo Board) ?
How is your LED connected (via resistor & value to gnd/+3v3) ?
I'm using the USB Stick.
From Pin #28 (P23) ---> LED +
LED - ---> 100ohm res
res ---> ground
Any thoughts?
~Kam (^8*
*Peter*
just thoughts:
1. Indentation is very essential in spin. -?
2. You could connect your LED + R between +3.3V and the pin to check if (or which) pin is switched to output.
3. Portnumbers and pinnumbers??
Good luck.
Christof
·