SlideShare a Scribd company logo
What a program to toggle PD3, PH7, and PC5 continuously without, disturbing the rest of the
bits. Write a program to monitor bit PC3. When it is HIGH, send 0 times 55 to PORTD.
Solution
//Accessing Ports as SFRs using sfr data type
sfr PD3=0x80;
sfr PD7=0x90;
sfr PC5=0xA0;
void MSDelay(unsigned int);
void main(void)
{
while (1)
{
PD3=0x55;
PD7=0x55;
PC5=0x55;
MSDelay(0);
PD3=0xAA;
PD7=0xAA;
PC5=0xAA;
MSDelay(0); } }

More Related Content

More from arishaenterprises12

Discuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdfDiscuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdf
arishaenterprises12
 
Before 1900, despite its weaknesses in effective management of worke.pdf
Before 1900, despite its weaknesses in effective management of worke.pdfBefore 1900, despite its weaknesses in effective management of worke.pdf
Before 1900, despite its weaknesses in effective management of worke.pdf
arishaenterprises12
 
Alpha particle radiation sensor. A silicon diode radiation sensor is .pdf
Alpha particle radiation sensor. A silicon diode radiation sensor is .pdfAlpha particle radiation sensor. A silicon diode radiation sensor is .pdf
Alpha particle radiation sensor. A silicon diode radiation sensor is .pdf
arishaenterprises12
 
A ship was caught in a storm and driven to a small island in the mid.pdf
A ship was caught in a storm and driven to a small island in the mid.pdfA ship was caught in a storm and driven to a small island in the mid.pdf
A ship was caught in a storm and driven to a small island in the mid.pdf
arishaenterprises12
 
8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf
8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf
8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf
arishaenterprises12
 
As leaf temperature increases from 20°C to 35°C, the quantum yield o.pdf
As leaf temperature increases from 20°C to 35°C, the quantum yield o.pdfAs leaf temperature increases from 20°C to 35°C, the quantum yield o.pdf
As leaf temperature increases from 20°C to 35°C, the quantum yield o.pdf
arishaenterprises12
 
Among 10 people traveling in a group, 2 have outdated passports. It .pdf
Among 10 people traveling in a group, 2 have outdated passports. It .pdfAmong 10 people traveling in a group, 2 have outdated passports. It .pdf
Among 10 people traveling in a group, 2 have outdated passports. It .pdf
arishaenterprises12
 
1.) The normal eye color of Drosophila is red, but strains in which .pdf
1.) The normal eye color of Drosophila is red, but strains in which .pdf1.) The normal eye color of Drosophila is red, but strains in which .pdf
1.) The normal eye color of Drosophila is red, but strains in which .pdf
arishaenterprises12
 
29. Code an application program that keeps track of student informat.pdf
29. Code an application program that keeps track of student informat.pdf29. Code an application program that keeps track of student informat.pdf
29. Code an application program that keeps track of student informat.pdf
arishaenterprises12
 
Write the code for a small function called myStack, which creates a .pdf
Write the code for a small function called myStack, which creates a .pdfWrite the code for a small function called myStack, which creates a .pdf
Write the code for a small function called myStack, which creates a .pdf
arishaenterprises12
 
Why does the neutralization of an acid by a base often produce water.pdf
Why does the neutralization of an acid by a base often produce water.pdfWhy does the neutralization of an acid by a base often produce water.pdf
Why does the neutralization of an acid by a base often produce water.pdf
arishaenterprises12
 
Which statement about phloem transport is falseIt takes place in .pdf
Which statement about phloem transport is falseIt takes place in .pdfWhich statement about phloem transport is falseIt takes place in .pdf
Which statement about phloem transport is falseIt takes place in .pdf
arishaenterprises12
 
Which of the following is not a primitive data type Which of th.pdf
Which of the following is not a primitive data type Which of th.pdfWhich of the following is not a primitive data type Which of th.pdf
Which of the following is not a primitive data type Which of th.pdf
arishaenterprises12
 
What are the three types of column chromatography and the principles.pdf
What are the three types of column chromatography and the principles.pdfWhat are the three types of column chromatography and the principles.pdf
What are the three types of column chromatography and the principles.pdf
arishaenterprises12
 
What are the benefits of endocrine signaling in comparison to neuron.pdf
What are the benefits of endocrine signaling in comparison to neuron.pdfWhat are the benefits of endocrine signaling in comparison to neuron.pdf
What are the benefits of endocrine signaling in comparison to neuron.pdf
arishaenterprises12
 
What does this statement mean...genes code for gene products W.pdf
What does this statement mean...genes code for gene products W.pdfWhat does this statement mean...genes code for gene products W.pdf
What does this statement mean...genes code for gene products W.pdf
arishaenterprises12
 
True of False results that are practically significant will always .pdf
True of False results that are practically significant will always .pdfTrue of False results that are practically significant will always .pdf
True of False results that are practically significant will always .pdf
arishaenterprises12
 
The waiting time T between successive occurrences of an event E in a .pdf
The waiting time T between successive occurrences of an event E in a .pdfThe waiting time T between successive occurrences of an event E in a .pdf
The waiting time T between successive occurrences of an event E in a .pdf
arishaenterprises12
 
The half-life of Carbon-14 is about 5700 years. You have found a fos.pdf
The half-life of Carbon-14 is about 5700 years. You have found a fos.pdfThe half-life of Carbon-14 is about 5700 years. You have found a fos.pdf
The half-life of Carbon-14 is about 5700 years. You have found a fos.pdf
arishaenterprises12
 
The (circle one meanmedian) would be a better measure of central te.pdf
The (circle one meanmedian) would be a better measure of central te.pdfThe (circle one meanmedian) would be a better measure of central te.pdf
The (circle one meanmedian) would be a better measure of central te.pdf
arishaenterprises12
 

More from arishaenterprises12 (20)

Discuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdfDiscuss the benefits of event-driven programming.Contrast event-dr.pdf
Discuss the benefits of event-driven programming.Contrast event-dr.pdf
 
Before 1900, despite its weaknesses in effective management of worke.pdf
Before 1900, despite its weaknesses in effective management of worke.pdfBefore 1900, despite its weaknesses in effective management of worke.pdf
Before 1900, despite its weaknesses in effective management of worke.pdf
 
Alpha particle radiation sensor. A silicon diode radiation sensor is .pdf
Alpha particle radiation sensor. A silicon diode radiation sensor is .pdfAlpha particle radiation sensor. A silicon diode radiation sensor is .pdf
Alpha particle radiation sensor. A silicon diode radiation sensor is .pdf
 
A ship was caught in a storm and driven to a small island in the mid.pdf
A ship was caught in a storm and driven to a small island in the mid.pdfA ship was caught in a storm and driven to a small island in the mid.pdf
A ship was caught in a storm and driven to a small island in the mid.pdf
 
8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf
8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf
8. List 4 GENERAL ways that a CELL, can DECREASE the rate of its rea.pdf
 
As leaf temperature increases from 20°C to 35°C, the quantum yield o.pdf
As leaf temperature increases from 20°C to 35°C, the quantum yield o.pdfAs leaf temperature increases from 20°C to 35°C, the quantum yield o.pdf
As leaf temperature increases from 20°C to 35°C, the quantum yield o.pdf
 
Among 10 people traveling in a group, 2 have outdated passports. It .pdf
Among 10 people traveling in a group, 2 have outdated passports. It .pdfAmong 10 people traveling in a group, 2 have outdated passports. It .pdf
Among 10 people traveling in a group, 2 have outdated passports. It .pdf
 
1.) The normal eye color of Drosophila is red, but strains in which .pdf
1.) The normal eye color of Drosophila is red, but strains in which .pdf1.) The normal eye color of Drosophila is red, but strains in which .pdf
1.) The normal eye color of Drosophila is red, but strains in which .pdf
 
29. Code an application program that keeps track of student informat.pdf
29. Code an application program that keeps track of student informat.pdf29. Code an application program that keeps track of student informat.pdf
29. Code an application program that keeps track of student informat.pdf
 
Write the code for a small function called myStack, which creates a .pdf
Write the code for a small function called myStack, which creates a .pdfWrite the code for a small function called myStack, which creates a .pdf
Write the code for a small function called myStack, which creates a .pdf
 
Why does the neutralization of an acid by a base often produce water.pdf
Why does the neutralization of an acid by a base often produce water.pdfWhy does the neutralization of an acid by a base often produce water.pdf
Why does the neutralization of an acid by a base often produce water.pdf
 
Which statement about phloem transport is falseIt takes place in .pdf
Which statement about phloem transport is falseIt takes place in .pdfWhich statement about phloem transport is falseIt takes place in .pdf
Which statement about phloem transport is falseIt takes place in .pdf
 
Which of the following is not a primitive data type Which of th.pdf
Which of the following is not a primitive data type Which of th.pdfWhich of the following is not a primitive data type Which of th.pdf
Which of the following is not a primitive data type Which of th.pdf
 
What are the three types of column chromatography and the principles.pdf
What are the three types of column chromatography and the principles.pdfWhat are the three types of column chromatography and the principles.pdf
What are the three types of column chromatography and the principles.pdf
 
What are the benefits of endocrine signaling in comparison to neuron.pdf
What are the benefits of endocrine signaling in comparison to neuron.pdfWhat are the benefits of endocrine signaling in comparison to neuron.pdf
What are the benefits of endocrine signaling in comparison to neuron.pdf
 
What does this statement mean...genes code for gene products W.pdf
What does this statement mean...genes code for gene products W.pdfWhat does this statement mean...genes code for gene products W.pdf
What does this statement mean...genes code for gene products W.pdf
 
True of False results that are practically significant will always .pdf
True of False results that are practically significant will always .pdfTrue of False results that are practically significant will always .pdf
True of False results that are practically significant will always .pdf
 
The waiting time T between successive occurrences of an event E in a .pdf
The waiting time T between successive occurrences of an event E in a .pdfThe waiting time T between successive occurrences of an event E in a .pdf
The waiting time T between successive occurrences of an event E in a .pdf
 
The half-life of Carbon-14 is about 5700 years. You have found a fos.pdf
The half-life of Carbon-14 is about 5700 years. You have found a fos.pdfThe half-life of Carbon-14 is about 5700 years. You have found a fos.pdf
The half-life of Carbon-14 is about 5700 years. You have found a fos.pdf
 
The (circle one meanmedian) would be a better measure of central te.pdf
The (circle one meanmedian) would be a better measure of central te.pdfThe (circle one meanmedian) would be a better measure of central te.pdf
The (circle one meanmedian) would be a better measure of central te.pdf
 

Recently uploaded

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 

Recently uploaded (20)

How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 

What a program to toggle PD3, PH7, and PC5 continuously without, dist.pdf

  • 1. What a program to toggle PD3, PH7, and PC5 continuously without, disturbing the rest of the bits. Write a program to monitor bit PC3. When it is HIGH, send 0 times 55 to PORTD. Solution //Accessing Ports as SFRs using sfr data type sfr PD3=0x80; sfr PD7=0x90; sfr PC5=0xA0; void MSDelay(unsigned int); void main(void) { while (1) { PD3=0x55; PD7=0x55; PC5=0x55; MSDelay(0); PD3=0xAA; PD7=0xAA; PC5=0xAA; MSDelay(0); } }