Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need use the pic32 led1234 to show my student ID. Thank you very much. Assume a student ID number consists of 10 digits in

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

I need use the pic32 led1234 to show my student ID. Thank you very much.

Assume a student ID number consists of 10 digits in the format as follows # define SID-SIZE 10 // length of SID #define SID 1234567890 // actual digits of SID You are asked to display your SID using the LED lights on the PIC32 board Specifically, once the program is run, Each digit is displayed using LED4-1 on the board using binary-coded-decimal (BCD) Digit LED4 Off Off Off Off Off Off Off Off On On LED3 Off Off Off Off On On On On Off Off LED2 Off Off On On Off Off LED1 Off On off On off On off On off On On Off Off Starting from the most significant digit, each digit is displayed for a short time delay # define SHORT-DELAY 500; // to be adjusted Followed by a pause with all LEDs of for the same time delay After all the digits are displayed in turn, there is a pause for a long time delay # define LONG-DELAY 800; // to be adjusted Preparation Create a new project and add the two header files and one source file associated with the board to the project as usual You may use the software delay function as developed in lab 2. For that purpose, create a header file delay.h with the constant definition and the function prototype delay.h Assume a student ID number consists of 10 digits in the format as follows # define SID-SIZE 10 // length of SID #define SID 1234567890 // actual digits of SID You are asked to display your SID using the LED lights on the PIC32 board Specifically, once the program is run, Each digit is displayed using LED4-1 on the board using binary-coded-decimal (BCD) Digit LED4 Off Off Off Off Off Off Off Off On On LED3 Off Off Off Off On On On On Off Off LED2 Off Off On On Off Off LED1 Off On off On off On off On off On On Off Off Starting from the most significant digit, each digit is displayed for a short time delay # define SHORT-DELAY 500; // to be adjusted Followed by a pause with all LEDs of for the same time delay After all the digits are displayed in turn, there is a pause for a long time delay # define LONG-DELAY 800; // to be adjusted Preparation Create a new project and add the two header files and one source file associated with the board to the project as usual You may use the software delay function as developed in lab 2. For that purpose, create a header file delay.h with the constant definition and the function prototype delay.h

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_2

Step: 3

blur-text-image_3

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

Students also viewed these Databases questions