What's wrong with this Propeller?
Ken Peterson
Posts: 806
Hi all,
I have a Propeller Protoboard with a problem. To test it, I run the following program on it. It basically clocks all of the pins high and low at 0.5 Hz. I use this program all the time to check suspect Propellers for proper pin operation.
When I run the program on this particular Protoboard, I get a constant voltage of 0 - 1.7V (depending on the pin) except for pins 28 and 29 which are at a constant 3.3V. The funny thing is that it loads the program, programs and verifies the EEPROM all without error, but after the program is loaded I don't see the output on the pins as expected - including pins 28 - 31.
Any ideas what's wrong with it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 3/20/2009 6:14:48 PM GMT
I have a Propeller Protoboard with a problem. To test it, I run the following program on it. It basically clocks all of the pins high and low at 0.5 Hz. I use this program all the time to check suspect Propellers for proper pin operation.
CON _clkmode = RCFAST pub main dira[noparse][[/noparse]31..0]~~ repeat waitcnt(clkfreq+cnt) !outa[noparse][[/noparse]31..0]
When I run the program on this particular Protoboard, I get a constant voltage of 0 - 1.7V (depending on the pin) except for pins 28 and 29 which are at a constant 3.3V. The funny thing is that it loads the program, programs and verifies the EEPROM all without error, but after the program is loaded I don't see the output on the pins as expected - including pins 28 - 31.
Any ideas what's wrong with it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 3/20/2009 6:14:48 PM GMT
Comments
When something like this happens to me, it's usually one of three things:
1. The programming cable is actually plugged into another board,
2. I hit F9 instead of F10 or F11 (old BASIC Stamp habit),
3. The scope probe is lying on the bench instead of being clipped onto a signal.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 3/20/2009 6:23:05 PM GMT
We've had this exact thing happen with two or three Protoboards for no apparent reason. I've put together numerous custom boards and hand-soldered the Propellers (44 QFP) down, and I didn't have this happen to any of them. Seems pretty strange to me.
If I use RCFAST, would this rule out a bad PLL?
BTW: I watched the display (loading, programming eeprom, verifying.. etc.) so I didn't hit the wrong key. It's plugged into the right board because it's the only board on my desk. And I'm using a DMM to check the pins so I'm sure that's connected.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 3/20/2009 6:28:04 PM GMT
I think you're getting a bus conflict on pin A31, which causes the Prop to draw too much power, causing a brownout and a subsequent reset. Try excluding pins A28-A31 and see what happens.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 3/20/2009 7:09:10 PM GMT
smbaker:· I also had the test program running at a higher frequency using the crystal.· I scoped the crystal and saw 5MHz on both pins.· I am running the test program on RCFAST hoping to rule out a bad PLL.· The boot loader runs on RCFAST because not all Propellers have a crystal on them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 3/20/2009 7:25:42 PM GMT
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
I·was using the flux pen from spark fun. I know it sounds wierd but i tested the conductivity of the flux by just painting a little on soem cardboard·and even when it basically dried i was getting like 100k ohms
It was driving me nuts.
OOPS sorry i see this is a propeller proto board your talking abotu not a custom board.... so probably ignore this post [noparse]:)[/noparse]
Jesse
·
-Phil
-Phil
I don't do much Prop Programming (tempus fugit), but (1) What is cnt initialized to? Also, I would initialize the pins to some known state:
dira[noparse][[/noparse]31..0]~~
outa := $AAAAAAAA
And if I was really desperate, simply put a repeat (loop forever) after the outa command.
HTH,
--Rich
-Phil
Wild thought: Are you using the USB protoboard? If so, toggling A30 and A31 like you're doing will repetitively reset the Prop if the USB cable is unplugged.
-Phil
The 3.3V on 28 and 29 is what you would expect from pullup resistors. What do you measure on all the pins when you hold the reset in? As a normal step simplify you code down to a single pin and confirm that works first then stage up until you hit a problem (could be a short).
*Peter*
I do think all of the pins are inputs for some reason, but what's stumping me is why the boot loader program is running with no apparent problem but nothing else works. I tried toggling only pins 28 and 29 and that didn't even work. How is it programming the EEPROM?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup