Write a program to toggle all the bits of p0. assembly language
Answers
Answered by
1
//Accessing Ports as SFRs using sfr data typesfr P0=0x80;sfr P1=0x90;sfr P2=0xA0;void MSDelay(unsigned int);void main(void){while (1){P0=0x55;P1=0x55;P2=0x55;MSDelay(250);P0=0xAA;P1=0xAA;P2=0xAA;MSDelay(250);}}
Similar questions
Physics,
7 months ago
Chemistry,
1 year ago
Biology,
1 year ago
India Languages,
1 year ago
Math,
1 year ago