SlideShare a Scribd company logo
Divya Bansal
E.C.E Deptt.
EMBEDDED SYSTEM
(PIC
MICROCONTROLLER)
Embedded System
Microcontroller v/s microprocessor
Tina Pro
Led Interfacing
Led Blinking
Led blinking Turn By Turn
Led Running
X-Pattern
Digital Counting
Pin Programming
Switching Pattern
For And If Loop
Lcd Interfacing
Name Blinking
Name Running
Moving Words
Counting using ASCII Codes
Digital Clock
Temperature Sensor
DC Motor Interfacing
Stepper Motor Interfacing
Relay Interfacing
Seven Segment Display
Display Single Digit
Display Different Digits
Embedded system is one that has computer hardware
with
software embedded in it as one of its important
components. Its
software embeds on ROM. It does not need secondary
memories
as in a computer.
Void main
{
Trisb=0x00;
while(1)
{
portb=0xff delay_ms(100);
portb=0x00;
delay_ms(100);
}
}
SYSTEM EXAMPLES
It is a time display
system.
All needles move clockwise only.
A thin needle rotate every second.
A long needle rotate every
minute.
A short needle rotate every hours.
All needles return to original
position
after 12 hours.
HOUSEHOLD
APPLIANCES
AUDIO PLAYERS
AIRCRAFTS
TELEPHONES
CALCULATORS
MEDICAL
EQUIPMENT
VIDEO GAMES
DIGITAL MUSIC
INSTRUMENT
Peripherals interface controller
Developed by Microchip technology
Microcontroller’s
Not microprocessors
Microprocessor system with
number of components.
A microprocessor is
a programmable
digital electronic
component that
incorporates the
function of CPU on
a single semi
conducting IC.
Microprocessor is of
8-bit, 16-bit, 32-bit,
A tiny computer that
programmable
to run a program.
Serves as a bridge between the
physical world and computer
world.
Interact with the “real world”
through
transducers such as sensors,
motors
lights etc,
Four functions: Input, Process,
Output then communicate.
It is a general purpose
computer.
It has 1 or 2
instructions.
IT contain CPU,
memory
addressing ckts. And
interrupt handling
ckts.
It has many opcodes
for
It is special purpose
digital computer.
It will have many.
It contain all these
as well as timers,
parallel and serial
i/o
and internal RAM
and
ROM.
It has 1 or 2.
Tina pro is a
affordable software
for elect. Students to
simulate circuits. In
this we have to pull
and place
components. It is
advance technology
for engineer to test
the circuit with
implementing into
the pcb, using pcb
may cause several
damage on
electronics
equipment
Here we connect the led
with npn transistor at the
collector side and ground
the emitter terminal. We
connect the supply or
battery at collector
terminal, it is of 5v. We
connect the resistance of
220ohm at anode so that
more current will not be
pass and we select 220
because of led internal
resistance.
Here we connect the
led with npn
transistor at the
collector side when
we close the switch
and supply will
given then led will
glow like shown
with arrows.
Here we connect the led
with pnp transistor at
the emitter side and
ground the collector
terminal. We connect the
supply or battery at
emitter terminal, it is of
5v. We connect the
resistance of 220ohm at
cathode so that more
current will not be pass
and we select 220
because of led internal
Here we connect
the led with pnp
transistor at
the emitter side
when we close the
switch and
supply will
given then led
will glow like
shown with
Here we use two npn
and 1 switch. We use a
battery of 5v and
ammeter so that we
check the current flow
through the circuit. We
connect the bulb at the
load or we can say that
between collector of first
npn and second npn
transistor. When we
close the switch and
supply is given to the
circuit then bulb will
Here we connect
two npn transistor
back to back,
when we close the
switch and supply
will given to the
circuit then bulb
will glow like
shown with
arrows.
Here we use npn
and pnp. We use a
battery of 5v . We
connect the bulb at
the load or we can
say that between
collector of npn and
emitter of pnp
transistor. When we
close the switch and
supply is given to
the circuit then bulb
will glow.
Here we use npn and
pnp. We use a
battery of 5v . We
connect the bulb at
the load or we can
say that between
collector of npn and
emitter of pnp
transistor. When we
close the switch and
supply is given to
the circuit then bulb
will glow, shown
Here we use 4
npn. We use a
battery of 5v.
We connect the
motor between 4
npn transistor.
We use 4
switches at the
base of each
transistor or we
can say that we
use transistor
When we close s1, s3 switch the motor rotates
clockwise and s2, s4 close, then motor rotates
Relay is a electro
mechanical switch.
Here we use SPOR
here we connect the
bulb and battery to
give the supply to
the circuit and
ammeter. It is used
to check that how
much current is
flow through the
circuit.
Mikro c is a
powerful feature
rich development
tool for PIC. It is
designed to provide
the programmer
with easiest possible
solution for
developing
applications for
embedded system,
without
1. void main()
2. {
3. int i,j,k;
4. trisb=0x00;
5. lcd_init(&portb);
6. lcd_cmd(lcd_clear);
7. lcd_cmd(lcd_cursor_off);
8. while(1)
9. {
10. for(i=16;i>=1;i--)
11. {
12. Lcd_chr(1,i,'N');
PROGRAM FOR MOVING WORDSPROGRAM FOR MOVING WORDS
13. delay_ms(100);
14. lcd_chr(1,i+1,' ');
15. delay_ms(100);
16. }
17. for(j=16;j>=2;j--)
18. {
19. lcd_chr(1,j,'E');
20. delay_ms(100);
21. lcd_chr(1,j+1,' ');
22. delay_ms(100);
23. }
PROGRAM FOR MOVING WORDSPROGRAM FOR MOVING WORDS
24. for(k=16;k>=3;k--)
25. {
26. lcd_chr(1,k,'T');
27. delay_ms(100);
28. {
29. lcd_chr(1,k,'T');
30. delay_ms(100);
31. lcd_chr(1,k+1,' ');
32. delay_ms(100);
33. }
34. }
35. }
PROGRAM FOR MOVING WORDSPROGRAM FOR MOVING WORDS
OUTPUT OF MOVING WORDSOUTPUT OF MOVING WORDS
N N E E
T T
1. Void ascii(unsigned char
d)
2. {
3. Unsigned char t;
4. T=d/10;
5. Lcd_chr_cp(t+48);
6. T=d%10;
7. Lcd_chr_cp(t+48);
8. }
9. Void main()
10. {
11. int k;
12.Trisb=0x00;
13. Lcd_init(&portb);
14. lcd_cmd(lcd_clear);
15. lcd_cmd(lcd_cursor_off);
16. while(1)
17. {
18. for(k=0;k<=99;k++)
19. {
20. lcd_cmd(0x85);
21. ascii(k);
22. delay_ms(300);
23. }
24. }}
0 1
99
-- - - - - - - - - -
UPTO
PIC Microcontroller

More Related Content

What's hot

Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
Tearsome Llantada
 
174085193 pic-prgm-manual
174085193 pic-prgm-manual174085193 pic-prgm-manual
174085193 pic-prgm-manual
Arun Shan
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
MAIYO JOSPHAT
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
Siva Kumar
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
Tanmay Bakshi
 
Pic full note
Pic full notePic full note
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
Dr.YNM
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction set
v Kalairajan
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
sunil polo
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
Ibrahim Reda
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
Ganesh Ram
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
Dr.YNM
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
Dr.YNM
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
Midhu S V Unnithan
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
THANDAIAH PRABU
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
Pantech ProLabs India Pvt Ltd
 
EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller
pavihari
 
PIC
PICPIC
PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller review
Mohsen Sarakbi
 

What's hot (19)

Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
174085193 pic-prgm-manual
174085193 pic-prgm-manual174085193 pic-prgm-manual
174085193 pic-prgm-manual
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
 
Pic full note
Pic full notePic full note
Pic full note
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction set
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
 
EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller
 
PIC
PICPIC
PIC
 
PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller review
 

Similar to PIC Microcontroller

Wireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensorsWireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensors
Sudhanshu Tripathi
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
Saurabh Uniyal
 
7380969 Line Follower Using At89c51
7380969 Line Follower Using At89c517380969 Line Follower Using At89c51
7380969 Line Follower Using At89c51
biharimukund
 
POSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMPOSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEM
KEVSER CARPET
 
Led chaser
Led chaserLed chaser
Led chaser
BEASTKUSHAL
 
Project Report
Project ReportProject Report
Project Report
Engineering Garage V=ir
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
akmalKhan55
 
372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt
chiragdhimam4321
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
Pallavi Bharti
 
Street light controlling using Microcontroller
Street light controlling using MicrocontrollerStreet light controlling using Microcontroller
Street light controlling using Microcontroller
9989476539
 
JamesEndl
JamesEndlJamesEndl
JamesEndl
James Endl
 
Automatic mall elevator
Automatic mall elevatorAutomatic mall elevator
Automatic mall elevator
Abhilash Dhatrak
 
Ctara report
Ctara reportCtara report
Ctara report
Pushkar Limaye
 
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENTSTREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
m sivareddy
 
There is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdfThere is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdf
arihantstoneart
 
There is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdfThere is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdf
fathimalinks
 
04 Arduino Peripheral Interfacing
04   Arduino Peripheral Interfacing04   Arduino Peripheral Interfacing
04 Arduino Peripheral Interfacing
Wingston
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16
Ramadan Ramadan
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
Chirag Lakhani
 
embedded system
embedded system  embedded system
embedded system
Gopal Dhaker
 

Similar to PIC Microcontroller (20)

Wireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensorsWireless greenhouse environment monitoring through sensors
Wireless greenhouse environment monitoring through sensors
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
7380969 Line Follower Using At89c51
7380969 Line Follower Using At89c517380969 Line Follower Using At89c51
7380969 Line Follower Using At89c51
 
POSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMPOSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEM
 
Led chaser
Led chaserLed chaser
Led chaser
 
Project Report
Project ReportProject Report
Project Report
 
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
Share 'speed control_of_dc_motor_using_microcontroller.pptx'[1][1]
 
372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
Street light controlling using Microcontroller
Street light controlling using MicrocontrollerStreet light controlling using Microcontroller
Street light controlling using Microcontroller
 
JamesEndl
JamesEndlJamesEndl
JamesEndl
 
Automatic mall elevator
Automatic mall elevatorAutomatic mall elevator
Automatic mall elevator
 
Ctara report
Ctara reportCtara report
Ctara report
 
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENTSTREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
 
There is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdfThere is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdf
 
There is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdfThere is a requirement to design a system to sense the presence of gl.pdf
There is a requirement to design a system to sense the presence of gl.pdf
 
04 Arduino Peripheral Interfacing
04   Arduino Peripheral Interfacing04   Arduino Peripheral Interfacing
04 Arduino Peripheral Interfacing
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
embedded system
embedded system  embedded system
embedded system
 

Recently uploaded

HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 

Recently uploaded (20)

HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 

PIC Microcontroller

  • 1. Divya Bansal E.C.E Deptt. EMBEDDED SYSTEM (PIC MICROCONTROLLER)
  • 2. Embedded System Microcontroller v/s microprocessor Tina Pro Led Interfacing Led Blinking Led blinking Turn By Turn Led Running X-Pattern Digital Counting
  • 3. Pin Programming Switching Pattern For And If Loop Lcd Interfacing Name Blinking Name Running Moving Words Counting using ASCII Codes Digital Clock
  • 4. Temperature Sensor DC Motor Interfacing Stepper Motor Interfacing Relay Interfacing Seven Segment Display Display Single Digit Display Different Digits
  • 5. Embedded system is one that has computer hardware with software embedded in it as one of its important components. Its software embeds on ROM. It does not need secondary memories as in a computer. Void main { Trisb=0x00; while(1) { portb=0xff delay_ms(100); portb=0x00; delay_ms(100); } }
  • 6. SYSTEM EXAMPLES It is a time display system. All needles move clockwise only. A thin needle rotate every second. A long needle rotate every minute. A short needle rotate every hours. All needles return to original position after 12 hours.
  • 8. Peripherals interface controller Developed by Microchip technology Microcontroller’s Not microprocessors Microprocessor system with number of components.
  • 9. A microprocessor is a programmable digital electronic component that incorporates the function of CPU on a single semi conducting IC. Microprocessor is of 8-bit, 16-bit, 32-bit,
  • 10. A tiny computer that programmable to run a program. Serves as a bridge between the physical world and computer world. Interact with the “real world” through transducers such as sensors, motors lights etc, Four functions: Input, Process, Output then communicate.
  • 11. It is a general purpose computer. It has 1 or 2 instructions. IT contain CPU, memory addressing ckts. And interrupt handling ckts. It has many opcodes for It is special purpose digital computer. It will have many. It contain all these as well as timers, parallel and serial i/o and internal RAM and ROM. It has 1 or 2.
  • 12. Tina pro is a affordable software for elect. Students to simulate circuits. In this we have to pull and place components. It is advance technology for engineer to test the circuit with implementing into the pcb, using pcb may cause several damage on electronics equipment
  • 13. Here we connect the led with npn transistor at the collector side and ground the emitter terminal. We connect the supply or battery at collector terminal, it is of 5v. We connect the resistance of 220ohm at anode so that more current will not be pass and we select 220 because of led internal resistance.
  • 14. Here we connect the led with npn transistor at the collector side when we close the switch and supply will given then led will glow like shown with arrows.
  • 15. Here we connect the led with pnp transistor at the emitter side and ground the collector terminal. We connect the supply or battery at emitter terminal, it is of 5v. We connect the resistance of 220ohm at cathode so that more current will not be pass and we select 220 because of led internal
  • 16. Here we connect the led with pnp transistor at the emitter side when we close the switch and supply will given then led will glow like shown with
  • 17. Here we use two npn and 1 switch. We use a battery of 5v and ammeter so that we check the current flow through the circuit. We connect the bulb at the load or we can say that between collector of first npn and second npn transistor. When we close the switch and supply is given to the circuit then bulb will
  • 18. Here we connect two npn transistor back to back, when we close the switch and supply will given to the circuit then bulb will glow like shown with arrows.
  • 19. Here we use npn and pnp. We use a battery of 5v . We connect the bulb at the load or we can say that between collector of npn and emitter of pnp transistor. When we close the switch and supply is given to the circuit then bulb will glow.
  • 20. Here we use npn and pnp. We use a battery of 5v . We connect the bulb at the load or we can say that between collector of npn and emitter of pnp transistor. When we close the switch and supply is given to the circuit then bulb will glow, shown
  • 21. Here we use 4 npn. We use a battery of 5v. We connect the motor between 4 npn transistor. We use 4 switches at the base of each transistor or we can say that we use transistor
  • 22. When we close s1, s3 switch the motor rotates clockwise and s2, s4 close, then motor rotates
  • 23. Relay is a electro mechanical switch. Here we use SPOR here we connect the bulb and battery to give the supply to the circuit and ammeter. It is used to check that how much current is flow through the circuit.
  • 24. Mikro c is a powerful feature rich development tool for PIC. It is designed to provide the programmer with easiest possible solution for developing applications for embedded system, without
  • 25. 1. void main() 2. { 3. int i,j,k; 4. trisb=0x00; 5. lcd_init(&portb); 6. lcd_cmd(lcd_clear); 7. lcd_cmd(lcd_cursor_off); 8. while(1) 9. { 10. for(i=16;i>=1;i--) 11. { 12. Lcd_chr(1,i,'N'); PROGRAM FOR MOVING WORDSPROGRAM FOR MOVING WORDS
  • 26. 13. delay_ms(100); 14. lcd_chr(1,i+1,' '); 15. delay_ms(100); 16. } 17. for(j=16;j>=2;j--) 18. { 19. lcd_chr(1,j,'E'); 20. delay_ms(100); 21. lcd_chr(1,j+1,' '); 22. delay_ms(100); 23. } PROGRAM FOR MOVING WORDSPROGRAM FOR MOVING WORDS
  • 27. 24. for(k=16;k>=3;k--) 25. { 26. lcd_chr(1,k,'T'); 27. delay_ms(100); 28. { 29. lcd_chr(1,k,'T'); 30. delay_ms(100); 31. lcd_chr(1,k+1,' '); 32. delay_ms(100); 33. } 34. } 35. } PROGRAM FOR MOVING WORDSPROGRAM FOR MOVING WORDS
  • 28. OUTPUT OF MOVING WORDSOUTPUT OF MOVING WORDS N N E E T T
  • 29. 1. Void ascii(unsigned char d) 2. { 3. Unsigned char t; 4. T=d/10; 5. Lcd_chr_cp(t+48); 6. T=d%10; 7. Lcd_chr_cp(t+48); 8. } 9. Void main() 10. { 11. int k; 12.Trisb=0x00;
  • 30. 13. Lcd_init(&portb); 14. lcd_cmd(lcd_clear); 15. lcd_cmd(lcd_cursor_off); 16. while(1) 17. { 18. for(k=0;k<=99;k++) 19. { 20. lcd_cmd(0x85); 21. ascii(k); 22. delay_ms(300); 23. } 24. }}
  • 31. 0 1 99 -- - - - - - - - - - UPTO