Beruflich Dokumente
Kultur Dokumente
1) Stepper Motor Control 2) Matrix Keyboard 3) Dynamic 7 Segment Display 4) Analog to Digital converter 5) DC Motor Control 6) LCD Display 7) Serial Data Transfer
MATRIX KEYBOARD
General Keyboard Structure Adv & Disadv of General Keyboard Layout of Matrix Keyboard Scanning and Sense Lines Scan Sequence Key De-bounce Methods
7 8 9 5 6
MATRIX KEYBOARD
0 #
2 3
MATRIX KEYBOARD
Sense Lines RL2 RL1 RL0 SL0 Scan Lines
1 4 7
2 5 8 0
3 6 9 #
SL1
SL2 SL3
MATRIX KEYBOARD
SL3 SL2 SL1 SL0 RL2 RL1 RL0
0 0 1 0 0 1 0 0 1 1 0 0 1 0 0 1 0
1 2 3 4 5
RL2 RL1 RL0 SL0 SL1
0 0 0 01
0 0 1 0
0 1 0 0
1 0 0 0
0 1 0 0 1 0 0
1 4 7
2 5 8 0
3 6 9 #
1
0 0
0
0 1
0
1 0
6 7 8 9
0
SL2 SL3
MATRIX KEYBOARD
MATRIX KEYBOARD
gV
e d dp c
dp
Common
DC MOTOR CONTROL
DC Motor Speed Control Methods Advantage of PWM Method Driving Circuit
DC MOTOR CONTROL
LCD DISPLAY
Principle of LCD 16x2 LCD LCD Module Driver & Screen RAM Character Molding Display Type Cursor, L/R Entry etc
LCD DISPLAY
LCD DISPLAY
LCD DISPLAY
Pin number
1 2 3 4
Symbol
Vss Vcc Vee RS
Level
0/1
I/O
I
Function
Power supply (GND) Power supply (+5V) Contrast adjust 0 = Instruction input, 1 = Data input 0 = Write to LCD module, 1 = Read from LCD module Enable signal Data bus line 0 (LSB)
5 6 7
R/W E DB0
I I I/O
8
9 10 11 12 13 14
DB1
DB2 DB3 DB4 DB5 DB6 DB7
0/1
0/1 0/1 0/1 0/1 0/1 0/1
I/O
I/O I/O I/O I/O I/O I/O
Code Instruction
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Description
Executi on time
Clear display Cursor home Entry mode set Display On/Off control Cursor/disp lay shift Function set Set CGRAM address Set DDRAM address Read busyflag and address counter Write to CGRAM or DDRAM Read from CGRAM or DDRAM
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 1
1 *
Clears display and returns cursor to the home position (address 0). Returns cursor to home position (address 0). Also returns display being shifted to the original position. DDRAM contents remains unchanged. Sets cursor move direction (I/D), specifies to shift the display (S). These operations are performed during data read/write. Sets On/Off of all display (D), cursor On/Off (C) and blink of cursor position character (B). Sets cursor-move or display-shift (S/C), shift direction (R/L). DDRAM contents remains unchanged. Sets interface data length (DL), number of display line (N) and character font(F). Sets the CGRAM address. CGRAM data is sent and received after this setting. Sets the DDRAM address. DDRAM data is sent and received after this setting.
1.64mS
1.64mS
I/D
40uS
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 1
0 0 1
0 1 DL
1
S/C
D
R/L
C * *
B * *
40uS
40uS 40uS
CGRAM address
40uS
DDRAM address
40uS
BF
Reads Busy-flag (BF) indicating internal operation is being performed and reads CGRAM or DDRAM address counter contents (depending on previous instruction).
0uS
write data
40uS
read data
40uS
LCD DISPLAY