SlideShare a Scribd company logo
EMBEDED HARDWARE
UNIT II
COMPONENTS ON AN
EMBEDDED SYSTEM
 Before the programmer can start to code
anything, he has to invest some time in
understand the functioning of the embedded
system.
 He is expected to understand the following
things:
a. Functioning or purpose of the embedded system
b. Individual components involved
c. The way data flows through the components of an
embedded system.
COMPONENTS ON AN EMBEDDED
SYSTEM
MEMORY MAP
 A Memory Map is the processor's "address book." It shows what these
devices look like to the processor.
 The memory map contains one entry for each of the memories and
peripherals that are accessible from the processor's memory space.
 All processors store their programs and data in memory.
 These chips are located in the processor's memory space, and the
processor communicates with them by way of two sets of electrical wires
called the address bus and the data bus.
 To read or write a particular location in memory, the processor first
writes the desired address onto the address bus. The data is then
transferred over the data bus.
 A memory map is a table that shows the name and address range of each
memory device and peripheral that is located in the memory space.
MEMORY MAP
 Organize the table such that the lowest address is at the bottom and the
highest address is at the top.
 Each time a new device is added, add it to the memory map, place it in its
approximate location in memory and label the starting and ending
addresses, in hexadecimal.
 After inserting all of the devices into the memory map, be sure to label any
unused memory regions as such.
 The block diagram of the Printer sharing device shown above contains three
devices attached to the address and data buses.
 These devices are the RAM and
 ROM and
 a Serial Controller.
 Let us assume that the RAM is located at the bottom of memory and
extends upward for the first 128 KB of the memory space.
 The ROM is located at the top of memory and extends downward for 256
KB. But considering the ROM contains two ROMs-an EPROM and a Flash
memory device-each of size 128 KB.
MEMORY MAP
 The third device, the Serial Controller, is a memory-
mapped peripheral whose registers are accessible
between the addresses say 70000h and 72000h.
 The diagram below shows the memory map for the
printer sharing device.
 For every embedded system, a header file should be
created that describes these important features and
provides an abstract interface to the hardware. It allows
the programmer to refer to the various devices on the
board by name, rather than by address.
 The part of the header file below describes the memory
map
 #define RAM_BASE (void *) 0x00000000
 #define SC_BASE (void *) 0x70000000
 #define SC_INTACK (void *) 0x70001000
 #define FLASH_BASE (void *) 0xC0000000
 #define EPROM_BASE (void *) 0xE0000000
I/O MAP
 The I/O map contains one entry for each of
the peripheral.
 An I/O map has to be created if a separate I/O
space is present.
 It is done by repeating the steps performed to
create memory map.
 To create an I/O map, simply create a table of
peripheral names and address ranges,
organized in such a way that the lowest
addresses are at the bottom.
I/O MAP
 It includes three devices:
 the peripheral control block (PCB),
 parallel port, and
 debugger port.
 The PCB is a set of registers within the
processor that are used to control the on-
chip peripherals.
 The chips that control the parallel port and
debugger port reside outside of the
processor.
 These ports are used to communicate with
the printer and a host-based debugger,
respectively.
 The part of the header file below describes
the I/O map
 #define SVIEW_BASE 0xFC00
 #define PIO_BASE 0xFD00
INTERRUPT MAP
 There are two techniques which can be used by the
processor to communicate with memories or peripheral
devices. These are:
a. Polling: In this technique the processor polls the device
(asks question) repeatedly at regular intervals to check if
the device
has completed the given task or has any new task to execute.
b. Interrupt:
 An interrupt is a signal sent from a peripheral to the
processor.
 A peripheral may send an interrupt signal to a processor
when it has some job to perform which requires the
processors intervention.
WHAT PROCESSOR DOES
AFTER RECEIVING AN
INTERUPT
 Upon receiving an interrupt signal the Processor does the job
by issuing certain commands and waits for another interrupt
to signal the completion of the job.
 While the processor is waiting for the interrupt to arrive, it is
free to continue working on other things.
 When a fresh interrupt signal is received, the processor
temporarily sets aside its current work and executes a small
piece of software called the interrupt service routine (ISR).
When the ISR completes, the processor returns to the work
that was interrupted.
 The programmer must write the ISR himself and enable it so
that it will be executed when the relevant interrupt occurs.
INTERRUPT MAP
 Embedded systems usually have only a handful of interrupts.
Associated with each of these are an interrupt pin which is
present on the outside of the processor chip and an ISR.
 In order for the processor to execute the correct ISR, a mapping
must exist between interrupt pins and ISRs. This
mapping usually takes the form of an interrupt vector table.
 The vector table is usually just an array of pointers to
functions, located at some known memory address.
The processor uses the interrupt type (a unique number associated
with each interrupt pin) as its index into this array. The value stored
at that location in the vector table is usually just the address of the
ISR to be executed.
 An Interrupt Map is a step taken in this process. The
Interrupt Map is a table that contains a list of interrupt
types and the devices to which they refer.
INTERRUPT MAP
Once the I/O map is created the header file
should be appended with the following
information:
 #define SCC_INT 17 /*Serial Controller*/
 #define TIMER0_INT 8 /* On-Chip Timer/Counters*/
 #define TIMER1_INT 18
 #define TIMER2_INT 19
 #define RX_INT 20 /* On-Chip Serial Ports */
 #define TX_INT 21

More Related Content

PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
Arti Parab Academics
 
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
Arti Parab Academics
 
PPT
E.s unit 4 and 5
Sneha Chopra
 
PPTX
Memory segmentations
maamir farooq
 
PPTX
INTERCONNECTION STRUCTURE
VENNILAV6
 
PPTX
8051 memory
Mayank Garg
 
DOCX
Network Devices
SamiuR RahmaN
 
PPT
Chapter 5 Network Configuration Basics.ppt
anwarkade1
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
Arti Parab Academics
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
Arti Parab Academics
 
E.s unit 4 and 5
Sneha Chopra
 
Memory segmentations
maamir farooq
 
INTERCONNECTION STRUCTURE
VENNILAV6
 
8051 memory
Mayank Garg
 
Network Devices
SamiuR RahmaN
 
Chapter 5 Network Configuration Basics.ppt
anwarkade1
 

What's hot (20)

PPTX
Arduino: On-board components description, IDE and Programming
Pawan Dubey, PhD
 
DOCX
Smart home automation system
Pawan Kumar Ganjhu
 
PPTX
Geographic Routing in WSN
Mahbubur Rahman
 
PPT
Cpu
Muhammad Ramzan
 
DOCX
Embedded System
Sonali Parab
 
PPTX
security and privacy-Internet of things
sreelekha appakondappagari
 
PPTX
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
PDF
Introduction to arm architecture
Zakaria Gomaa
 
PDF
Characteristics and Quality Attributes of Embedded System
anand hd
 
PPT
Chapter 06 - Routing
phanleson
 
PPTX
Anti theft & Automation using Arduino
( Afroze ) Kabeer Khan
 
PPTX
IOT System Management with NETCONF-YANG.pptx
ArchanaPandiyan
 
PPTX
Peripheral Component Interconnect (PCI)
Suraj B.V.S.G
 
PDF
Internet of Things - module 1
Syed Mustafa
 
PPTX
Microprocessors and their Use
Anup Dixit
 
PDF
Memory mapping
SnehalataAgasti
 
PPTX
Control hijacking
Prachi Gulihar
 
PPT
Chapter 01 - Introduction
César de Souza
 
PPTX
Micro program example
rajshreemuthiah
 
PPTX
Case study of Adaptive Cruise Control
PAVANKUMARSDESAI
 
Arduino: On-board components description, IDE and Programming
Pawan Dubey, PhD
 
Smart home automation system
Pawan Kumar Ganjhu
 
Geographic Routing in WSN
Mahbubur Rahman
 
Embedded System
Sonali Parab
 
security and privacy-Internet of things
sreelekha appakondappagari
 
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
Introduction to arm architecture
Zakaria Gomaa
 
Characteristics and Quality Attributes of Embedded System
anand hd
 
Chapter 06 - Routing
phanleson
 
Anti theft & Automation using Arduino
( Afroze ) Kabeer Khan
 
IOT System Management with NETCONF-YANG.pptx
ArchanaPandiyan
 
Peripheral Component Interconnect (PCI)
Suraj B.V.S.G
 
Internet of Things - module 1
Syed Mustafa
 
Microprocessors and their Use
Anup Dixit
 
Memory mapping
SnehalataAgasti
 
Control hijacking
Prachi Gulihar
 
Chapter 01 - Introduction
César de Souza
 
Micro program example
rajshreemuthiah
 
Case study of Adaptive Cruise Control
PAVANKUMARSDESAI
 
Ad

Similar to SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embeded Hardware (20)

PPTX
The primary purpose of memory interfacing is to facilitate the transfer of da...
Sindhu Mani
 
PDF
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Abhishekkumar397974
 
PPT
Memory & I/O interfacing
deval patel
 
PPT
Cs intro-ca
aniketbijwe143
 
PPTX
Interfacing
Sambasiva62
 
PDF
Unit 6
pm_ghate
 
DOCX
8085 interfacing with memory chips
Srikrishna Thota
 
PPTX
microprocessor / memory INTERFACING PPT.pptx
Matrusri Engineering College,Hyderabad
 
PPT
Unit 5 I/O organization
chidabdu
 
PPT
12429908.ppt
ssuser4ca1eb
 
PDF
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
 
PDF
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
ajf3215
 
PPT
8085 Microprocessor Architecture
deval patel
 
PPT
Unit2 p1 io organization-97-2003
Swathi Veeradhi
 
PDF
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
cmkandemir
 
PPTX
lecture 2 coal assembly language lecture
zm745236
 
PPTX
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
LeahRachael
 
PPTX
Microprocessor 8085 Chapter 3
Rishikesh Bhavsar
 
PPT
Chapter 6 input output
risal07
 
The primary purpose of memory interfacing is to facilitate the transfer of da...
Sindhu Mani
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Abhishekkumar397974
 
Memory & I/O interfacing
deval patel
 
Cs intro-ca
aniketbijwe143
 
Interfacing
Sambasiva62
 
Unit 6
pm_ghate
 
8085 interfacing with memory chips
Srikrishna Thota
 
microprocessor / memory INTERFACING PPT.pptx
Matrusri Engineering College,Hyderabad
 
Unit 5 I/O organization
chidabdu
 
12429908.ppt
ssuser4ca1eb
 
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
 
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
ajf3215
 
8085 Microprocessor Architecture
deval patel
 
Unit2 p1 io organization-97-2003
Swathi Veeradhi
 
Chapter 2-8085 Microprocessor Architecture and Microcomputer Systems
cmkandemir
 
lecture 2 coal assembly language lecture
zm745236
 
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
LeahRachael
 
Microprocessor 8085 Chapter 3
Rishikesh Bhavsar
 
Chapter 6 input output
risal07
 
Ad

More from Arti Parab Academics (20)

PPTX
COMPUTER APPLICATIONS Module 4.pptx
Arti Parab Academics
 
PPTX
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
Arti Parab Academics
 
PPTX
COMPUTER APPLICATIONS Module 5.pptx
Arti Parab Academics
 
PPTX
COMPUTER APPLICATIONS Module 1 CAH.pptx
Arti Parab Academics
 
PPTX
COMPUTER APPLICATIONS Module 3.pptx
Arti Parab Academics
 
PPTX
COMPUTER APPLICATIONS Module 2.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 5-Chapter 2.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 5-Chapter 3.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 4-Chapter 3.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 3-Chapter 2.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 4-Chapter 1.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 4-Chapter 2.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 3-Chapter 3.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 5-Chapter 1.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 3-Chapter 1.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 2-Chapter 2.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 1-Chapter 1.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 2-Chapter 3.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 2-Chapter 1.pptx
Arti Parab Academics
 
PPTX
Health Informatics- Module 1-Chapter 2.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 4.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 5.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 1 CAH.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 3.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 2.pptx
Arti Parab Academics
 
Health Informatics- Module 5-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 5-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 4-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 3-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 4-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 4-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 3-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 5-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 3-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 2-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 1-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 2-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 2-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 1-Chapter 2.pptx
Arti Parab Academics
 

Recently uploaded (20)

PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Basics and rules of probability with real-life uses
ravatkaran694
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 

SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embeded Hardware

  • 2. COMPONENTS ON AN EMBEDDED SYSTEM  Before the programmer can start to code anything, he has to invest some time in understand the functioning of the embedded system.  He is expected to understand the following things: a. Functioning or purpose of the embedded system b. Individual components involved c. The way data flows through the components of an embedded system.
  • 3. COMPONENTS ON AN EMBEDDED SYSTEM
  • 4. MEMORY MAP  A Memory Map is the processor's "address book." It shows what these devices look like to the processor.  The memory map contains one entry for each of the memories and peripherals that are accessible from the processor's memory space.  All processors store their programs and data in memory.  These chips are located in the processor's memory space, and the processor communicates with them by way of two sets of electrical wires called the address bus and the data bus.  To read or write a particular location in memory, the processor first writes the desired address onto the address bus. The data is then transferred over the data bus.  A memory map is a table that shows the name and address range of each memory device and peripheral that is located in the memory space.
  • 5. MEMORY MAP  Organize the table such that the lowest address is at the bottom and the highest address is at the top.  Each time a new device is added, add it to the memory map, place it in its approximate location in memory and label the starting and ending addresses, in hexadecimal.  After inserting all of the devices into the memory map, be sure to label any unused memory regions as such.  The block diagram of the Printer sharing device shown above contains three devices attached to the address and data buses.  These devices are the RAM and  ROM and  a Serial Controller.  Let us assume that the RAM is located at the bottom of memory and extends upward for the first 128 KB of the memory space.  The ROM is located at the top of memory and extends downward for 256 KB. But considering the ROM contains two ROMs-an EPROM and a Flash memory device-each of size 128 KB.
  • 6. MEMORY MAP  The third device, the Serial Controller, is a memory- mapped peripheral whose registers are accessible between the addresses say 70000h and 72000h.  The diagram below shows the memory map for the printer sharing device.  For every embedded system, a header file should be created that describes these important features and provides an abstract interface to the hardware. It allows the programmer to refer to the various devices on the board by name, rather than by address.  The part of the header file below describes the memory map  #define RAM_BASE (void *) 0x00000000  #define SC_BASE (void *) 0x70000000  #define SC_INTACK (void *) 0x70001000  #define FLASH_BASE (void *) 0xC0000000  #define EPROM_BASE (void *) 0xE0000000
  • 7. I/O MAP  The I/O map contains one entry for each of the peripheral.  An I/O map has to be created if a separate I/O space is present.  It is done by repeating the steps performed to create memory map.  To create an I/O map, simply create a table of peripheral names and address ranges, organized in such a way that the lowest addresses are at the bottom.
  • 8. I/O MAP  It includes three devices:  the peripheral control block (PCB),  parallel port, and  debugger port.  The PCB is a set of registers within the processor that are used to control the on- chip peripherals.  The chips that control the parallel port and debugger port reside outside of the processor.  These ports are used to communicate with the printer and a host-based debugger, respectively.  The part of the header file below describes the I/O map  #define SVIEW_BASE 0xFC00  #define PIO_BASE 0xFD00
  • 9. INTERRUPT MAP  There are two techniques which can be used by the processor to communicate with memories or peripheral devices. These are: a. Polling: In this technique the processor polls the device (asks question) repeatedly at regular intervals to check if the device has completed the given task or has any new task to execute. b. Interrupt:  An interrupt is a signal sent from a peripheral to the processor.  A peripheral may send an interrupt signal to a processor when it has some job to perform which requires the processors intervention.
  • 10. WHAT PROCESSOR DOES AFTER RECEIVING AN INTERUPT  Upon receiving an interrupt signal the Processor does the job by issuing certain commands and waits for another interrupt to signal the completion of the job.  While the processor is waiting for the interrupt to arrive, it is free to continue working on other things.  When a fresh interrupt signal is received, the processor temporarily sets aside its current work and executes a small piece of software called the interrupt service routine (ISR). When the ISR completes, the processor returns to the work that was interrupted.  The programmer must write the ISR himself and enable it so that it will be executed when the relevant interrupt occurs.
  • 11. INTERRUPT MAP  Embedded systems usually have only a handful of interrupts. Associated with each of these are an interrupt pin which is present on the outside of the processor chip and an ISR.  In order for the processor to execute the correct ISR, a mapping must exist between interrupt pins and ISRs. This mapping usually takes the form of an interrupt vector table.  The vector table is usually just an array of pointers to functions, located at some known memory address. The processor uses the interrupt type (a unique number associated with each interrupt pin) as its index into this array. The value stored at that location in the vector table is usually just the address of the ISR to be executed.  An Interrupt Map is a step taken in this process. The Interrupt Map is a table that contains a list of interrupt types and the devices to which they refer.
  • 12. INTERRUPT MAP Once the I/O map is created the header file should be appended with the following information:  #define SCC_INT 17 /*Serial Controller*/  #define TIMER0_INT 8 /* On-Chip Timer/Counters*/  #define TIMER1_INT 18  #define TIMER2_INT 19  #define RX_INT 20 /* On-Chip Serial Ports */  #define TX_INT 21