How would I code the following in assembly language? Use the Keil programming environment to code...

50.1K

Verified Solution

Question

Electrical Engineering

How would I code the following in assembly language?

Use the Keil programming environment to code the C8051F330SiLabs 8051 micro controller. All the documentation is available onefundi. The program shall be done in assembler and you shall usethe DJNZ instruction to generate a delay time to flash the LED. TheLED shall flash in the following sequence:

1. On for 50mS,

2. Off for 400mS,

3. On for 50mS,

4. Off for 1.5S,

5. Repeat the sequence from step 1.

Answer & Explanation Solved by verified expert
4.3 Ratings (775 Votes)
Answer Assuming LED is connected at port1 pin zero Write 10111100 0xBC at SFR address 0xE3 to set 72 kHz with divider 8 ie 9 kHz frequency T 19 ms For 50 ms delay count 509 450 For 400 ms delay count 4009 3600 and for 12 s count 12009 10800 In 8051 MC we have 8bit GPR so max count can be 256 only ie 0 to    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students