Tamasco
Full Member level 3

Hi Everyone !!
I simulated an 8051 with an ADC8004 but got some unexpected results. The following is the schematic. For simplicity, I output the result to leds. The output is the same irrespective of the value of Vin!
The following is the assembly code :
***************************************************
Org 0h
start:
mov A,P2 ; save ADC data to Accumulator
mov P3, A ; output data
sjmp start
end
**************************************************
What could be this problem?
I would indeed be very grateful for your input. Thanks in advance.
I simulated an 8051 with an ADC8004 but got some unexpected results. The following is the schematic. For simplicity, I output the result to leds. The output is the same irrespective of the value of Vin!
The following is the assembly code :
***************************************************
Org 0h
start:
mov A,P2 ; save ADC data to Accumulator
mov P3, A ; output data
sjmp start
end
**************************************************
What could be this problem?
I would indeed be very grateful for your input. Thanks in advance.