Kumpulan rangkaian Elektronika dan Mikrokontroler  

Home

About Me Rangkaian Elektronik Tutorial Download Produk Informasi

 

 

 

 

 

 

 

Interfacing AT89C51 with Max232 and ADC0809

 

 

 

The function of this circuit is to convert voltage level of RS232 standard for PC communication port to TTL voltage level of microcontroller.

 

 

 

Figure 1. Interface circuit of  AT89C51 with Max232.

 

 

 

ADC0809 has 8 bit data with 8 analog line. In this page, analog line that will be converted to digital data at line 0, (address is BCA=000). Data are read at external interrupt occur (this external interrupt is happen because of  EOC signal), then save to accumulator.

 

 

 

 

 

Figure 2. Interface circuit of  AT89C51 with ADC0809.

 

 

 

$mod51

           org 00h
           jmp mulai
           org 03h
           jmp ambil

ambil:
           setb p1.3
           mov a, p0
           clr p1.3
           setb p1.1 ;ALE

           setb p1.2; start convertion

           clr p1.1;

           clr p1.2;
           reti

mulai:

          mov tcon, #00h
          setb tcon.0
          mov ie, #00h
          setb ie.7
          setb ie.0
          mov p1, #00; address line=0;
          setb p1.1 ;ALE dan start convertion

          setb p1.2
          clr p1.1

          clr p1.2

ulang:
          jmp ulang

end
 

 

 

 

 

 

Home

About Me Rangkaian Elektronik Tutorial Download Produk Informasi

Contact Webmaster 

© 2008 Wakhyu Dwiono