Admin
Course materials available online http://ece.citadel.edu/hayne/
Students are encouraged to print lecture slides in advance and use them to take notes in class
330_01
Microcontrollers
Embedded Systems
Operations managed behind the scenes by a microcontroller An integrated electronic computing device that includes three major components on a single chip
Microprocessor (MPU) Memory I/O (Input/Output) ports
Microcontroller (MCU)
330_01
Microcontrollers
Support Devices
All components connected by common communication lines called the system bus.
330_01
Block Diagram
330_01
Microprocessor (MPU)
A group of electronic circuits fabricated on a semiconductor chip that can read binary instructions written in memory and process binary data according to those instructions CPU and MPU
330_01
Memory
A semiconductor storage device consisting of registers that store binary bits Two major categories
D7
D0
330_01 7
Input/Output (I/O)
Input devices such as switches and keyboards provide binary information to the microprocessor Output devices such as LEDs, video screens, and printers receive information from the microprocessor
330_01
Microprocessor-Based Systems
330_01
Microprocessor Architecture
The MPU communicates with memory and I/O using the system bus consisting of:
Address bus: unidirectional and carries memory and I/O addresses Data bus: bidirectional; transfers binary data and instructions between MPU and memory and I/O Control lines: Read and Write timing signals asserted by MPU
330_01
10
330_01
11
330_01
12
Difficult to decipher and write Prone to cause many errors in writing All programs converted into the machine language of a processor for execution
Description Add reg B to Acc Add Acc A and B Processor Intel 8085 80 ADD B ABA
00101000
00011011
28
1B
Intel 8051
Motorola 6811
330_01
13
Has one-to-one correspondence with machine instructions Efficient in execution and use of memory; machine-specific and not easy to troubleshoot
330_01
14
330_01
15
330_01
16
The eighth bit (Bit7) represents the sign of a number. The number is positive when Bit7 is zero and negative when Bit7 is one. Positive numbers: 00 to 7F (0 to 127) Negative numbers: 80 to FF (-1 to -128) All negative numbers are represented in 2s complement
330_01
17
8 bits of a number divided into groups of four, and each group represents a decimal digit from 0 to 9 Four-bit combinations from A through F in Hex are invalid in BCD numbers
Example: 0010 0101 represents the binary coding of the decimal number 25 which is different in value from 25H.
330_01
18
Seven-bit alphanumeric code with 128 combinations (00 to 7F) Represents English alphabet, decimal digits from 0 to 9, symbols, and commands
330_01
19
MPU-Based Systems
System hardware
Includes discrete components such as a microprocessor, memory, and I/O Components connected by buses
System software
330_01
20
330_01
21
MCU-Based Systems
Includes microprocessor, memory, I/O ports, and support devices (such as timers) on a single semiconductor chip Buses are generally not available to a system designer I/O ports are generally multiplexed and can be programmed to perform different functions
330_01 22
330_01
23
Computer Architectures
Princeton versus Harvard Architecture CISC versus RISC processors Microprocessors and Microcontrollers
330_01
24