Check Order Status  |   FAQ  |   Shopping Cart  |  Login  |  Register As Member   | 
 
Home  |   Our Product  |   Training  |   Forum  |   Project DIY  |   About Us  |   Contact Us  
  PR 2 - 7-Segment Decoder
More about Project DIY...
Buy Project Set 2
7-Segment Decoder

Just 3 simple steps
1. Get the components on hand and plug them up
2. Install MPLAB in order to compile your own source code.

3. Get ready a programmer and download your program into a PIC.


If you haven't started with the PR1 (LED Blinking), we suggest you get yourself a set of PR1 and hands on with it before you go further into this project…
As usual, please plug the components according to diagram as shown in Figure 1 (schematic) and Figure 2 (Breadboard):


Figure 1



Figure 2

This time, you may not see result on 7-segment because the PR2’s program have not been loaded to your PIC. Thus you will have to download the PR2 sample code and compile it into hex file by using MPLAB, and lastly download the hex file into your PIC. If you have forgotten how to compile a program code into hex file or the steps of burn a PIC, then please go through the 2nd and the 3rd step of Project DIY again in PR1.

                Please click here to review the step 2.


                Please click here to review the step 3.


After loading your PIC with PR2’s program, your circuit is expected to run and the 7-segment should perform accordingly. However, please do not easily being satisfied with this achievement! In order to change the display on the 7-segment, you must change the output of RB0-RB3 according to the table below:

INPUT OUTPUT
RB3 RB2 RB1 RB0 Display
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
0 1 1 1 7
1 0 0 0 8
1 0 0 1 9

Actually we are using an IC (7-segment decoder) to control the 7-segment. You can read through its datasheet (CD74HC4511) for further understanding. For more detail and further discussion, you can log in to our forum and ask your question there.
Buy Project Set 2

 
 


Last Update: 01 August 2008
Cytron Technologies Sdn Bhd [755563-V]