Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need calculations as well Using a protoboard, connect an LED to pin RB0 on your PIC-P40 board. Be sure to use a current limiting resistor

image text in transcribed

need calculations as well

Using a protoboard, connect an LED to pin RB0 on your PIC-P40 board. Be sure to use a current limiting resistor (470) in series with the LED (see attached PIC-P40 schematic, for proper wiring of the LED). Write a C program so that when the on-board button (see attached schematics for details) is not being pressed, the on-board LED (RAO) flashes on for 0.5 seconds and off for 0.5 seconds, 3 times, followed by a 2 second off interval, then repeats the cycle. When the on-board button is pressed and held, the LED connected to RBO flashes on and off for 1.0 second, 5 times, followed by a 2 second off interval, then repeats the cycle. Both LED's should be off on program start-up. Use the Timer modules (Timer0 and/or Timer 1) to create the delays. Be sure to use the MPLAB simulator to verify the proper operation of the program. Once you have fully debugged the program, write the code to the PIC-P40 and demonstrate its operation to the instructor by uploading a video to YouTube (see note below)

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

=+and reduction in force, and intellectual property.

Answered: 1 week ago