How to control LCD with ATmega128
Author:Bu Chunyan Time:2021-07-22 14:37 Browse(656)
ATmega128 + RTL8019 development board

.

How to control LCD with ATmega128

C program design and practice directory of AVR ATmega128 MCU.
.
Chapter 1 overview of AVR MCU 1.
1.1 introduction of AVR MCU 1.
1.2 Harvard structure and von Neumann structure 1.
1.3 RISC and cisc2.
1.4 introduction of ISP 2.
Chapter 2 overview of ATmega128 MCU 4.
2.1 combination of ATmega128 MCU Structure and main performance 4.
2.2 external pin 7.
2.3 AVR CPU core 8.
2.4 ATmega128 memory 11.
2.5 synchronous serial port spi16.
2.6 two wire serial interface twi20.
Chapter 3 system clock and system control 25.
3.1 clock selection 25.
3.2 crystal oscillator 27.
3.3 low frequency crystal oscillator 27.
3.4 external RC oscillator 28
3.5 standard internal RC oscillator 28.
3.6 external clock 29.
3.7 timer / counter oscillator 29.
3.8 system control and reset 29.
3.9 watchdog timer 31.
Chapter 4 settings of ATmega128 kit development environment 33.
4.1 composition of ATmega128 kit 33.
4.2 download and installation of compiler 40.
Chapter 44.3 download and installation of AVR ISP software 45.
4.4 setting of ponyprog2000 48.
Chapter 5 I / O port 55.
5.1 structure and function of I / O port 55.
5.2 registers related to I / O port 58.
5.3 compilation and program download 59.
5.4 hardware circuit diagram 60.
5.5 Experiment 1 -- led shift 62.
5.6 Experiment 2 -- turn off led63 one by one.
5.7 Experiment 3 -- number of 7 segments The code tube displays the number 64.
Chapter 6 external interrupt 65.
6.1 interrupt overview 65.
6.2 registers related to interrupt 65.
6.3 hardware circuit diagram 67.
6.4 Experiment 4 - 7 segments of nixie tube display the number 68.
6.5 Experiment 5 - int069 without anti shake circuit.
6.6 Experiment 6 - use interrupt flag 70.
Chapter 7 timer / counter 72.
7.1 timer / counter Introduction 72.
7.2 timer / counter 0 (8 bits) 72.
7.3 timer / counter 1 3 (16 bit timer / counter) 77.
7.4 timer / counter 2 (8 bits) 86.
7.5 output comparison modulator (ocm1c2) 87.
7.6 Experiment 7 -- count (overflow interrupt) 89.
7.7 Experiment 8 -- count (overflow flag) 90.
7.8 experiment 9 -- timer (overflow interrupt) 91.
7.6 Experiment 7 -- count (overflow interrupt) 897.9 experiment 10 -- timer (overflow flag) 92.
7.10 experiment 11 -- timer (compare a match) 93.
Chapter 8 7-segment nixie tube and key 95.
8.1 7-segment nixie tube and 82c5595.
8.2 hardware circuit diagram 98.
8.3 experiment 12 -- 7-segment nixie tube cycle display 0 ~ 999.
8.4 experiment 13 -- use 7-segment nixie tube / display the number 100 corresponding to the pressed key. 8.5 experiment 14-7 segment nixie tube 2 displays the number 104 corresponding to the pressed key.
8.6 experiment 15-7 segment nixie tube 1 and 2 display the number 108 corresponding to the pressed key respectively.
Chapter 9 LED dot matrix 112.
9.1 introduction to LED dot matrix 112.
9.2 led electro-optic board 112.
9.3 hardware circuit diagram 114.
9.4 experiment 16 displays green, blue, blue, blue and blue Red and orange 115.
9.5 experiment 17 -- display text 116.
9.6 experiment 18 -- mobile text 118.
Chapter 10 text lcd122.
10.1 introduction to text LCD 122.
10.2 types of text LCD 123.
10.3 structure and principle of LCD 123.
10.4 composition of text LCD module 124.
10.5 hardware circuit diagram 131.
10.6 experiment 19 -- display text 131.
10.7 Check 20 - display one line of text 133.
the10.8 experiment 21 moving sentence 135.
Chapter 11 stepping motor 139.
11.1 introduction of stepping motor 139.
11.2 classification of stepping motor 140.
11.3 driving of stepping motor 141.
11.4 driving element of stepping motor 148.
11.5 related terms of stepping motor 151.
11.6 control of stepping motor 153.
11.7 hardware.
LCD is used for text display A built-in font library.
Send a fixed ASCII code to the LCD to display the corresponding words, and the graphics can be displayed by making their own patterns.
.
respondent: Tony_ Sgt.
.
add some content.
the text display mode is commonly known as the character type. This LCD can only display English Chinese characters. You can see that the LCD is divided into small grids. Each small grid can display an English alphabet symbol or Chinese characters.
the graphics display mode is commonly known as the dot matrix type. The common display mode is 128 * 64 320 * 240, which can display any graphics.
just like a mobile phone screen The screen can display pictures or characters no matter it is monochrome or color.
.
Related topics