3. Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
CPU RAM ROM
Input/output Timers
Serial Com
port
4. Have you used Microcontroller ?
Please write your Answers in comment box
Name any one application
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
5. Micro- Size is small
Controller- Which controls the
operations
Microcontroller is small size device
which is used to perform and control
operations
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
17. From next slide please identify
Microcontroller Applications
And
Write your answers in comment
section
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
19. Home Appliances
Intercom
Telephone
TVs
VCR
Cable TV tuner
Remote Controls
Toys
Microwave
Lightening Controls
Video Games
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
20. Telephones
Copy Machine
Paging
Fax Machine
Security Systems
Laser Printer
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
21. 4 bit Microcontroller
8 bit Microcontroller
16 bit Microcontroller
32 bit Microcontroller
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
22. Embedded memory microcontroller:
8051 microcontroller
External memory microcontroller: 8031
microcontroller
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
23. CISC: CISC is a Complex Instruction
Set Computer
RISC: The RISC is stands for Reduced
Instruction set Computer
Prepared for MIT ACSC by Mrs. Pallavi Mahagaonkar
24. It is 8 bit microcontroller
4k on chip ROM
128 Bytes of on chip RAM
4 Ports with 32 Input/Output Lines
1 Serial Port
2 Timers/Counter
5 Interrupts
25. A and B Register
16 Bit Program Counter and DPTR
8 bit Stack Pointer
8 Bit Data bus
16 bit Address bus
26. CPU 8 Bit
5 Interrupts
Timer/Counter 0
Timer/Counter 1
4 Ports
P0 P1 P2 P3
1 Serial Port
4 K ROM
for Program
Code
128 bytes
RAM
Bus Control
Unit
Oscillator
TXD RXD
27.
28. Name Function Internal Address
(Hex)
A ACCUMULATOR 0E0
B ARITHMETIC 0F0
DPH Addressing External Memory 83
DPL Addressing External Memory 82
IE Interrupt Enable Control 0A8
IP Interrupt Priority 0B8
P0 Input/Output Port 0 Latch 80
P1 Input/Output Port 1 Latch 90
P2 Input/Output Port 2 Latch 0A0
P3 Input/Output Port 3 Latch 0B0
Prepared By Mrs. Pallavi Mahagaonkarfor MIT ACSC
29. Name Function Internal Address
(Hex)
PCON Power Control 87
PSW Program Status Word 0D0
SCON Serial Port Control 98
SBUF Serial Port Data Buffer 99
SP Stack Pointer 81
TMOD Timer/ Counter Mode Control 89
TCON Timer/ Counter Control 88
TL0 Timer 0 Low Byte 8A
TH0 Timer 0 High Byte 8C
TL1 Timer 1 Low Byte 8B
TH1 Timer 1 High Byte 8D
Prepared By Mrs. Pallavi Mahagaonkarfor MIT ACSC
30. Number of Pins Function
2 Vcc and Ground (40 , 20)
2 XTAL1 and XTAL2 (19, 18)
1 Reset (9)
3 PSEN, ALE, EA (29, 30, 31)
32 Input/output Port (P0, P1, P2, P3)
40 Total
Prepared By Mrs. Pallavi Mahagaonkarfor MIT ACSC
31. The 8051 has four important ports P0, P1, P2 and P3
These ports allow the microcontroller to connect with the
outside world
Each port has 8 pins. Thus total 32 pins can be used as I/O
All ports are bidirectional
They are constructed with a D type output latch. They have
output drivers and input buffers
All the ports are configured as input ports on Reset
To configure ports as an input port 1 must be written to that
port
To configure it as an output port 0 must be written to it
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
32. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
https://exploreembedded.com/wiki/1.8051_Architecture
33. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
https://exploreembedded.com/wiki/1.8051_Architecture
34. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
To read 0 from the pin of the microcontroller:
Write one to pin.
M1 turns OFF
Read PIN latch is turned ON
External zero grounds the pin
https://exploreembedded.com/wiki/1.8051_Architecture
35. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
https://exploreembedded.com/wiki/1.8051_Architecture
Write one to pin.
M1 turns OFF
Read PIN latch is turned ON
External vcc appears at the pin
36. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
https://electronicsdesk.com/pin-diagram-and-description-of-8051-microcontroller.html
37. Port 0 have 8 pins which can be used as Input/ Output
Address: 80H
To configure ports as an input port 1 must be written to that
port
To configure it as an output port 0 must be written to it
An external pull-up resistor is needed when Port 0 is defined
as an output port
Port 0 is used to access external memory in conjunction with
Port 2
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
38. Port 1 have 8 pins which can be used as Input/ Output
Address: 90H
To configure ports as an input port 1 must be written to
that port
To configure it as an output port 1 must be written to it
An external pull-up resistor is not required when Port 1 is
defined as an output port
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
39. Port 2 have 8 pins which can be used as Input/ Output
Address: A0H
To configure ports as an input port 2 must be written to
that port
To configure it as an output port 2 must be written to it
An external pull-up resistor is not required when Port 2 is
defined as an output port
Port 2 is used to access external memory in conjunction
with Port 0
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
40. Port 3 have 8 pins which can be used as Input/ Output
Address: B0H
To configure ports as an input port 3 must be written to
that port
To configure it as an output port 3 must be written to it
An external pull-up resistor is not required when Port 3 is
defined as an output port
Port 3 have Alternate functions
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
41. RXD: used for a serial input port
TXD: used for serial output port
INT0: used for an external interrupt 0
INT1: used for external interrupt 1
T0: Timer 0 external input
T1: Timer 1 external input
WR: external data memory write strobe
RD: external data memory Read strobe
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
42. EA: External Access (Input Pin)
Ground – Program is Store in External Memory
Vcc - Program is stored on On-chip ROM
ALE: Address Latch Enable (output pin)
1 - Address
0 - Data
PSEN: Program Store Enable
It is used to read a signal from the external program
memory
It should be connected to OE/ CS pin of Memory
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
43. 128x8
128 x 8
Address lines data lines
128=2^7 8
Address lines=7 that is from A0 to A6
Data lines=8 that is from D0 to D7
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
44. Calculate number of address lines and data lines for
1. 256 x 8
2. 1K x 8
3. 2K x 8
4. 4K x 8
5. 8K x 8
6. 64 x 8
7. 512 x 8
8. 64 k x 8
9. 32K x 8
10. 16 K x 8
Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
45. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
Read
Write Memory
Chip select
Data
Bus
Address
Bus
46. Prepared By Mrs. Pallavi Mahagaonkar for MIT ACSC
Read
Write Memory
(128x8)
Chip select
Da
ta
Bu
s
Address
Bus
8051
Microcontroller