4148 views|0 replies

1458

Posts

1

Resources
The OP
 

CH554 development board realizes LED flashing effect [Copy link]

After mastering the download function of the CH554 development board, you can carry out preliminary program design and verification. Since there are 2 LEDs on the development board for programming experiments, you can start with the flashing effect of the LED. From the schematic diagram of the CH554 development board, we can see that the LED circuit is as follows.
To control the flashing of LED, first set P1.6 and P1.7 to output mode, and then realize the flashing effect through delay function and negation operation. The program and compilation effect are shown in the figure.
After downloading and verification, the effect meets the expected requirements. Later, the I/O port can be used in conjunction with the driver chip to control the forward and reverse rotation of the stepper motor.

This post is from MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list