SlideShare a Scribd company logo
1 of 22
An 8 Bit Embedded
Platform (Part I)
Session 5
SURYAPRAKASH S
suryaprakash.vsm@gmail.com
The resource for the PPT is made from variety of Books and online
PPT that were available in Internet. The Purpose of the PPT is made
for the Classroom Teaching.
Agenda
Architecture
2/12/2019
suryaprakash.vsm@gmail.com 2
History about PIC Microcontroller
• Steve Sanghi, the chairman, president and CEO of Microchip
Technology Inc
• Sanghi moved from India to U.S. to pursue a Master’s degree at the
University of Massachusetts after bachelor’s degree in engineering,
from Punjab Engineering College.
• In 1993, Sanghi became president and CEO of Microchip after seeking
advice from venture capital firms on starting his own company.
• Since then, he has transformed Microchip into a billion-dollar
company specializing in Microcontroller and analog semiconductors
used in devices ranging from remote controls to cars. He also has
been involved in science and technology education programs, and
he’s been known to frequent science fairs and question kids about
their projects.
12-02-2019 suryaprakash.vsm@gmail.com 3
2/12/2019 suryaprakash.vsm@gmail.com 4
Introduction
• The term PIC stands for “Peripheral Interface Controller” .It is the
brain child of Microchip Technology, USA .They have coined this name
to identify their single chip micro-controllers. These 8-bit micro
controllers have become very important now -a -days in industrial
automation and embedded applications etc.…..
• PICs are popular with both industrial developers and hobbyists alike
due to their low cost, wide availability, large user base, extensive
collection of application notes, availability of low cost or free
development tools, and serial programming (and re-programming
with flash memory) capability.
12-02-2019 suryaprakash.vsm@gmail.com 5
Contd.,
• Microchip PIC microcontrollers are available in various types. When
PIC microcontroller MCU was first available from General Instruments
in early 1980’s, the micro-controller had a simple processor executing
12-bit wide instructions with basic I/O functions. These devices are
known as low-end architectures. They have limited program memory
and are meant for applications requiring simple interface functions
and small program & data memories.
• Some of the low-end device numbers are
• 12C5XX
• 16C5X
• 16C505
12-02-2019 suryaprakash.vsm@gmail.com 6
Contd.,
• Mid range PIC architecture built by upgrading low-end architectures
with more number of peripherals, more number of registers and
more data/program memory.
• Some of the mid-range devices are
• 16C6X
• 16C7X
• 16F87X
• Program memory type is indicated by an alphabet.
• C = EPROM
• F = Flash
• RC = Mask ROM
12-02-2019 suryaprakash.vsm@gmail.com 7
Contd.,
• One of the mid -range versions of PIC µCs is PIC16C6x/7x. The 7x
family has an enhancement of Analog to Digital converter capability.
These µCs are available with a range of capabilities packaged in both
dual in-line (DIP) packages and surface-mount packages. These are
available in 28 pin DIP,40 pin DIP ,44 pin surface mount package…etc
• In this 6x/7x family of Micro controllers , PIC 16C62A/PIC 16C74A are
found with a suffix A. some of PIC do not contain this A. The presence
of A indicates the brownout reset feature, which causes a reset of the
PIC when the Power Supply voltage drops below 4.0 V.
12-02-2019 suryaprakash.vsm@gmail.com 8
Features
• Speed :
• When operated at its maximum clock rate a PIC executes most of its
instructions in 0.2 µs or five instructions per microsecond.
• Instruction set Simplicity :
• The instruction set is so simple that it consists of just 35 instructions.
• Integration of operational features:
• Power-on-reset and brown-out protection ensure that the chip operates only
when the supply voltage is within specifications. A watch dog timer resets the
PIC if the chip malfunctions or deviates from its normal operation at anytime.
12-02-2019 suryaprakash.vsm@gmail.com 9
Contd.,
• Programmable timer options:
• Three timers can characterize inputs, control outputs and provide internal
timing for the program execution.
• Powerful output pin control:
• A single instruction can select and drive a single output pin high or low in its
0.2 µs instruction execution time. The PIN can drive a load of up to 25µA.
• I/O port expansion:
• With the help of built in serial peripheral interface the number of I/O ports
can be expanded. EPROM/DIP/ROM options are provided
• Interrupt control:
• Up to 12 independent interrupt sources can control when the CPU
will deal with each sources.
12-02-2019 suryaprakash.vsm@gmail.com 10
Architecture
12-02-2019 suryaprakash.vsm@gmail.com 11
Pin Diagram
12-02-2019 suryaprakash.vsm@gmail.com 12
Contd.,
• CPU (Central Processing Unit)
It is not different from other microcontrollers CPU and the
PIC microcontroller CPU consists of the ALU, CU, MU and accumulator,
etc. Arithmetic logic unit is mainly used for arithmetic operations and to take
logical decisions. Memory is used for storing the instructions after processing.
To control the internal and external peripherals, control unit is used which are
connected to the CPU and the accumulator is used for storing the results and
further process.
• Memory Organization
The memory module in the PIC microcontroller architecture consists of RAM
(Random Access Memory), ROM (Read Only Memory) and STACK.
12-02-2019 suryaprakash.vsm@gmail.com 13
Contd.,
• Random Access Memory (RAM)
RAM is an unstable memory which is used to store the data temporarily in its registers.
The RAM memory is classified into two banks, and each bank consists of so many
registers. The RAM registers are classified into two types: Special Function Registers
(SFR) and General Purpose Registers (GPR).
• General Purpose Registers (GPR)
These registers are used for general purpose only as the name implies. For example, if
we want to multiply two numbers by using the PIC microcontroller. Generally, we use
registers for multiplying and storing the numbers in other registers. So these registers
don’t have any special function,- CPU can easily access the data in the registers.
• Special Function Registers
These registers are used for special purposes only as the name SFR implies. These
registers will perform according to the functions assigned to them , and they cannot
be used as normal registers. For example, if you cannot use the STATUS register for
storing the data, these registers are used for showing the operation or status of the
program. So, user cannot change the function of the SFR; the function is given by the
retailer at the time of manufacturing.
12-02-2019 suryaprakash.vsm@gmail.com 14
• Read Only Memory (ROM)
Read only memory is a stable memory which is used to store the data
permanently. In PIC microcontroller architecture, the architecture ROM
stores the instructions or program, according to the program
the microcontroller acts. The ROM is also called as program memory,
wherein the user will write the program for microcontroller and saves it
permanently, and finally the program is executed by the CPU.
The microcontrollers performance depends on the instruction, which is
executed by the CPU.
• Electrically Erasable Programmable Read Only Memory
(EEPROM)
In the normal ROM, we can write the program for only once we cannot use
again the microcontroller for multiple times. But, in the EEPROM, we can
program the ROM multiple times.
• Flash Memory
Flash memory is also programmable read only memory (PROM) in which we
can read, write and erase the program thousands of times. Generally, the
PIC microcontroller uses this type of ROM.
• Stack
When an interrupt occurs, first the PIC microcontroller has to execute the
interrupt and the existing process address. Then that is being executed is
stored in the stack. After completing the execution of the interrupt,
the microcontroller calls the process with the help of address, which is
stored in the stack and get executes the process.
12-02-2019suryaprakash.vsm@gmail.com 15
Contd.,
• I/O Ports
• The series of PIC16 consists of five ports such as Port A, Port B, Port C, Port D
& Port E.
• Port A is an 6-bit port that can be used as input or output port based on the
status of the TRISA register and additional functionality of ADC.
• Port B is an 8- bit port that can be used as both input and output port and for
programming functionality
• Port C is an 8-bit and the input & output operation is decided by the status of
the TRISC register and additional functionality of Communication operation.
• Port D is an 8-bit port acts as a slave port for connection to the
microprocessor BUS and additional functionality of parallel slave operation.
• Port E is a 3-bit port which serves the additional function of reading and
writing from external memory.
12-02-2019 suryaprakash.vsm@gmail.com 16
Contd.,
•BUS
BUS is used to transfer and receive the data
from one peripheral to another. It is classified
into two types such as data bus and address.
Data Bus: It is used for only transfer or receive
the data.
Address Bus: Address bus is used to transmit
the memory address from the peripherals to
the CPU. I/O pins are used to interface the
external peripherals; UART and USART both
are serial communication protocols which are
used for interfacing serial devices like GSM,
GPS, Bluetooth, IR , etc.
12-02-2019 suryaprakash.vsm@gmail.com 17
Contd.,
• A/D converters
The main intention of this analog to digital
converter is to convert analog voltage
values to digital voltage values. A/D
module of PIC microcontroller consists of 5
inputs for 28 pin devices and 8 inputs for
40 pin devices. The operation of the analog
to digital converter is controlled by
ADCON0 and ADCON1 special registers.
The upper bits of the converter are stored
in register ADRESH and lower bits of the
converter are stored in register ADRESL.
For this operation, it requires 5V of an
analog reference voltage.
Contd.,
Timers/ Counters
• PIC microcontroller has three timer/counters wherein the one 8-bit timer and the remaining
timers have the choice to select 8 or 16-bit mode. Timers are used for generating accuracy
actions, for example, creating specific time delays between two operations.
Interrupts
• PIC microcontroller consists of 7 interrupt sources which are associated with different peripherals
like ADC, USART, Timers, and so on.
Serial Communication
• Serial communication is the method of transferring data one bit at a time sequentially over
a communication channel.
• USART: The name USART stands for Universal synchronous and Asynchronous Receiver and
Transmitter which is a serial communication for two protocols. It is used for transmitting and
receiving the data bit by bit over a single wire with respect to clock pulses. The PIC
microcontroller has two pins TXD and RXD. These pins are used for transmitting and receiving
the data serially.
12-02-2019 suryaprakash.vsm@gmail.com 19
Contd.,
• SPI Protocol: The term SPI stands for Serial
Peripheral Interface. This protocol is used to send
data between PIC microcontroller and other
peripherals such as SD cards, sensors and shift
registers. PIC microcontroller support three wire
SPI communications between two devices on a
common clock source. The data rate of SPI
protocol is more than that of the USART.
• I2C Protocol: The term I2C stands for Inter
Integrated Circuit , and it is a serial protocol which
is used to connect low speed devices such as
EEPROMS, microcontrollers, A/D converters, etc.
PIC microcontroller support two wire Interface or
I2C communication between two devices which
can work as both Master and Slave device.
12-02-2019 suryaprakash.vsm@gmail.com 20
Contd.,
• Oscillators
Oscillators are used for timing generation. Pic microcontroller consist of external
oscillators like RC oscillators or crystal oscillators. Where the crystal oscillator is
connected between the two oscillator pins. The value of the capacitor is connected to
every pin that decides the mode of the operation of the oscillator. The modes are
crystal mode, high-speed mode and the low-power mode. In case of RC oscillators, the
value of the resistor & capacitor determine the clock frequency and the range of clock
frequency is 30KHz to 4MHz.
• CCP module
The name CCP module stands for capture/compare/PWM where it works in three
modes such as capture mode, compare mode and PWM mode.
• Capture Mode: Capture mode captures the time of arrival of a signal, or in other
words, when the CCP pin goes high, it captures the value of the Timer1.
• Compare Mode: Compare mode acts as an analog comparator. When the timer1
value reaches a certain reference value, then it generates an output.
• PWM Mode: PWM mode provides pulse width modulated output with a 10-bit
resolution and programmable duty cycle.
12-02-2019 suryaprakash.vsm@gmail.com 21
2/12/2019 suryaprakash.vsm@gmail.com 22
This Photo by Unknown Author is licensed under CC BY-NC-ND
Learn by Doing
Excel Thru Experimentation
Lead by Example
Acquire skills and get employed
Update skills and stay employed

More Related Content

What's hot

Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded SystemsSudhanshu Janwadkar
 
EMBEDDED SYSTEMS overview
EMBEDDED SYSTEMS overviewEMBEDDED SYSTEMS overview
EMBEDDED SYSTEMS overviewMADHUMITHA154
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIslam Samir
 
embedded systems ppt 3
embedded systems ppt 3embedded systems ppt 3
embedded systems ppt 3pavan kumar
 
Unit-I Basic Embedded System Notes
Unit-I Basic Embedded System NotesUnit-I Basic Embedded System Notes
Unit-I Basic Embedded System NotesDr. Pankaj Zope
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded Systemrmkceteee
 
An Entire Concept of Embedded systems
An Entire Concept of Embedded systems An Entire Concept of Embedded systems
An Entire Concept of Embedded systems Prabhakar Captain
 
embedded systems ppts
embedded systems pptsembedded systems ppts
embedded systems pptspavan kumar
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded SystemsJoy Dutta
 
Embedded Systems : introduction
Embedded Systems : introductionEmbedded Systems : introduction
Embedded Systems : introductionAnant Shrivastava
 
Introduction to embedded system design
Introduction to embedded system designIntroduction to embedded system design
Introduction to embedded system designMukesh Bansal
 
Basics of Embedded System
Basics of Embedded System Basics of Embedded System
Basics of Embedded System Rajesh Roshan
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systemskondalarao7
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systemsRAMPRAKASHT1
 
Embedded system Design
Embedded system DesignEmbedded system Design
Embedded system DesignAJAL A J
 

What's hot (20)

Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
EMBEDDED SYSTEMS overview
EMBEDDED SYSTEMS overviewEMBEDDED SYSTEMS overview
EMBEDDED SYSTEMS overview
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and Microcontrollers
 
embedded systems ppt 3
embedded systems ppt 3embedded systems ppt 3
embedded systems ppt 3
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Unit-I Basic Embedded System Notes
Unit-I Basic Embedded System NotesUnit-I Basic Embedded System Notes
Unit-I Basic Embedded System Notes
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
 
An Entire Concept of Embedded systems
An Entire Concept of Embedded systems An Entire Concept of Embedded systems
An Entire Concept of Embedded systems
 
embedded systems ppts
embedded systems pptsembedded systems ppts
embedded systems ppts
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
Embedded Systems : introduction
Embedded Systems : introductionEmbedded Systems : introduction
Embedded Systems : introduction
 
Basics of embedded systems
Basics of embedded systemsBasics of embedded systems
Basics of embedded systems
 
Introduction to embedded system design
Introduction to embedded system designIntroduction to embedded system design
Introduction to embedded system design
 
Basics of Embedded System
Basics of Embedded System Basics of Embedded System
Basics of Embedded System
 
Classification OF Microprocessor
Classification OF MicroprocessorClassification OF Microprocessor
Classification OF Microprocessor
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 
Embedded system Design
Embedded system DesignEmbedded system Design
Embedded system Design
 

Similar to Class 5 an 8 bit embedded platform

8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureJamia Hamdard
 
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar RoyPresentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar RoyDilip Kumar Ckt
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptHAriesOa1
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdfirfanakram32
 
Solution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsSolution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsmanishpatel_79
 
Embedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyoneEmbedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyoneManojGupta666004
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontrollerRajib Roy
 
Micro controller
Micro controllerMicro controller
Micro controllerDevi Prasad
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080Vivek Venugopal
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontrollerVandna Sambyal
 
Microprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptMicroprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptTALHARIAZ46
 
Microcontroller lec 1
Microcontroller  lec 1Microcontroller  lec 1
Microcontroller lec 1Ibrahim Reda
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxbhaveshagrawal35
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 

Similar to Class 5 an 8 bit embedded platform (20)

8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar RoyPresentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdf
 
Solution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsSolution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systems
 
Embedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyoneEmbedded system book very helpful needed and use by everyone
Embedded system book very helpful needed and use by everyone
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontroller
 
Micro controller
Micro controllerMicro controller
Micro controller
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
Microprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptMicroprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.ppt
 
GOWTHAM REPORT
GOWTHAM REPORTGOWTHAM REPORT
GOWTHAM REPORT
 
Microcontroller lec 1
Microcontroller  lec 1Microcontroller  lec 1
Microcontroller lec 1
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 

More from SURYAPRAKASH S

Class 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction setClass 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction setSURYAPRAKASH S
 
Class 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsClass 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsSURYAPRAKASH S
 
Product Design and Development
Product Design and DevelopmentProduct Design and Development
Product Design and DevelopmentSURYAPRAKASH S
 
Unit 4 Automated system
Unit 4 Automated systemUnit 4 Automated system
Unit 4 Automated systemSURYAPRAKASH S
 
Unit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlUnit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlSURYAPRAKASH S
 

More from SURYAPRAKASH S (7)

Class 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction setClass 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction set
 
Class 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsClass 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basics
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O Ports
 
Product Design and Development
Product Design and DevelopmentProduct Design and Development
Product Design and Development
 
Unit 4 Automated system
Unit 4 Automated systemUnit 4 Automated system
Unit 4 Automated system
 
Unit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlUnit 3 Computer Numerical Control
Unit 3 Computer Numerical Control
 
Canbus
CanbusCanbus
Canbus
 

Recently uploaded

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Class 5 an 8 bit embedded platform

  • 1. An 8 Bit Embedded Platform (Part I) Session 5 SURYAPRAKASH S suryaprakash.vsm@gmail.com The resource for the PPT is made from variety of Books and online PPT that were available in Internet. The Purpose of the PPT is made for the Classroom Teaching.
  • 3. History about PIC Microcontroller • Steve Sanghi, the chairman, president and CEO of Microchip Technology Inc • Sanghi moved from India to U.S. to pursue a Master’s degree at the University of Massachusetts after bachelor’s degree in engineering, from Punjab Engineering College. • In 1993, Sanghi became president and CEO of Microchip after seeking advice from venture capital firms on starting his own company. • Since then, he has transformed Microchip into a billion-dollar company specializing in Microcontroller and analog semiconductors used in devices ranging from remote controls to cars. He also has been involved in science and technology education programs, and he’s been known to frequent science fairs and question kids about their projects. 12-02-2019 suryaprakash.vsm@gmail.com 3
  • 5. Introduction • The term PIC stands for “Peripheral Interface Controller” .It is the brain child of Microchip Technology, USA .They have coined this name to identify their single chip micro-controllers. These 8-bit micro controllers have become very important now -a -days in industrial automation and embedded applications etc.….. • PICs are popular with both industrial developers and hobbyists alike due to their low cost, wide availability, large user base, extensive collection of application notes, availability of low cost or free development tools, and serial programming (and re-programming with flash memory) capability. 12-02-2019 suryaprakash.vsm@gmail.com 5
  • 6. Contd., • Microchip PIC microcontrollers are available in various types. When PIC microcontroller MCU was first available from General Instruments in early 1980’s, the micro-controller had a simple processor executing 12-bit wide instructions with basic I/O functions. These devices are known as low-end architectures. They have limited program memory and are meant for applications requiring simple interface functions and small program & data memories. • Some of the low-end device numbers are • 12C5XX • 16C5X • 16C505 12-02-2019 suryaprakash.vsm@gmail.com 6
  • 7. Contd., • Mid range PIC architecture built by upgrading low-end architectures with more number of peripherals, more number of registers and more data/program memory. • Some of the mid-range devices are • 16C6X • 16C7X • 16F87X • Program memory type is indicated by an alphabet. • C = EPROM • F = Flash • RC = Mask ROM 12-02-2019 suryaprakash.vsm@gmail.com 7
  • 8. Contd., • One of the mid -range versions of PIC µCs is PIC16C6x/7x. The 7x family has an enhancement of Analog to Digital converter capability. These µCs are available with a range of capabilities packaged in both dual in-line (DIP) packages and surface-mount packages. These are available in 28 pin DIP,40 pin DIP ,44 pin surface mount package…etc • In this 6x/7x family of Micro controllers , PIC 16C62A/PIC 16C74A are found with a suffix A. some of PIC do not contain this A. The presence of A indicates the brownout reset feature, which causes a reset of the PIC when the Power Supply voltage drops below 4.0 V. 12-02-2019 suryaprakash.vsm@gmail.com 8
  • 9. Features • Speed : • When operated at its maximum clock rate a PIC executes most of its instructions in 0.2 µs or five instructions per microsecond. • Instruction set Simplicity : • The instruction set is so simple that it consists of just 35 instructions. • Integration of operational features: • Power-on-reset and brown-out protection ensure that the chip operates only when the supply voltage is within specifications. A watch dog timer resets the PIC if the chip malfunctions or deviates from its normal operation at anytime. 12-02-2019 suryaprakash.vsm@gmail.com 9
  • 10. Contd., • Programmable timer options: • Three timers can characterize inputs, control outputs and provide internal timing for the program execution. • Powerful output pin control: • A single instruction can select and drive a single output pin high or low in its 0.2 µs instruction execution time. The PIN can drive a load of up to 25µA. • I/O port expansion: • With the help of built in serial peripheral interface the number of I/O ports can be expanded. EPROM/DIP/ROM options are provided • Interrupt control: • Up to 12 independent interrupt sources can control when the CPU will deal with each sources. 12-02-2019 suryaprakash.vsm@gmail.com 10
  • 13. Contd., • CPU (Central Processing Unit) It is not different from other microcontrollers CPU and the PIC microcontroller CPU consists of the ALU, CU, MU and accumulator, etc. Arithmetic logic unit is mainly used for arithmetic operations and to take logical decisions. Memory is used for storing the instructions after processing. To control the internal and external peripherals, control unit is used which are connected to the CPU and the accumulator is used for storing the results and further process. • Memory Organization The memory module in the PIC microcontroller architecture consists of RAM (Random Access Memory), ROM (Read Only Memory) and STACK. 12-02-2019 suryaprakash.vsm@gmail.com 13
  • 14. Contd., • Random Access Memory (RAM) RAM is an unstable memory which is used to store the data temporarily in its registers. The RAM memory is classified into two banks, and each bank consists of so many registers. The RAM registers are classified into two types: Special Function Registers (SFR) and General Purpose Registers (GPR). • General Purpose Registers (GPR) These registers are used for general purpose only as the name implies. For example, if we want to multiply two numbers by using the PIC microcontroller. Generally, we use registers for multiplying and storing the numbers in other registers. So these registers don’t have any special function,- CPU can easily access the data in the registers. • Special Function Registers These registers are used for special purposes only as the name SFR implies. These registers will perform according to the functions assigned to them , and they cannot be used as normal registers. For example, if you cannot use the STATUS register for storing the data, these registers are used for showing the operation or status of the program. So, user cannot change the function of the SFR; the function is given by the retailer at the time of manufacturing. 12-02-2019 suryaprakash.vsm@gmail.com 14
  • 15. • Read Only Memory (ROM) Read only memory is a stable memory which is used to store the data permanently. In PIC microcontroller architecture, the architecture ROM stores the instructions or program, according to the program the microcontroller acts. The ROM is also called as program memory, wherein the user will write the program for microcontroller and saves it permanently, and finally the program is executed by the CPU. The microcontrollers performance depends on the instruction, which is executed by the CPU. • Electrically Erasable Programmable Read Only Memory (EEPROM) In the normal ROM, we can write the program for only once we cannot use again the microcontroller for multiple times. But, in the EEPROM, we can program the ROM multiple times. • Flash Memory Flash memory is also programmable read only memory (PROM) in which we can read, write and erase the program thousands of times. Generally, the PIC microcontroller uses this type of ROM. • Stack When an interrupt occurs, first the PIC microcontroller has to execute the interrupt and the existing process address. Then that is being executed is stored in the stack. After completing the execution of the interrupt, the microcontroller calls the process with the help of address, which is stored in the stack and get executes the process. 12-02-2019suryaprakash.vsm@gmail.com 15
  • 16. Contd., • I/O Ports • The series of PIC16 consists of five ports such as Port A, Port B, Port C, Port D & Port E. • Port A is an 6-bit port that can be used as input or output port based on the status of the TRISA register and additional functionality of ADC. • Port B is an 8- bit port that can be used as both input and output port and for programming functionality • Port C is an 8-bit and the input & output operation is decided by the status of the TRISC register and additional functionality of Communication operation. • Port D is an 8-bit port acts as a slave port for connection to the microprocessor BUS and additional functionality of parallel slave operation. • Port E is a 3-bit port which serves the additional function of reading and writing from external memory. 12-02-2019 suryaprakash.vsm@gmail.com 16
  • 17. Contd., •BUS BUS is used to transfer and receive the data from one peripheral to another. It is classified into two types such as data bus and address. Data Bus: It is used for only transfer or receive the data. Address Bus: Address bus is used to transmit the memory address from the peripherals to the CPU. I/O pins are used to interface the external peripherals; UART and USART both are serial communication protocols which are used for interfacing serial devices like GSM, GPS, Bluetooth, IR , etc. 12-02-2019 suryaprakash.vsm@gmail.com 17
  • 18. Contd., • A/D converters The main intention of this analog to digital converter is to convert analog voltage values to digital voltage values. A/D module of PIC microcontroller consists of 5 inputs for 28 pin devices and 8 inputs for 40 pin devices. The operation of the analog to digital converter is controlled by ADCON0 and ADCON1 special registers. The upper bits of the converter are stored in register ADRESH and lower bits of the converter are stored in register ADRESL. For this operation, it requires 5V of an analog reference voltage.
  • 19. Contd., Timers/ Counters • PIC microcontroller has three timer/counters wherein the one 8-bit timer and the remaining timers have the choice to select 8 or 16-bit mode. Timers are used for generating accuracy actions, for example, creating specific time delays between two operations. Interrupts • PIC microcontroller consists of 7 interrupt sources which are associated with different peripherals like ADC, USART, Timers, and so on. Serial Communication • Serial communication is the method of transferring data one bit at a time sequentially over a communication channel. • USART: The name USART stands for Universal synchronous and Asynchronous Receiver and Transmitter which is a serial communication for two protocols. It is used for transmitting and receiving the data bit by bit over a single wire with respect to clock pulses. The PIC microcontroller has two pins TXD and RXD. These pins are used for transmitting and receiving the data serially. 12-02-2019 suryaprakash.vsm@gmail.com 19
  • 20. Contd., • SPI Protocol: The term SPI stands for Serial Peripheral Interface. This protocol is used to send data between PIC microcontroller and other peripherals such as SD cards, sensors and shift registers. PIC microcontroller support three wire SPI communications between two devices on a common clock source. The data rate of SPI protocol is more than that of the USART. • I2C Protocol: The term I2C stands for Inter Integrated Circuit , and it is a serial protocol which is used to connect low speed devices such as EEPROMS, microcontrollers, A/D converters, etc. PIC microcontroller support two wire Interface or I2C communication between two devices which can work as both Master and Slave device. 12-02-2019 suryaprakash.vsm@gmail.com 20
  • 21. Contd., • Oscillators Oscillators are used for timing generation. Pic microcontroller consist of external oscillators like RC oscillators or crystal oscillators. Where the crystal oscillator is connected between the two oscillator pins. The value of the capacitor is connected to every pin that decides the mode of the operation of the oscillator. The modes are crystal mode, high-speed mode and the low-power mode. In case of RC oscillators, the value of the resistor & capacitor determine the clock frequency and the range of clock frequency is 30KHz to 4MHz. • CCP module The name CCP module stands for capture/compare/PWM where it works in three modes such as capture mode, compare mode and PWM mode. • Capture Mode: Capture mode captures the time of arrival of a signal, or in other words, when the CCP pin goes high, it captures the value of the Timer1. • Compare Mode: Compare mode acts as an analog comparator. When the timer1 value reaches a certain reference value, then it generates an output. • PWM Mode: PWM mode provides pulse width modulated output with a 10-bit resolution and programmable duty cycle. 12-02-2019 suryaprakash.vsm@gmail.com 21
  • 22. 2/12/2019 suryaprakash.vsm@gmail.com 22 This Photo by Unknown Author is licensed under CC BY-NC-ND Learn by Doing Excel Thru Experimentation Lead by Example Acquire skills and get employed Update skills and stay employed