Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/03 18:38
Read: times


 
#45190 - ADuC812 and ADC problem
hi there . and thank you again for all your help

my problem is that i'm new to assembly and aduc812, and know no one who can help , but i'm trying my best

my new problem is as fallow : the phytec training kit and GPIO_ Expansion board that i use offer direct access to ADC(0-7) and DAC(0-1), and what i want to do is supply (0-5v) into ADC0 and do ADC and then move the result from ADCDATAL into DAC0

the code i wrote do nothing like that and i do not know why

the code is :

;------------------------------------------------------------------------------------

ORG 00000H

;SET adccon1

MOV 0EFH,#07CH ; NORMAL A/D CON.

; SET ADCCON2

MOV 0D8H,#020H ; CONTINUOUS CON. AT CHANNEL 0

MOV A,0D9H ; STORE THE RESULT INTO A FROM ADCDATAL

MOV DPTR,#0F9H

MOVX @DPTR,A ;MOVE THE DATA INTO DAC0L

END

;-------------------------------------------------------------------------------------

I THINK IT IS VERY SIMPLE CODE but still something is not working



List of 16 messages in thread
TopicAuthorDate
ADuC812 and ADC problem            01/01/70 00:00      
   RE: ADuC812 and ADC problem            01/01/70 00:00      
      RE: ADuC812 and ADC problem            01/01/70 00:00      
         RE: ADuC812 and ADC problem            01/01/70 00:00      
            RE: ADuC812 and ADC problem            01/01/70 00:00      
         RE: ADuC812 and ADC problem            01/01/70 00:00      
            RE: ADuC812 and ADC problem            01/01/70 00:00      
            RE: ADuC812 and ADC problem            01/01/70 00:00      
   RE: ADuC812 and ADC problem            01/01/70 00:00      
      RE: ADuC812 and ADC problem            01/01/70 00:00      
   RE: ADuC812 and ADC problem            01/01/70 00:00      
      RE: ADuC812 and ADC problem - Hans            01/01/70 00:00      
         RE: ADuC812 and ADC problem - Hans            01/01/70 00:00      
      RE: ADuC812 and, Raghu, Rami            01/01/70 00:00      
      RE: ADuC812 and, Raghu, Rami            01/01/70 00:00      
      RE: ADuC812 and, Raghu, Rami            01/01/70 00:00      

Back to Subject List