For the mspfr6989 write program #2 1(b) Write a program that will make LED1 blink 5...

80.2K

Verified Solution

Question

Electrical Engineering

For the mspfr6989 write program #2

1(b) Write a program that will make LED1 blink 5 times when S1is pressed, and then stop.

Program #2 – Using both S1 and S2 1 Write aprogram like 1(b) above, but the LED1 will blink until S2 ispressed. 2 Write a program that simulates a motor coming up tospeed. When S1 is pressed, LED1 blinks at 50% duty cycle for 10cycles (indicating a motor coming up to speed). After that time,LED2 comes on (indicating the motor is at speed), and can be turnedoff by pressing S2. 3 Create a flexible program for 2(b) that willreverse the operation of the LEDs if S2 is pressed first (LED2shows ramp-up, and LED1 shows motor at full speed). Must usefunctions to control all timing, LED access, etc… Main programshould just have loops and function calls.

Answer & Explanation Solved by verified expert
4.0 Ratings (596 Votes)
blinkledasm list P 16F877A include P16F877Ainc STATUS EQU 0x03 PORTB EQU 0x06 TRISB EQU 0x86 PORTD EQU 0x08 TRISD EQU 0x88 CBLOCK 0x20 Kount120us Delay count number of instr cycles for Delay Kount100us Kount1ms Kount10ms Kount1s Kount10s Kount1m ENDC org 0x0000 line 1 goto START line 2 0000 org 0x05 START banksel TRISD movlw 0x00    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