Lesson 11
Lesson 11
Lesson 11
Embedded Processors - II
Version 2 EE IIT, Kharagpur 2
Pre-requisite
Digital Electronics
11.1 Introduction
Microcontrollers are required to operate in the real world without much of interface circuitry. The input-output signals of such a processor are both analog and digital. The digital data transmission can be both parallel and serial. The voltage levels also could be different. The architecture of a basic microcontroller is shown in Fig. 11.1. It illustrates the various modules inside a microcontroller. Common processors will have Digital Input/Output, Timer and Serial Input/Output lines. Some of the microcontrollers also support multi-channel Analog to Digital Converter (ADC) as well as Digital to Analog Converter (DAC) units. Thus analog signal input and output pins are also present in typical microcontroller units. For external memory and I/O chips the address as well as data lines are also supported. RAM area Timer 16-Bit 8 ROM area Port B 5 Serial Port Tx Rx Port A ADC 8
CPU
Port C 8
Port 11
Port 10
EPORT
Port 12
Watchdog Timer
A/D Converter
Pulse-width Modulators
SSI00 SSI01
SIO0
Baud-rate Generator
Chip-select Unit
Port 2
AD15:0
SIO1
Baud-rate Generator
Ports 7.8
Microcode Engine
ALU
Destination (16)
Address/Data Lines Bus Control Signals Signals related to Interrupt Signals related to Timers/Event Manager Digital Input/Output Ports Analog Input/Output Ports
support extended addressing. The EPORT is an 8-bit port which can operate either as a generalpurpose I/O signal (I/O mode) or as a special-function signal (special-function mode). AD15:0 Address/Data Lines These lines serve as input as well as output pins. The function of these pins depends on the bus width and mode. When a bus access is not occurring, these pins revert to their I/O port function. AD15:0 drive address bits 015 during the first half of the bus cycle and drive or receive data during the second half of the bus cycle.
WRH Write High: Output Signal: During 16-bit bus cycles, this active-low output signal is asserted for high-byte writes and word writes to external memory. WRL Write Low: Output Signal: During 16-bit bus cycles, this active-low output signal is asserted for low-byte writes and word writes to external memory.
XTAL2: Output: Inverted Output for the Crystal/Resonator Output of the on-chip oscillator inverter. Leave XTAL2 floating when the design uses an external clock source instead of the onchip oscillator.
Analog Inputs
ACH15:0: Input Analog Channels: These signals are analog inputs to the A/D converter. The ANGND and VREF pins are also used for the standard A/D converter to function. Other important signals of a typical microcontroller include Power Supply and Ground pins at multiple points Signals from the internal programmable Timer Debug Pins The reader is requested to follow the link www.intel.com/design/mcs96/manuals/272804.htm or www.intel.com/design/mcs96/manuals/27280403.pdf for more details.
11.3 Conclusions
This chapter discussed the important signals of a typical microcontroller. The detailed electrical and timing specifications are available in the respective manuals.
11.4 Questions
1. Which ports of the 80C196EA can generate PWM pulses? What is the voltage level of such pulses? Ans:
2. Why the power supply is given to multiple points on a chip? Ans: The multiple power supply points ensure the following The voltages at devices (transistors and cells) are better than a set target under a specified set of varying load conditions in the design. This is to ensure correct operation of circuits at the expected level of performance. the current supplied by a pad, pin, or voltage regulator is within a specified limit under any of the specified loading conditions. This is required: a) for not exceeding the design capacity of regulators and pads; and b) to distribute currents more uniformly among the pads, so that the L di/dt voltage variations due to parasitic inductance in the packages substrate, ball-grid array, and bond wires are minimized.