Embedded System Architecture Slides
Embedded System Architecture Slides
CISC
1) Complex instruction set 2) Requires multiple cycle 3) Many instruction refer memory
4) Instructions are executed by micro program 5) Variable instruction format 6) Many addressing modes 7) support complex addressing modes 8) single register set 9) not Pipelined or less
Interrupts
Interrupt is signal to the processor to indicate the event has occurred Corresponding to each interrupt their will be ISR that will be executed HALT the work Save the content of register and address by pushing onto the stack Interrupt vector- ISR address Execute IRS Reloads address and register contents by popping the stack There may be More than one interrupt to the processor Assign priority to each interrupt
PIC- programmable interrupt controller interfaces with CPU to handle external devices and decide which interrupt has to be processed Interrupt vector table-address, number,priority,frequency NMI Non maskable interrupt ex-reset
REAL TIME CLOCK A timer circuit is suitably configured as RTC RTC generates system interrupt periodically for scheduler , real time program, for periodic saving of time and data in the system Used to obtain software control delays , timeout RTC acts as driver for timers
Chip select
As many peripherals share common bus(memory chips/ input and output devices) Processor must uniquely identify a peripheral to communicate with it Processor performs this identification using a signal called chip select Chip select signal is available to all the peripherals connected to the bus
Function Keypad
Based on the application an embedded system has to be provided with function keypad to input data and/or commands
Led
Act as output devices Available in different colour RED,Green,yellow,blue,white Blue and white led are expensive Used for status display ,power failure indications etc
3 dimensional display OLED- Organic light emitting diode display Organic light emitting polymer is placed between anode and cathode When voltage is applied between anode and cathode OLED glows Much brighter display used in PDAs
Digital clock
Debug port
Manufacturers provide proprietary interfaces to do the debugging JTAG-JOINT TEST ACCESS GROUP Mechanism for providing a debugging through a port called JTAG PORT JTAG port provide access to the internal of the processor Standard IEEE 1149.1a-1993 ( standard test access port and boundary scan architecture) gives details of protocol used in JTAG port Using boundary scan technique the connection between processor and memory/peripherals can be probed by given appropriate signals at the output pins and regarding the response from input pins
1) 2) 3) 4)
Test data input (TDI) Test data output (TDO) Test mode select (TMS) Test clock (TCK)
JTAG port can also be used to download the software to embedded system
Communication Interfaces
For embedded system to extract with external world, a number of communication interfaces are provided Serial interface using RS232 Serial interface using Rs422/485 Universal serial bus Infrared Ethernet Wireless interface based on IEEE 802.11 wireless LAN standard Bluetooth radio interface
CPU
DMA Controller
Memory
I/O device
device
device
device
Has two wires for connecting devices Bus is bidirectional, synchronous to common clock Built in in microcontroller Data rate-100kbps,400kbps are supported Bus consist of two lines 1) serial clock 2) Serial data High not in use The device using the bus drives the line low Each device has 7 bit unique address
128 devices can be connected A device can act as master or slave A device transmitting data -master receiving data-slave Bus is bidirectional Multiple master can be available We can interface a RTC such as philips pCF8353 Display device can be interfaced
The SPI bus specifies four logic signals: 1) SCLK: serial clock (output from master); 2) MOSI: master output, slave input (output from master); 3) MISO: master input, slave output (output from slave); 4) SS: slave select (active low, output from master).
The SPI bus can operate with a single master device and with one or more slave devices. If a single slave device is used, the SS pin may be fixed to logic low if the slave permits it.
Some slaves require the falling edge (high-low transition) of the chip select to initiate an action such as the Maxim MAX1242 ADC, which starts conversion on said transition. With multiple slave devices, an independent SS signal is required from the master for each slave device
Data transmission
The bus master first configures the clock, using a frequency less than or equal to the maximum frequency the slave device supports. Such frequencies are commonly in the range of 1100 MHz. The master then transmits the logic 0 for the desired chip over chip select line If a waiting period is required (such as for analog-to-digital conversion), then the master must wait for at least that period of time before starting to issue clock cycles
During each SPI clock cycle, a full duplex data transmission occurs: the master sends a bit on the MOSI line; the slave reads it from that same line the slave sends a bit on the MISO line; the master reads it from that same line Transmissions normally involve two shift registers of some given word size, such as eight bits, one in the master and one in the slave; they are connected in a ring. Data is usually shifted out with the most significant bit first, while shifting a new least significant bit into the same register. After that register has been shifted out, the master and slave have exchanged register values.
Then each device takes that value and does something with it, such as writing it to memory. If there is more data to exchange, the shift registers are loaded with new data and the process repeats. Transmissions may involve any number of clock cycles. When there is no more data to be transmitted, the master stops toggling its clock. Normally, it then deselects the slave.
Additionally, a 12V + 0.2V supply is needed for a flash (a memory form used in systems like latest digital cameras) or Electrically Erasable and Programmable Read Only memory (EEPROM) when present in the microcontroller of an embedded system and for RS232C serial Interfaces
Certain systems do not have a power source of their own: they connect to an external power supply or are powered by the use of charge pumps. (1) Network Interface Card (NIC) and Graphic Accelerator are examples of embedded systems that do not have their own power supply and connect to PC power-supply lines. (2) A charge pump consists of a diode in the series followed by a charging capacitor. The diode gets forward bias input from an external signal;