What a program to toggle PD3 PH7 and PC5 continuously withou

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); } }

 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 t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site