
Single chip horse racing circuit diagram

In this example, the delay subroutine, clr, lcall, and ajmp instructions are mainly used to achieve the effect by lighting p1.0 .....P1.7 in turn. Users can learn the IO port operation of the MCU through the learning of this program.
Reference procedure:
Experiment 1 The simplest 8-way marquee. Connect the P1 port (JP44) of the CPU part to the JP32 of the eight-way indicator part with an 8PIN data cable.
Can see 8 lights flash in turn
Org 0000h ; start
Ajmp loop
Org 0030h ; avoid the 00-30 sensitive address by 0030h
Loop:
Mov p1, #0ffh; turn off all lights
Clr p1.0 ; light lamp p1.0
Lcall delay; delay for a while?
Clr p1.1 ; lighting lamp p1.1
Lcall delay
Clr p1.2 ; lighting lamp p1.2
Lcall delay
Clr p1.3; lighting lamp p1.3
Lcall delay
Clr p1.4 ; lighting lamp p1.4
Lcall delay
Clr p1.5; lighting lamp p1.5
Lcall delay
Clr p1.6 ; lighting lamp p1.6
Lcall delay
Clr p1.7 ; lighting lamp p1.7
Lcall delay
AJMP LOOP; re-run at the beginning of the loop
Delay: mov r5, #20; delay.
D1: mov r6, #40
D2: mov r7, #248
Djnz r7,$
Djnz r6,d2
Djnz r5, d1
Ret
End
The one used is AT89S51, 89S51.
Dongguan Deli Plastic Co.,Ltd is a manufacturer specialized in the research, development ,plastic injection mould and making mass production with well-equipped facilities and strong technical force.
Our products are extensively used in household industry/electronic industry/automobile industry/building industry and other industries.
We have rich experience on one-stop solution, provide various services from new product design,prototype,mold making,mass production,assembly and logistics. The most important advantage is we have our own R&D team to help clients to turn ideas into actual parts. All of these engineers and designers have over 15 years experience in these plastic products fields.
We have a strict quality control system, an excellent management team and also a dedicated sales force, enable us to fulfill our commitment in high quality products and outstanding services.
If you are looking for a trustworthy supplier of customized items, please do not hesitate to contact us. We are always striving to establish a win-win partnership with customers from all over the world and help our partners to stay one step in front of your competitors.
usb mini Fan,usb rechagerable Fan,usb portable Fan
Dongguan Yuhua Electronic Plastic Technology Co.,Ltd , https://www.yuhuaportablefan.com