Question: fundamentals of microcontrollers in embedded systems. please write or show the program code for this problem. This is the PIC18 microcontroller family. The software used
fundamentals of microcontrollers in embedded systems. please write or show the program code for this problem. This is the PIC18 microcontroller family.
The software used is
PIC18 simulator IDE

Data table

2. Write a subroutine that counts the number of positive entries in a data table (terminated by 00). The input to the subroutine is a pointer to the table in FSR1 and the output is a count of the positive entries in WREG. a) Draw a flowchart for the subroutine (and indicate any registers used) b) Write the assembly language for the subroutine and simulate using a sample data table 2. Write a subroutine that counts the number of positive entries in a data table (terminated by 00). The input to the subroutine is a pointer to the table in FSR1 and the output is a count of the positive entries in WREG. a) Draw a flowchart for the subroutine (and indicate any registers used) b) Write the assembly language for the subroutine and simulate using a sample data table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
