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
English,
6 months ago
Social Sciences,
6 months ago
History,
6 months ago
Chemistry,
11 months ago
Biology,
11 months ago
India Languages,
1 year ago
Math,
1 year ago