| free hosting image hosting hosting reseller online album e-shop famous people | ||
![]() ![]() |
||
| WWW.8051.TK TUTORIAL MICROCONTROLLER 8051 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
2.5. Analog to Digital Converter The easiest way to do analog to digital conversion
is to use an IC such as the ADC0804 that does the work for you. The
analog voltage is applied to pin 6 and the result is available at pins
11 through 18. We will connect pin 1 and 2 (Chip Select and Read) to
ground so that the chip is always enabled. (If you wanted to use more
than one ADC you could use this pin to control which chip is currently
enabled).
Figure 2.5.1 Typical connection of free running mode For example: The input range of ADC is 0 - 5 volt then we must setting Vref = 0.5 Vin maximum or = 2.5 volt because this ADC0804 is 8 bit then
Stage 1) Org 0h start: mov A,P0 ; saving data ADC to Accumulator
|
Programmer Lesson 1:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||