Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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