SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
មហាវិទ្យាល័យ អគ្គិសនី

Microcontroller PIC16F84A

                ័
បង្រៀនងោយ ហួ ជាវនត

ឆ្ ាំ ២០១១- ២០១២
 ន
etIGVICa   Microcontroller ?

   Microcontroller KWCaRbB½næRtYtBinitümYy
    manlkçNdUckMuBüÚT½rEdlfitenAkñúgsMbk Chip
rUbPaBbgðajEpñkxagkñúg   Microcontroller
karBiBN’naBIeCIg PIC16F84A
karBiBN’naBIeCIg PIC16F84A
=   RckcUl signal

=   Rckecj signal

= RckcUlk¾)an
  Rckecjk¾)an
EtvaGaRs½yelI
karsresr Code
karBiBN’naBIeCIg PIC16F84A
RA0, RA1, RA2, RA3, RA4       RtUv)anehAfa      Port A

RB0, RB1, RB2, RB3, RB4, RB5, RB6, RB7           RtUv)anehAfa       Port B

karehAfa   Port A   KWsMedAelIeCIgTaMgGs;rbs;     Port A


karehAfa   Port A Pin 0    KWsMedAelIeCIgrbs;   Port A bit 0 (   eCIg RA0 )
karehAfa   Port A   nig   Port B   manlkçNdUcKña
Vdd   RbPBviC¢man   +5V    nigVss RbPBGviC¢man      0V
etIGVICa Reset or Master clear (MCLR) ?
   Master clear  KWCaeCIgmYysRmab;eFIVeGay
    Microcontroller RtLb;eTAGas½ydæanedImKW   00h
kartP¢ab; Reset or Master clear
kartP¢ab;esoKVIlMeyaledayeRbIRKiHsþal;
 esoKVIlMeyalCaEpñkmYysMxan;EdlmantYnaTIbegáIteGayman   Square Signal
kareRbIR)as; PORT CaRckecj( Output )
   ral;eCIgnimYy²rbs; PORT A, PORT B
    mantémøcrnþGtibrma 25 mA TaMgcrnþviC¢man
    nigcrnþGviC¢man ( Source Current and Sink Current)
kartP¢ab;GMBUl          LED   eTAkan; PORT
CaFmµtaGMBUl LED
sIucrnþRbEhlBI 8mA eTA
16 mA nigtg;süúgRbEhl

BI 1.6V eTA 2.4V .
   ebIGMBUlLEDsIucrnþ
   10mA nigtg;süúg 2V
kareRbIR)as; PORT CaRckcUl( Input )
    témøtg;süúgEdlcUleTAkan;eCIg PORT
                          ebItg;süúgcUlmantémøBI
                          2V~5V tMNageGayHigh


                         ebItg;süúgcUlmantémøBI
                         0V~0.8V tMNageGayLow
kartP¢ab; Button eTARckcUl( Input )
Active High   PORT

                     +5V         +5V
              Low
  Gt;cuc
              High
   cuc
Active Low    PORT

              High
  Gt;cuc
              Low
   cuc
rebobkMnt; PORT Ca   Input or Output

TRISx KWCa Register
mYysRmab;kMnt;muxgar
rbs; PORTx
TRISx = 1
PORTx as Input.
TRISx = 0
PORTx as Output.
karsresrkmµviFIsRmab; PIC16F84A
   TMrg;TUeTArbs;Pasa C sRmab;   Microcontroller

                void main()
                {

                    while(1)
                    {
                      program body;
                    }
                }
karsresrkmµviFIsRmab; PIC16F84A
void main()           CatMbn;sRmab;RbkasGefr
{
                      rWkarkMnt;nUvmuxgarmYycMnYn
    while(1)
    {
                      rbs; Microcontroller
      program body;
    }                 dUcCa Trisb = 0; or
}
                      Portb = 0; CaedIm .
karsresrkmµviFIsRmab; PIC16F84A
void main()
{
                      CatMbn;EdlmandMeNIrkarrhUt
    while(1)
    {                 Example:    GMBUlmYyebIk
      program body;

}
    }                 ehIybiT²CaerogrhUt.
                      eyIgRtUvsresr Code enA
                      kñgtMbn;enH(program body)
                        ú
sresrkmµviFIeGayGMBUlmYyebIkehIybiT²CaerogrhUt
 void main()
 {
     Trisb = 0b00000000;        // Config PortB all pin as output
     Portb = 0b00000000;        // Send data low to all pin of PortB
      while(1)
      {
          Portb = 0b00000001;   // Send data High to bit 0 of PortB
          delay_ms(1000);       // Wait 1 second
          Portb =0b00000000;    // Send data low to all pin of PortB
          delay_ms(1000);       // Wait 1 second
      }
 }
karKUsesoKVI PIC16F84A
GrKuN

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

8051 experiments1
8051 experiments18051 experiments1
8051 experiments1
 
Bunker Level monitoring - Thermal power Plant
Bunker Level monitoring  - Thermal power PlantBunker Level monitoring  - Thermal power Plant
Bunker Level monitoring - Thermal power Plant
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
54261508
5426150854261508
54261508
 
Microcontroller primer
Microcontroller primerMicrocontroller primer
Microcontroller primer
 
000682
000682000682
000682
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
 
OpenPOWER Webinar : Power pc assembly language convention and programming
OpenPOWER Webinar : Power pc assembly language convention and programmingOpenPOWER Webinar : Power pc assembly language convention and programming
OpenPOWER Webinar : Power pc assembly language convention and programming
 
14827 shift registers
14827 shift registers14827 shift registers
14827 shift registers
 
Datasheet 7447
Datasheet 7447Datasheet 7447
Datasheet 7447
 
Algoritma pemrogmraman
Algoritma pemrogmramanAlgoritma pemrogmraman
Algoritma pemrogmraman
 
การบ้าน
การบ้านการบ้าน
การบ้าน
 
Introduction to PIC18FX6J Series MCUs
Introduction to PIC18FX6J Series MCUsIntroduction to PIC18FX6J Series MCUs
Introduction to PIC18FX6J Series MCUs
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
74 hc hct393
74 hc hct39374 hc hct393
74 hc hct393
 
74ls373
74ls37374ls373
74ls373
 
Datasheet 74 ls90
Datasheet 74 ls90Datasheet 74 ls90
Datasheet 74 ls90
 
Chapter7
Chapter7Chapter7
Chapter7
 
7447 National Semiconductor Datasheet
7447 National Semiconductor Datasheet7447 National Semiconductor Datasheet
7447 National Semiconductor Datasheet
 

Similar a Learn microcontroller pic16f84a

22 Microcontroller Programs
22 Microcontroller Programs22 Microcontroller Programs
22 Microcontroller Programsbabak danyal
 
Chp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copyChp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copymkazree
 
Intro2 Robotic With Pic18
Intro2 Robotic With Pic18Intro2 Robotic With Pic18
Intro2 Robotic With Pic18Moayadhn
 
moving message display of lcd
 moving message display of lcd moving message display of lcd
moving message display of lcdabhishek upadhyay
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfSIGMATAX1
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingIkhwan_Fakrudin
 
PIC18F458_Ritula Thakur.pptx.pdf
PIC18F458_Ritula Thakur.pptx.pdfPIC18F458_Ritula Thakur.pptx.pdf
PIC18F458_Ritula Thakur.pptx.pdfAvinashJain66
 
1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf
1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf
1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdfinfo785431
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.pptIlaiyarajaS1
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAlexTronciu
 
Hardware interfacing basics using AVR
Hardware interfacing basics using AVRHardware interfacing basics using AVR
Hardware interfacing basics using AVRMohamed Abdallah
 
04 adc (pic24, ds pic with dma)
04 adc (pic24, ds pic with dma)04 adc (pic24, ds pic with dma)
04 adc (pic24, ds pic with dma)antonio michua
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systemsarlabstech
 
Practical file
Practical filePractical file
Practical filerajeevkr35
 
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9Irfan Qadoos
 
Programming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontrollerProgramming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontrollerCorrado Santoro
 

Similar a Learn microcontroller pic16f84a (20)

22 Microcontroller Programs
22 Microcontroller Programs22 Microcontroller Programs
22 Microcontroller Programs
 
Chp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copyChp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copy
 
Intro2 Robotic With Pic18
Intro2 Robotic With Pic18Intro2 Robotic With Pic18
Intro2 Robotic With Pic18
 
Micro
MicroMicro
Micro
 
moving message display of lcd
 moving message display of lcd moving message display of lcd
moving message display of lcd
 
What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdf
 
Comande oss
Comande ossComande oss
Comande oss
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programming
 
PIC18F458_Ritula Thakur.pptx.pdf
PIC18F458_Ritula Thakur.pptx.pdfPIC18F458_Ritula Thakur.pptx.pdf
PIC18F458_Ritula Thakur.pptx.pdf
 
1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf
1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf
1) Simulate an 8-bit VHDL Adders circuit built using Integer Arithme.pdf
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.ppt
 
Lec12
Lec12Lec12
Lec12
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
 
UART MCU
UART MCUUART MCU
UART MCU
 
Hardware interfacing basics using AVR
Hardware interfacing basics using AVRHardware interfacing basics using AVR
Hardware interfacing basics using AVR
 
04 adc (pic24, ds pic with dma)
04 adc (pic24, ds pic with dma)04 adc (pic24, ds pic with dma)
04 adc (pic24, ds pic with dma)
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
 
Practical file
Practical filePractical file
Practical file
 
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
Temperature Sensor with LED matrix Display BY ►iRFAN QADOOS◄ 9
 
Programming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontrollerProgramming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontroller
 

Último

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
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
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 

Último (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.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
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

Learn microcontroller pic16f84a