Search found 5 matches

by dajacobs
10 December 2010, 16:45 PM
Forum: ZX-1281
Topic: zx-128A1 Dev Board: Reading ADC Calibration
Replies: 6
Views: 15346

Generally, each inline assembly sequence must either stand alone or else convey intermediate results through C variables. This limitation, along with the very complex syntax of the gcc inline assembly construct, leads many to opt for writing C-callable assembly routines rather than using inline ass...
by dajacobs
10 December 2010, 15:29 PM
Forum: ZX-1281
Topic: zx-128A1 Dev Board: Reading ADC Calibration
Replies: 6
Views: 15346

Don, Thank you for the response. I guess I have been bashing my head over this process for nothing. But to clarify, when you refer to the XMEGA initialization code when is that process accomplished? The XMEGA A manual says that the ADCACAL0 and ADCACAL1 contains the calibration value for the Analog ...
by dajacobs
10 December 2010, 11:50 AM
Forum: ZX-1281
Topic: zx-128A1 Dev Board: Reading ADC Calibration
Replies: 6
Views: 15346

zx-128A1 Dev Board: Reading ADC Calibration

Hello, I am having some issues retrieving the calibration values from the flash memory on the board. I am not sure if the post should be here or in the code section so feel free to move it as necessary. The manual gives three steps 1.Load the Z-pointer with the byte address to read. 2.Load the NVM C...
by dajacobs
08 December 2010, 14:46 PM
Forum: ZX-1281
Topic: zx-128a1 Dev Board QDEC Implementation
Replies: 6
Views: 14761

Thank you all. I ended up redoing all the wiring and that appears to have cleaned up my issue. The final code is as I originally posted.
by dajacobs
01 December 2010, 1:03 AM
Forum: ZX-1281
Topic: zx-128a1 Dev Board QDEC Implementation
Replies: 6
Views: 14761

zx-128a1 Dev Board QDEC Implementation

Hello, I am looking for some support on implementing the QDEC on the ZX-128a1 Dev Board. I have an optical encoder connected to A.0 and A.1. After following the instructions in the Atmel XMEGA manual, I have an interesting repeatable error. I am able to get counts in both directions when I rotate th...