Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Embedded Microcontroller Practical Exercise 1 Aim To expand on the MPLAB PIC 1 6 F 8 4 Tutorial and practice Assembly programming and Simulation. Student
Embedded Microcontroller Practical Exercise
Aim
To expand on the MPLAB PICF Tutorial and practice Assembly programming and Simulation.
Student Software Required
MPLAB IDE Ver on your PC or on the Remote Lab Server
Screen Capture software such as ScreenHunter
Task
The exercise is to modify the code you were given for MPLAB Tutorial to complete the following task:
Write a to bit of PORTB then wait about seconds before turning off bit and turning on bit
Continue in this way, waiting about seconds after each change and when bit has been turned off.
then turn bit on and repeat this pattern indefinitely.
Hint: Look at using the RLF Rotate left f through Carry command.
Method
Part Program Development on your PC
Run your PC or connect to the Remote Lab via Electromeet in the usual manner.
Locate and run the MPLAB IDE, on your PC or on Remote Lab on the Server then follow the steps provided in the attached help file DBEDBEEMCPracticalHelp The code you are provided with contains all but two instructions to complete the task. The missing instructions are one that uses RLF Rotate Left f Through Carry and one that uses BTFSC Bit Test Skip if Clear
Write the code to carry out the above task then Build the project and test it using the Simulator in the same way as for the Tutorial.
Set up a Watch to observe PORTB to see whether the code is executing correctly.
Once the code is operating to your satisfaction, take a screenshot of your program listing and attach it as SCREENSHOT below. marks
Take a take a screenshot of your Watch Window showing the value of PORTB as and attach it as SCREENSHOT below. marks
Now close down MPLAB and log off the server without saving any changes.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started