In the program, two counter variables of one bit COUNT1 and ten COUNT10 are used. In addition, after each LED is lit 5 times, the ones are automatically incremented by 1, and then it is judged whether the ones are 10 or not. If not, the ones and ten LEDs are lit, and if so, whether the ten is 9 or not, If yes, all are cleared to 0. If not, the ten digits are incremented by one, and the ones digits are cleared to zero. Then, the judgment is continued and the loop is continued. The flow of this example program is shown in the figure. The list of procedures is as follows. (1) C language program. 1 contains the necessary header files and global variables needed to define the program. 5 shows the subroutine. 6 interrupt service subroutine, operation of port C through the interrupt of timer 1. 7 open interrupt subroutine. 8 Read the first frame subroutine. 9 main program. (2) The assembler is as follows. 1 main program. Complete variable and port definitions, program initialization, table lookup and loop display. When displaying, be sure to note that one digit and ten digits cannot be lit at the same time. There must be a delay process after lighting one digit or ten digits display, otherwise the displayed data will not be visible. 2 lookup table program TABLE1. The single digit display uses a common anode LED. 3 check the table program TABLE10 begins. Typical application and experience sharing LED applications are very broad, including communications, consumer electronics, automotive, lighting, signal lights, etc., can be broadly divided into backlight, lighting, electronic equipment, display C, screen car and other five areas. LEDs have been widely used in a variety of lighting equipment, such as battery-powered flashlights, micro-voiced lights, safety lights, indoor/outdoor roads and stairwells, and buildings and marked continuous lights, with packages and devices suitable for instrumentation. Boards, air conditioners, radios and electronic switches and automotive interior lighting, can also be used in general commercial retail systems to inform customers to collect money / find money, as well as textile machinery controllers. Here are some of the experiences in the application; · Display time, each line is less than 15ms; · When there are more words displayed, be sure to pay attention to the code efficiency of the subroutine. Because the transmission is a loop, the processing in the loop is better and better.
TPS Flat Cable
AS/NZS 5000.2 approved eletric cable: TPS,building cable export to Australia, New Zealand, Fiji, Papua New Guinea and other Oceania market for more than 10 years, quality assured.
- Standard applied: AS/NZS 5000.2
- U0/U: 450/750V
- Certification: SAA
- fire resistance or Low smoking and Halogen free or other property can be available
Tps Flat Cable,Tps Flat Wires,Tps Flat Electrical Cable,Rubber Electrical Cable Shenzhen Bendakang Cables Holding Co., Ltd , https://www.bdkcables.com