Question: please write the program in assembly languge Considering the following arrangement of 8 LEDs connected to Port B of a PIC18 microcontroller (see Figure 1).

 please write the program in assembly languge Considering the following arrangementplease write the program in assembly languge

Considering the following arrangement of 8 LEDs connected to Port B of a PIC18 microcontroller (see Figure 1). Write a detailed assembly program in order to create a chase of the eight LEDs described in the Figure 2 (black dot means that the LED in "ON" and white one means that the LED is "OFF"). Assume a 2 MHz oscillator is used and a delay routine of 1 second must be created and introduced before toggling to next state. The chase must be repeated 10 times when the circuit is turned ON (or when the reset button is pressed). Don't forget to comment each code line. RH7 RA RA R RRO Vdd LEDs 4.7K RBO 16 MCLR Push to Reset - PIC 18Fxxx RB1 8 RB2 9 RB3 10 RB4 11 RBS. 12 RBG 13 RB7 15 Vsa

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!