Question: Given PIC 16F887 microcontroller circuit, as shown in the figure below, if the LED (connected to (PORTC,2)) turns on when the switch (SW) (connected to

 Given PIC 16F887 microcontroller circuit, as shown in the figure below,

Given PIC 16F887 microcontroller circuit, as shown in the figure below, if the LED (connected to (PORTC,2)) turns on when the switch (SW) (connected to (PORTB,0)) is pressed, and turns off when the switch (SW) is depressed i. Explain how to configure ports B and C registers for the circuit shown ii. Write the assembly instructions (opcode + operand) for setting the port:s ii. Explain why the switch (SW) can be directly connected from ground to PORTB pin without the need of additional external circuit. RESET GND 2x20-30pl GND 330R GND

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!