LCD interfacing +Other Peripherals in AVR Microcontrollers
Microprocessors , Lecture 11:
LCD interfacing +Other Peripherals in AVR Microcontrollers Contents - - PowerPoint PPT Presentation
Microprocessors , Lecture 11: LCD interfacing +Other Peripherals in AVR Microcontrollers Contents A brief overview over the AVR peripherals not covered by the course LCD University of Tehran 2 AVR peripherals University of Tehran 3
Microprocessors , Lecture 11:
University of Tehran 2
covered by the course
University of Tehran 3
University of Tehran 4
University of Tehran 5
University of Tehran 6
should be executed – To make microcontroller enter the sleep mode – Use sleep.h functions in C to enter sleep mode – CPU exits the sleep mode by an external interrupt
University of Tehran 7
University of Tehran 8
memory) is disconnected – Other parts have their clock active
– All clocks are deactivated – Registers and PCs are stored
University of Tehran 9
and doesn’t hang
– Start watchdog timer and set its registers to reset the micro after a time – In program disable the watchdog timer before that time – If the micro is frozen, the code that disables the watchdog is not executed and it resets the micro – Otherwise the watchdog resets the micro
University of Tehran 10
University of Tehran 11
timer
reset time
University of Tehran 12
University of Tehran 13
EEPROM
University of Tehran 14
inputs on AIN0 And AIN1 pins
based on the results to be used by the micro
University of Tehran 15
While(1) { PORTB.1=1; Delay_ms(75); PORTB.1=0; Delay_ms(25); }
University of Tehran 16
University of Tehran 17
University of Tehran 18
University of Tehran 19
important registers:
saves the data to be shown
register: commands received to do something
– e.g. clear display
University of Tehran 20
lcd for 8 bit and 5x7
and 01 should be sent
command:
command on data pins
University of Tehran 21
University of Tehran 22
University of Tehran 23
University of Tehran 24
University of Tehran 25
University of Tehran 26
University of Tehran 27
University of Tehran 28