User`s manual
The segment A, B, C, D, E, F and G are driven by PH0, PH1, PH2, PH3, PH4, PH5 and PH6,
respectively. The hex value of the segment code for common cathode LED display is shown in
the following table:
Number DP G F E D C B A Hex Value
1 0 0 0 0 0 1 1 0 $06
2 0 1 0 1 1 0 1 1 $5B
3 0 1 0 0 1 1 1 1 $4F
4 0 1 1 0 0 1 1 0 $66
To flash the number 1234 on the 7-segment display, the following steps should be taken:
1. Output $06 to port H (ldaa #6, coma, staa pth) and the number 1 will be shown on the
7-segment.
2. Delay 250ms.
3. Output $5B to port H (ldaa #$5B, coma, staa pth) and the number 2 will be shown on
the 7-segment.
4. Delay 250ms.
5. Output $4F to port H (ldaa #$4F, coma, staa pth) and the number 3 will be shown on
the 7-segment.
6. Delay 250ms.
7. Output $66 to port H (ldaa #$66, coma, staa pth) and the number 4 will be shown on
the 7-segment.
8. Delay 250ms.
9. Go back to step 1.
4.4 Trimmer pot
The VR1 is connected to the AN07 input of ADC.
4.5 Speaker
The speaker is a 5V audio transducer and it can be driven by PT5, Output Comparator 5, or
PP7, PWM 7. The jumper on J10 is preset for the PT5 at factory and all sample programs will
drive the speaker via PT5.
After reset, the bootloader or the serial monitor will generate a chirp via the speaker. If the
jumper is not placed for the PT5, there will be no chirp.
4.6 Dual UARTs
The SCI0 is used by D-Bug12 monitor or serial monitor for communicating with PC via USB
interface. The SCI1 can be used by user’s application programs.
4.7 Can port
The CAN interface IC (MCP2551) is not installed. To make CAN port work, user has to install
the U5, shorting the J26 and install a terminal resistor (120 ohm) at the last node.
27