Question: Can you write this code in assembly language include sbit en1=P3^0; sbit en2=P3^1; void delay(unsigned int cnt); void display(unsigned char d1,unsigned char d2); unsigned char

 Can you write this code in assembly language include sbit en1=P3^0;

Can you write this code in assembly language

include

sbit en1=P3^0;

sbit en2=P3^1;

void delay(unsigned int cnt);

void display(unsigned char d1,unsigned char d2);

unsigned char SSD[16]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F,0x77,0x7C,0x39,0x5E,0x79,0x71};

unsigned char cnt=0;

void main(){

P2=0x00;

P3=0x00;

while(1) display(9,10);

}

void delay(unsigned int times){

int opt;

for(opt=0;opt

}

void display(unsigned char d1,unsigned char d2){

P2=SSD[d1];

en1=1;

delay(3000);

en1=0;

P2=SSD[d2];

en2=1;

delay(3000);

en2=0;

}

#include sbit en 1=P310; sbit en2=P3^1 ; void delay(unsigned int ci void display(unsigned cha unsigned char SSD[16]={Ox: unsigned char cnt=0; void main(){ P2=0x00; P3=0x00; while(1) display(9,10 } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16. 17 18 19 20 21 22 23 24 25 26. 27 28 29 30 31 32 33 34 void delay(unsigned int t. int opt; for(opt=0;opt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!