Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Data table

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions