Documente Academic
Documente Profesional
Documente Cultură
ELECTRONICS &COMMUNICATION
Presentation in
MICROCONTROLLE
R
MITTED TO: - SUBMITTED BY:-
ANISH SAXENA MANOHAR KUMAR
0112EC071051
Microcontroller :
• A smaller computer
• On-chip RAM, ROM, I/O ports...
• Example : Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X
CPU
Bus Serial
4 I/O Ports
OSC Control Port
P0 P1 P2 P3 TxD RxD
Address/Data
Used in assembler
instructions
8051 Flag bits and the PSW register
• PSW Register
CY AC F0 RS1 RS0 OV -- P
0 0 0 00H-07H
0 1 1 08H-0FH
1 0 2 10H-17H
1 1 3 18H-1FH
Input sysclk
circuit
8051
Original 8051 uses 12 sysclk cycles per “machine cycle”
TX (transmit)
Serial
Port RX (receive)
18
17
Bank 2
10
0F
Bank 1
08
07 R7
06 R6
05 R5
04
03
R4
R3
Bank 0
02 R2
01 R1
00 R0
CONTROL registers
•Timers
•Serial ports
•Interrupt system
•Analog to Digital converter Addresses 80h – FFh
•Digital to Analog converter
•Etc. Direct Addressing used to access
SPRs
16 bits 16 bits
Timer 0 Timer 1
To configure as a timer:
2. Set TRx in the TCON (timer run) and the gate bit in the
TMOD must be 0, or the external pin INTx~ must be 1.