Computer Science, asked by kambojsinghabhi4921, 11 months ago

Write a program to toggle all the bits of p0. assembly language

Answers

Answered by anurag7721
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