ZX24ae ADC jitter

Discussion specific to the 24-pin ZX microcontrollers, e.g. ZX-24r, ZX-24s and ZX-24t.
Post Reply
pjc30943
Posts: 220
Joined: 01 December 2005, 18:45 PM

ZX24ae ADC jitter

Post by pjc30943 »

Just got the ZX24ae from OakMicros; it's a nice device.
Here's a question on it:

Looking at a steady input going straight into an ADC pin (porta.5) of the zx24ae, I measure a solid voltage (at the solder joint on the zx42ae pcb) that fluctuates less than 1mV worst case. However, the getADC() result still varies by 3 counts; how can this be?

The power supply is solid as well to <=1mV.

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

Post by dkinzer »

The ADC readings can be affected by local noise generated by digital outputs changing, etc. The GetADC() function is a simple interface to the A/D converter that is easy to use but it does have shortcomings. To get optimal ADC results you may need to use one of the sleep modes to provide a quieter environment for the converter. The ADC section in the mega32 or mega644 datasheet describes ways to improve ADC accuracy.
- Don Kinzer
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post by mikep »

I retested a ZX-24ae on my test bench and got solid, consistent ADC readings.

Did you check your input signal and/or voltage source using a scope or a voltmeter? Not withstanding what Don has already suggested, you may have a noisy environment such as robot motors that is causing the problem.
Mike Perks
pjc30943
Posts: 220
Joined: 01 December 2005, 18:45 PM

Post by pjc30943 »

Thanks for the thoughts guys.

As stated, the source is verified to be stable with a scope. There are no IO ops occurring, since this was just a test function; nor are there noise sources nearby.

I'll check into the mega644 datasheet, Don.

After I check a few more things I'll post back.
Post Reply