MCU marquee circuit diagram (including program code)

Single chip microcomputer STM32L151CCU6
1206RGB (single)
Manufacturers produce direct sales LED lamp bead patch lighting products 0805 white light super bright indicator light dedicated
0603 white 0603 white light LED lamp bead patch led led lamp beads 0603 patch
Single chip horse racing circuit diagram

Single chip horse racing circuit diagram

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.

200W Solar Panel

solar panel

A solar cell panel, solar electric panel, photo-voltaic (PV) module, PV panel or Solar Panel is an assembly of photovoltaic solar cells mounted in a (usually rectangular) frame, and a neatly organised collection of PV panels is called a photovoltaic system or solar array. Solar panels capture sunlight as a source of radiant energy, which is converted into electric energy in the form of direct current (DC) electricity.

200W Solar Panel,Solar Panel Portable Charger,Folding Solar Portable Power Station With Solar Panel,Folding Solar Panel

suzhou whaylan new energy technology co., ltd , https://www.whaylan.com