The button is on the 3rd bit of PORTC. When the button is pressed, turn on all leds on PORTD. ORG OOH TRISD EQU OF95H PORTD EQU OF83H TRISC EQU OF94H PORTC EQU OF82H CLRF PORTD CLRF TRISD MOVLW OFFH MOVWF PORTC TEST1 BTFSS PORTC, 3 GOTO TEST1 MOVLW OFF MOVWF PORTD GOTO TEST1 END

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter4: Symbols
Section: Chapter Questions
Problem 3SQ: What do the following abbreviations stand for? a. SPST b. SPDT c. DPST d. DPDT e. NO f. NC
icon
Related questions
icon
Concept explainers
Question

Microcontroller (PIC16F877A) :

I need explanation for each line (detail as possible)

Thank you.

 

The button is on the 3rd bit of PORTC. When the button is pressed, turn on all leds on
PORTD.
ORG 00H
TRISD EQU OF95H
PORTD EQU OF83H
TRISC EQU OF94H
PORTC EQU OF82H
CLRF PORTD
CLRF TRISD
MOVLW OFFH
MOVWF PORTC
TEST1
BTFSS PORTC, 3
GOTO TEST1
MOVLW OFF
MOVWF PORTD
GOTO TEST1
END
Transcribed Image Text:The button is on the 3rd bit of PORTC. When the button is pressed, turn on all leds on PORTD. ORG 00H TRISD EQU OF95H PORTD EQU OF83H TRISC EQU OF94H PORTC EQU OF82H CLRF PORTD CLRF TRISD MOVLW OFFH MOVWF PORTC TEST1 BTFSS PORTC, 3 GOTO TEST1 MOVLW OFF MOVWF PORTD GOTO TEST1 END
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Power MOSFET
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning