Question: Lab assignments: Seven segment decoder implementation with PIC18 microcontroller by using logic instructions (or switch-case statement). Seven-segment displays are widely used for displaying decimal numerals

 Lab assignments: Seven segment decoder implementation with PIC18 microcontroller by using

logic instructions (or switch-case statement). Seven-segment displays are widely used for displaying

Lab assignments: Seven segment decoder implementation with PIC18 microcontroller by using logic instructions (or switch-case statement). Seven-segment displays are widely used for displaying decimal numerals in digital clocks and electronic meters. A decoder is used to convert BCD code into the seven-segment code. A seven-segment display is shown in figure 1 below. Figure 1. Seven-segment display The schematics for the inputs and outputs of the display are shown in figure 2. The inputs and outputs are as follows: Figure 2. Inputs and outputs for the decoder. - Input: BCD codes representing numbers 0,,9 - Output: Segments on/off for a specific BCD code. For example, if the input is decimal 0 , the output is 1 for all segments except g. We want to implement this decoder with a PIC18 microcontroller in assembly language in the simulation mode. One possibility to design the decoder is to program the logic functions of the outputs. The first step is to get the truth table, then simplify the expression of the outputs. Task1) Fill out the truth table for the decoder. Task2) Provide Boolean equation for each output (Please simplify the expression of the outputs.) Task3) Write assembly code to implement each of the functions above (or truth table). For input and output registers, please use two file registers (addresses: 0000 and 0x010). Therefore, for each case of input, what you need to do is setting the file register (address:0x000) to a specific BCD number, i.e., 0 to 9. Through your program, you need to get an output in the file register (address: 0x010). Task4) Test each output independently and check if the results are correct. For each input case, i.e., the value of the file register (address:0x000), you need to show the output of the file register (address: 0x010). Please provide the screenshot of each test case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!