Micro Con
Micro Con
M.E. (Embedded System Technologies) Through MBCBS Assignment I ES9201 MICRO CONTROLLER BASED SYSTEM DESIGN AND APPLICATIONS Last Date of Submission : 13.09.08 UNIT-I 1. Write 8051 assembly language program to perform the following operations: A) To arrange the one hundred data bytes in an array that is stored from the address 2000H in data memory, in ascending order. B) To convert the given 8-bit binary number to BCD number C) To convert the given 8-bit binary number to ASCII code and Vice-versa D) To convert the given 8-bit binary number to seven segment code UNIT-II 2. Write 8051 assembly language program to generate a square wave of 1 Hz in port pin P1.7 by i) software delay, ii) polling of Timer1 overflow flag and iii)using Timer1 overflow interrupt. 3. Draw the interfacing diagram and write 8051 assembly language program to generate sine wave and triangular wave of 1 KHz frequency using DAC. The crystal frequency is 12MHz. 4. Interface an ADC 0804 with 8051 and write 8051 program to get one hundred digital data from the ADC with a sampling time of 10mS and store the data from the address 2000H in external data memory. The conversion time of ADC is 110 microseconds. 5. Write 8051 program to transmit the message EXIT repeatedly through the serial port of 8051 at 9600 baud rate in mode 1 by i) polling of TI flag ii) by using TI interrupt. 6. Interface the following memory chips with an 8051 so as to have the following addresses using i) NAND gate decoders and ii) 74138. MEMORY CHIP 4KX8 PROGRAM ROM 4KX8 DATA ROM 4KX8 DATA RAM ADDRESS 0000H-0FFFH 2000H-2FFFH 4000H-4FFFH
7. Write 8051 program to generate square wave of 100 Hz with 25% duty cycle in port pin p1.7 using i) timer 1 interrupt ii) pure software delay .