Conrado Haehnel

Problems with QD2 ADC

Discussion created by Conrado Haehnel on Feb 17, 2009
Latest reply on Feb 20, 2009 by Conrado Haehnel
I am using the QD2 and I have problems with the ADC
 
The instructions for Init_ADC init code are:
 
                     LDA     #$18
                     STA     SPMSC1
 
                     LDA     #$F0
                     STA     ADCCFG                                               
      
                     MOV     #$01,ADCSC1
      
                     LDA     #$02
                     STA     APCTL1
 
In de Loop:
 
                    BSET    ADCSC1_ADCH1,ADCSC1
              
            
WAIT           TST     ADCSC1 
                    BPL     WAIT
                                                                               
                    LDA     ADCRL   
                    ........................
 
But ADCRL it is always $00
 
I need some help  
That I am making bad
 
 
      

Outcomes