Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

a. How are members selected to join the team?

Answered: 1 week ago