New to Propeller, did I damage my P8X32A?
JBlahut
Posts: 5
Hi guys,
I've been playing with a propeller P8X32A (the quickstart board you can pick up at Radio Shack) for about a week now, but this morning I fear I damaged my board somehow. I can load up Prop Tool\Examples\Help\Spin Tutorial\Exercise02-1\Output.spin and the expected LED blinks as it should. If I load up Prop Tool\library\_demos\FullDuplexSerial_Test1.spin I'm no longer receiving the expected text over the USB serial connection (I was last night). And if I load up the project I've been working on (described below) I no longer get serial data output on outa[0] (which is labeled pin 1 on this board) or when I've tried swapping it over to outa[1].
I'm building a score board style display by having the propeller send serial data to RGB LED strips configured into 7-segment displays. The LED strips are connected to a 12v wall-wart power supply and the propeller is drawing power over USB from my computer. I've joined the ground from the wall-wart to pin 39 on the propeller's board to provide a common ground. It's not unusual for me to disconnect the power from the LEDs when I'm not testing them (because they're sitting on my desk and it's rather distracting).
My project and all of the examples/demos that I've mentioned run fine in their current state on a different P8X32A board.
How can I further diagnose the problem? Is there an obvious mistake I've made somewhere in connecting a common ground? What could cause the board to fail the full-duplex serial program and my program, but work fine with another simpler program?
I've been playing with a propeller P8X32A (the quickstart board you can pick up at Radio Shack) for about a week now, but this morning I fear I damaged my board somehow. I can load up Prop Tool\Examples\Help\Spin Tutorial\Exercise02-1\Output.spin and the expected LED blinks as it should. If I load up Prop Tool\library\_demos\FullDuplexSerial_Test1.spin I'm no longer receiving the expected text over the USB serial connection (I was last night). And if I load up the project I've been working on (described below) I no longer get serial data output on outa[0] (which is labeled pin 1 on this board) or when I've tried swapping it over to outa[1].
I'm building a score board style display by having the propeller send serial data to RGB LED strips configured into 7-segment displays. The LED strips are connected to a 12v wall-wart power supply and the propeller is drawing power over USB from my computer. I've joined the ground from the wall-wart to pin 39 on the propeller's board to provide a common ground. It's not unusual for me to disconnect the power from the LEDs when I'm not testing them (because they're sitting on my desk and it's rather distracting).
My project and all of the examples/demos that I've mentioned run fine in their current state on a different P8X32A board.
How can I further diagnose the problem? Is there an obvious mistake I've made somewhere in connecting a common ground? What could cause the board to fail the full-duplex serial program and my program, but work fine with another simpler program?
Comments
If this happened to my board, I'd replace the chip.
Do you have this block in your code?
or
With out that in the CON section Serial I/O does not work because of the timing required.
Another thing to watch out for is mains leakage current if it happens to be a switching wallwart since these PSUs have a small cap from the neutral to the output ground that's responsible for that little bite these PSUs can give you. If you plug in a USB serial into your PC which is earthed somewhere then ground current will flow through the Prop. This also is bad bad bad. Either find a different wallwart that has an earth or don't have an earth anywhere in your circuit or externally.
BTW, once the PLL is damaged, it's damaged, the safeguards mentioned are to prevent this happening,
So I'm looking at two options now: I can isolate the LED circuit entirely by putting an opto-isolator between the prop's serial data output and the LED strip's data input and then abandon the shared ground connection entirely. Or I can abandon the wall wart and run the LEDs off the PC's power supply (which should provide a common ground to both the LEDs and the prop). Are there any pitfalls in these solutions that I'm missing?
Since it is single wire 9600 baud serial you can just use a simple opto-isolator as that is your best bet. The Prop TXD connects to the cathode and you should have a 150R or so in there to limit the drive current and have the output wired with a pullup on the collector of around 3K3 (depends on opto). You still need to replace the Prop though.
It seems that the source of your problem this time around was code. Changing from the default settings can shut out serial communications.
You can just provide power from a 7.2V Lithium cell power place to eliminate concerns about AC mains.
I find it more pleasant to use a battery pack and not have power wires running off to an AC socket. Too many wires going everywhere tend to snag on things unexpectedly.
When in doubt, consider all three.
A. Code configuration
B. Power Source
C. IDE installation