SlideShare ist ein Scribd-Unternehmen logo
1 von 2
 Implementthe 8 bit UP / Down Counter using PIC Microcontroller
 UP Counter
#include<p24fj128ga010.h>
void Delay();
unsigned int j;
unsigned int k;
void main ()
{
unsigned int i;
TRISA=0x0000;
while(1)
{
for(i=0;i<=255;i++)
{
PORTA=i;
Delay();
}
}
}
void Delay()
{
for (j=0;j<9000;j++)
for (k=0;k<100;k++);
}
 Down Counter
#include<p24fj128ga010.h>
void Delay();
unsigned int j;
unsigned int k;
void main ()
{
unsigned int i;
TRISA=0x0000;
while(1)
{
for(i=255;i>=0;i--)
{
PORTA=i;
Delay();
}
}
}
void Delay()
{
for (j=0;j<9000;j++)
for (k=0;k<100;k++);
}
 Demonstrate Right and Left Shift operation using PIC
Microcontroller
 RightOperation
#include<p24fj128ga010.h>
void Delay();
unsigned int j;
unsigned int k;
void main ()
{
unsigned int i,b;
TRISA=0x0000;
while(1)
{
b=128;
for(i=0;i<=7;i++)
{
PORTA=b;
Delay();
b=b>>1;
}
}
}
void Delay()
{
for (j=0;j<9000;j++)
for (k=0;k<100;k++);
}
 Left Shift Opetation
#include<p24fj128ga010.h>
void Delay();
unsigned int j;
unsigned int k;
void main ()
{
unsigned int i,b;
TRISA=0x0000;
while(1)
{
b=1;
for(i=0;i<=7;i++)
{
PORTA=b;
Delay();
b=b<<1;
}
}
}
void Delay()
{
for (j=0;j<9000;j++)
for (k=0;k<100;k++);
}

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Assignment#6
Assignment#6Assignment#6
Assignment#6
 
C test
C testC test
C test
 
Digital System Design Lab Report - VHDL ECE
Digital System Design Lab Report - VHDL ECEDigital System Design Lab Report - VHDL ECE
Digital System Design Lab Report - VHDL ECE
 
Metal detecting robot sketch
Metal detecting robot sketchMetal detecting robot sketch
Metal detecting robot sketch
 
C++20 features
C++20 features C++20 features
C++20 features
 
Assignment#2
Assignment#2Assignment#2
Assignment#2
 
Embedded system design psoc lab report
Embedded system design psoc lab reportEmbedded system design psoc lab report
Embedded system design psoc lab report
 
Flex sensor
Flex sensorFlex sensor
Flex sensor
 
Assignment#4a
Assignment#4aAssignment#4a
Assignment#4a
 
26. composite l2qtouchpad
26. composite l2qtouchpad26. composite l2qtouchpad
26. composite l2qtouchpad
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog code
 
22 microcontroller programs
22 microcontroller programs22 microcontroller programs
22 microcontroller programs
 
Assignment#7a
Assignment#7aAssignment#7a
Assignment#7a
 
Assignment#7b
Assignment#7bAssignment#7b
Assignment#7b
 
77
7777
77
 
Fpga creating counter with internal clock
Fpga   creating counter with internal clockFpga   creating counter with internal clock
Fpga creating counter with internal clock
 
REPORT
REPORTREPORT
REPORT
 
Reporte de electrónica digital con VHDL: practica 7 memorias
Reporte de electrónica digital con VHDL: practica 7 memorias Reporte de electrónica digital con VHDL: practica 7 memorias
Reporte de electrónica digital con VHDL: practica 7 memorias
 
Introduction to mazey
Introduction to mazeyIntroduction to mazey
Introduction to mazey
 
Q 1
Q 1Q 1
Q 1
 

Ähnlich wie Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018

Playing with camera preview buffers on BlackBerry 10
Playing with camera preview buffers on BlackBerry 10Playing with camera preview buffers on BlackBerry 10
Playing with camera preview buffers on BlackBerry 10Raimon Ràfols
 
Two digit-countdown-timer
Two digit-countdown-timerTwo digit-countdown-timer
Two digit-countdown-timerHEATLBJ
 
codings related to avr micro controller
codings related to avr micro controllercodings related to avr micro controller
codings related to avr micro controllerSyed Ghufran Hassan
 
GPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cGPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cZakaria Gomaa
 
94257825 bao-cao-pld
94257825 bao-cao-pld94257825 bao-cao-pld
94257825 bao-cao-pldbuianhminh
 
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IOT Academy
 
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
 
Chp5 pic microcontroller instruction set copy
Chp5 pic microcontroller instruction set   copyChp5 pic microcontroller instruction set   copy
Chp5 pic microcontroller instruction set copymkazree
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_papervandna123
 
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)Shinya Takamaeda-Y
 
32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technology32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technologyBharat Biyani
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
 
8051 C Assignments with all examples covered
8051 C Assignments with all examples covered8051 C Assignments with all examples covered
8051 C Assignments with all examples coveredAbdulMunaf52
 
Vechicle accident prevention using eye bilnk sensor ppt
Vechicle accident prevention using eye bilnk sensor pptVechicle accident prevention using eye bilnk sensor ppt
Vechicle accident prevention using eye bilnk sensor pptsatish 486
 
Chapter 7 8051 programming in c
Chapter 7  8051 programming in cChapter 7  8051 programming in c
Chapter 7 8051 programming in cAbdelrahman Elewah
 

Ähnlich wie Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018 (20)

8051 -5
8051 -58051 -5
8051 -5
 
Playing with camera preview buffers on BlackBerry 10
Playing with camera preview buffers on BlackBerry 10Playing with camera preview buffers on BlackBerry 10
Playing with camera preview buffers on BlackBerry 10
 
Two digit-countdown-timer
Two digit-countdown-timerTwo digit-countdown-timer
Two digit-countdown-timer
 
codings related to avr micro controller
codings related to avr micro controllercodings related to avr micro controller
codings related to avr micro controller
 
Vhdl programs
Vhdl programsVhdl programs
Vhdl programs
 
GPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cGPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-c
 
94257825 bao-cao-pld
94257825 bao-cao-pld94257825 bao-cao-pld
94257825 bao-cao-pld
 
Program interfacing lab
Program interfacing labProgram interfacing lab
Program interfacing lab
 
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programming
 
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
 
Chp5 pic microcontroller instruction set copy
Chp5 pic microcontroller instruction set   copyChp5 pic microcontroller instruction set   copy
Chp5 pic microcontroller instruction set copy
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_paper
 
vhdll.docx
vhdll.docxvhdll.docx
vhdll.docx
 
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
Pythonによるカスタム可能な高位設計技術 (Design Solution Forum 2016@新横浜)
 
32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technology32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technology
 
Direct analog
Direct analogDirect analog
Direct analog
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
8051 C Assignments with all examples covered
8051 C Assignments with all examples covered8051 C Assignments with all examples covered
8051 C Assignments with all examples covered
 
Vechicle accident prevention using eye bilnk sensor ppt
Vechicle accident prevention using eye bilnk sensor pptVechicle accident prevention using eye bilnk sensor ppt
Vechicle accident prevention using eye bilnk sensor ppt
 
Chapter 7 8051 programming in c
Chapter 7  8051 programming in cChapter 7  8051 programming in c
Chapter 7 8051 programming in c
 

Mehr von UVCE

Mathematics new syallbus copy by Lohith 11guee6018
Mathematics new syallbus copy by Lohith 11guee6018Mathematics new syallbus copy by Lohith 11guee6018
Mathematics new syallbus copy by Lohith 11guee6018UVCE
 
3rd 4th-sem-be-syllabus-lohith -11 guee6018
3rd 4th-sem-be-syllabus-lohith -11 guee60183rd 4th-sem-be-syllabus-lohith -11 guee6018
3rd 4th-sem-be-syllabus-lohith -11 guee6018UVCE
 
8 th sem syllabus
8 th sem syllabus8 th sem syllabus
8 th sem syllabusUVCE
 
UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH KUMAR R 11GUEE...
UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH  KUMAR R 11GUEE...UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH  KUMAR R 11GUEE...
UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH KUMAR R 11GUEE...UVCE
 
20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE
20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE
20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCEUVCE
 
20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS
20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS 20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS
20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS UVCE
 
How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018
How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018
How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018UVCE
 
8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...
8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...
8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...UVCE
 
OFC problems for 8th sem Students UVCE
OFC problems for 8th sem Students UVCE OFC problems for 8th sem Students UVCE
OFC problems for 8th sem Students UVCE UVCE
 
8th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE60188th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE6018UVCE
 
8th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE60188th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE6018UVCE
 
8th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE60188th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE6018UVCE
 
8th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE60188th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE6018UVCE
 
EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018UVCE
 
EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018UVCE
 
EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018UVCE
 
BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R
BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R
BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R UVCE
 

Mehr von UVCE (17)

Mathematics new syallbus copy by Lohith 11guee6018
Mathematics new syallbus copy by Lohith 11guee6018Mathematics new syallbus copy by Lohith 11guee6018
Mathematics new syallbus copy by Lohith 11guee6018
 
3rd 4th-sem-be-syllabus-lohith -11 guee6018
3rd 4th-sem-be-syllabus-lohith -11 guee60183rd 4th-sem-be-syllabus-lohith -11 guee6018
3rd 4th-sem-be-syllabus-lohith -11 guee6018
 
8 th sem syllabus
8 th sem syllabus8 th sem syllabus
8 th sem syllabus
 
UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH KUMAR R 11GUEE...
UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH  KUMAR R 11GUEE...UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH  KUMAR R 11GUEE...
UVCE ELECTRONICS AND COMMUNICATION 7th SEM SYLLABUS BY LOHITH KUMAR R 11GUEE...
 
20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE
20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE
20150128162345995 OFC LAB EXPRIMENT FOR 8TH SEM STUDENTS AT UVCE
 
20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS
20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS 20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS
20150128163727950 ofc LAB EXPERIMENT CKT FOR 8TH SEM STUDENTS
 
How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018
How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018
How to work in keil software FOR 8TH SEM EC STUDENTS UVCE BY LOHITH |11GUEE6018
 
8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...
8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...
8th sem subject Optical fiber communications by gerd keiser uploaded by Lohit...
 
OFC problems for 8th sem Students UVCE
OFC problems for 8th sem Students UVCE OFC problems for 8th sem Students UVCE
OFC problems for 8th sem Students UVCE
 
8th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE60188th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 8th chapter notes by Lohith kumar 11GUEE6018
 
8th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE60188th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc 3rd chapter notes by Lohith kumar 11GUEE6018
 
8th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE60188th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject OFC 2nd chapter notes by Lohith kumar 11GUEE6018
 
8th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE60188th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE6018
8th Sem Subject Ofc1st chapter notes by Lohith kumar 11GUEE6018
 
EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 8th sem syllabus copy form lohith kumar 11guee6018
 
EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 7th sem syllabus copy form lohith kumar 11guee6018
 
EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018
EC(UVCE) 6th sem syllabus copy form lohith kumar 11guee6018
 
BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R
BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R
BU (UVCE)5th Sem Electronics syllabus copy from Lohith kumar R
 

Kürzlich hochgeladen

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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
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
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 

Kürzlich hochgeladen (20)

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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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"
 
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
 
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...
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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"
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 

Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018

  • 1.  Implementthe 8 bit UP / Down Counter using PIC Microcontroller  UP Counter #include<p24fj128ga010.h> void Delay(); unsigned int j; unsigned int k; void main () { unsigned int i; TRISA=0x0000; while(1) { for(i=0;i<=255;i++) { PORTA=i; Delay(); } } } void Delay() { for (j=0;j<9000;j++) for (k=0;k<100;k++); }  Down Counter #include<p24fj128ga010.h> void Delay(); unsigned int j; unsigned int k; void main () { unsigned int i; TRISA=0x0000; while(1) { for(i=255;i>=0;i--) { PORTA=i; Delay(); } } } void Delay() { for (j=0;j<9000;j++) for (k=0;k<100;k++); }
  • 2.  Demonstrate Right and Left Shift operation using PIC Microcontroller  RightOperation #include<p24fj128ga010.h> void Delay(); unsigned int j; unsigned int k; void main () { unsigned int i,b; TRISA=0x0000; while(1) { b=128; for(i=0;i<=7;i++) { PORTA=b; Delay(); b=b>>1; } } } void Delay() { for (j=0;j<9000;j++) for (k=0;k<100;k++); }  Left Shift Opetation #include<p24fj128ga010.h> void Delay(); unsigned int j; unsigned int k; void main () { unsigned int i,b; TRISA=0x0000; while(1) { b=1; for(i=0;i<=7;i++) { PORTA=b; Delay(); b=b<<1; } } } void Delay() { for (j=0;j<9000;j++) for (k=0;k<100;k++); }