DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATION ENGINEERING
B.ENG 12T ETU07421: MICROPROCESSOR APPLICATIONS. ASSIGNMENT 5 GROUP SIX (6) MEMBERS. 1. OMARY M. SAID (120647472643) 2. FELIX MWAMBASHI (120647412621) 3. SITTA GEMBEGE (120647492649) 4. ASWILE NIKSMA (120647402611) !. "OHN #HA#HA (100602G$002) 6. BRNO SON%OGO (100602G$317) PRACTICAL REPORT AIM OF THE TAS To design an electronics circuit that convert the analogue signal to the digital signal. In this task the potentiometer was used to set the analogue inputs, and the outputs were observed on the led. TOOLS USED 3. PIC (PIC16!""#$ %. &imulating so'tware (Proteus$ (. )ikroC program PROCEDURES The circuit below was connected b* using proteus so'tware T!" #$%%$&'() '* +!" P,$),-..'() /$0" $# M'1,$C &!'/! &-* 2*"0 +$ 3,$),-. +!" PIC. 2(*')("0 ),$23*'45 6$'0 .-'(() 7 ADCON1 8 0X905 :: CONFIGURE ANALOG IMPUT TRISA 8 0XFF5 ::PORTA IS IMPUT TRISB 8 05 :: PORTB IS OUTPUT PORTB805 TRISC 8 0X;F5 ::PIN R7 AND R6 ARE OUTPUT 0$7 ),$23*'4 8 A0/<R"-0(2) 5 :: GET RESULT OF AD CON=ESION PORTB 8 ),$23*'45 ::SEND LO>ER 9 BITS TO PORTB PORTC 8 ),$23*'4 ?? 25 ::SEND 2 MOST SIGNIFICANT BITS TO RB7@RB6 A &!'%"(1)5 A >!"( +!" 3$+"(+'$."+", &-* 6-,'"0 T!" #$%%$&'() $2+32+ &"," $B*",6"0.
CONCLUSION. rom the above assigned task which was intended to design a program which will convert the +A(-%$)2" *')(-% +$ D')'+-% *')(-%C b* using the )ikro C so'tware which has been used to write the program and the proteus so'tware which was used as simulation tool . #'ter 'eeding the the instructions to the microcontroller (PIC16!!"$ and running simulation the the digital (binar* number , - 1$ was displa*ed b* using .eds which connected to microcontroller,where the 1 digt was represented b* the /0 .ed and , bit was represented b* / .eds. there'ore the task has been succeed.