Pulse Signals Jumping Pins

Discussion specific to the 24-pin ZX microcontrollers, e.g. ZX-24r, ZX-24s and ZX-24t.
Post Reply
everest
Posts: 96
Joined: 31 May 2010, 9:01 AM

Pulse Signals Jumping Pins

Post by everest »

Don,

I'm trying to drive some servos with my ZX24r processor and I'm seeing some thing strange on several pins. Here's an example:

Code: Select all

Call Pulseout (9, 1500.0 * 0.000001, 1)
'Call Pulseout (10, 1500.0 * 0.000001, 1)
This code produces nice 1.5Ms pulses on Pin 9 as I expect. What I did NOT expect was a "phantom" pulse on Pin 10 which is exactly what I'm seeing. I've attached a snapshot from my Oscilloscope showing the issue. Note that I'm running the code above, and I'm clipped into Pin10 on my ZX24r.

I can uncomment the Pin 10 line in the above snippet and then I get a double pulse on Pin10 (and on Pin9 as well). I've shown a shot of that below too.

Any ideas on this? I'm totally stumped. . .could I have a damaged chip somehow?

-Jeff
Attachments
ZX24r Pin Bleed.jpg
Here's a O'scope shot with Pin10 supposedly doing nothing.
(214.22 KiB) Downloaded 1694 times
ZX24r Pin Bleed #2.jpg
This shot has pulses running on both pins 9 and 10. Note that you can see the generate pulse on Pin 10 here (where I'm clipped) but you can also see the Pin 9 pulse.
(216.43 KiB) Downloaded 1723 times
spamiam
Posts: 739
Joined: 13 November 2005, 6:39 AM

Post by spamiam »

Well, the unconnected pin's (10) signal is not the same frequency as the one getting the pulseout (9). The unconnected pin appears to have 60 hz power line hum.

Hook up a lead to the power supply and see if it matches the signal on pin 10.

Put a big electrolytic cap near the ZX (across the VCC and GND) and also add a couple 0.1uF ceramics in parallel with the electrolytc. Does that reduce the noise on pin 10?

-Tony
twesthoff
Posts: 247
Joined: 17 March 2006, 6:45 AM
Location: Fredericksburg, VA

RE: Pulse signals jumping pins

Post by twesthoff »

You did not say if the pin you were measuring was connected to anything. If it was floating free I would expect to see what you are getting. Temporarily connect a 10K resistor (or any other similar value) from the pin to ground and see if the phantom signals go away.
everest
Posts: 96
Joined: 31 May 2010, 9:01 AM

Post by everest »

Sorry, I should have mentioned that I did hook up a pull-down resistor to the floating pins and still saw the same behavior. The issue is not with the power supply, it's directly related to the other pin, I can change the timing on the "phantom pulse" but adjusting the other pin. VERY strange.

UPDATE: As of this morning the entire chip has died. I left it running a series of tasks all night last night, and this morning it is totally DOA. IT gets extremely hot and pulls a lot of current so I suspect something is shorted out internally???

Don,

Is there any way to repair one of these? I hate to drop $50 for another one, particularly when I'm not really sure why this one decided to go belly up. I've tested/checked my schematics, used ZX24p processors with no issues. . .and last night the chip actually wasn't even connected to anything at all, I dropped it right into a development board with nothing hooked up, just letting it run several tasks. Quite a mystery from my perspective. . .maybe static zapped it somehow???
spamiam
Posts: 739
Joined: 13 November 2005, 6:39 AM

Post by spamiam »

everest wrote:it's directly related to the other pin, I can change the timing on the "phantom pulse" but adjusting the other pin. VERY strange.
But I don't think it was directly related! The frequency of the switching on pin 9 was between 72 and 85Hz and the "phantom" signal was 59.7 and 59.8 Hz. That is quite a bit different to me!

It looked to me that they were completely unrelated....

I have only killed AVR CPUs by miswiring them and pulling a lot of curent through a pin, or by having nasty spikes, like inductive spikes hitting the uC.

-Tony
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

everest wrote:Is there any way to repair one of these?
One could de-solder the 44-pin TQFP chip and replace it but that would require a special-order chip.
everest wrote:I hate to drop $50 for another one [...]
If you'll send back that one for analysis, we'll send a replacement. Send it to the address below (First Class is fine if well-packaged).

Elba Corp.
10915 SW Avocet Ct.
Beaverton, OR 97007
- Don Kinzer
Don_Kirby
Posts: 341
Joined: 15 October 2006, 3:48 AM
Location: Long Island, New York

Post by Don_Kirby »

everest wrote: UPDATE: As of this morning the entire chip has died. I left it running a series of tasks all night last night, and this morning it is totally DOA.
While the excessive heat issue is certainly something to be concerned about, have you tried an emergency update using the techniques specified in section 9.1.1 of the Language Reference?
everest
Posts: 96
Joined: 31 May 2010, 9:01 AM

Post by everest »

Thanks for all the replies, and Don I'll ship out the chip tomorrow. I'd be very interested if you could let me know what the issue was/is, and particularly if it could have possibly been anything I did to the processor.

I have a hard time with my static electricity theory given that my ZX24P took a moderately close proximity lightning strike without batting an eyelash.

So I'm just stumped. Fortunately I've got a few 328n chips with interface boards lying around, plus a spare ZX24p. . .so the fun goes on!

-Jeff
Post Reply