Need to scan only Analog Channel 07 continously

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need to scan only Analog Channel 07 continously

Jump to solution
455 Views
sijeophilip
Contributor I

Hi,

I am trying to scan only AN07 continously and i cannot get the result in my ADC result registers.. I checked for ATD0DR0 and ATD0DR7 as well.. both i am getting no data.. below is the initialization routine for my ATD module in s12XEG128

ATD0DIEN = 0xFF7F;  // Disable digital input on AN0
ATD0CTL0 = 0x00; // Single channel
ATD0CTL1 = 0x50; // 12 bit Resolution and Cap Discharge before next sampling
ATD0CTL2 = 0x62; // Conversion will continue in Stop Mode
ATD0CTL3 = 0x8B; // Result is right justified , 1 conversion per sequence
ATD0CTL4 = 0xFF; // 1.5MHz Fatdclk and sampling at 24 ATD clock i.e. 15.36usec
ATD0CTL5 = 0x67; // Continous mode for single Channel AN7

 

Somebody please help me understand if I am wrong anyplace or missed out on any setting...

Labels (1)
0 Kudos
1 Solution
308 Views
sijeophilip
Contributor I

Write 0x27 value in ATD0CTL5 register to select AN7 channel.

View solution in original post

0 Kudos
1 Reply
309 Views
sijeophilip
Contributor I

Write 0x27 value in ATD0CTL5 register to select AN7 channel.

0 Kudos