1680 views|3 replies

19

Posts

0

Resources
The OP
 

[RVB2601 Creative Application Development] 2 Familiar with basic peripherals GPIO [Copy link]

 This post was last edited by lux168 on 2022-4-18 17:01

I have been familiar with CH2601 and CDK system, but sometimes I don't study it continuously because of work, so I do it sporadically.

I feel that I am very slow at this, so I will improve it later. GPIO operation is the basic operation of any MCU, and it is easy to get started.

Start with this.

1: First, find the GPIO program in the CDK home interface, as shown in the figure

2: Create a new project and its directory, as shown in the figure

3: After clicking OK, CDK will automatically download the relevant files. This may take several minutes, as shown in the figure

4: Now the project is built and you can make relevant modifications and compile it, as shown in the figure

5: The three-color LED of the development board is connected to the GPIO controller of the CH2601 main chip through PIN pins PA7, PA25, and PA4.

By operating the GPIO PIN of PA7, PA25 and PA4, you can achieve the flashing of different colors of the three-color LED, which is equivalent to the effect of a marquee.

The two functions led_pinmux_init() and led_refresh() are mainly used to control GPIO. The demo_task is mainly called in the MAIN function.

To turn the light on and off, such as the blue light in the lower left picture .

That’s all for today. We’ll need to speed up our familiarity later.

Latest reply

come on   Details Published on 2022-4-19 20:58
 
 

2w

Posts

74

Resources
2
 

come on:)

Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
Personal signature

加油!在电子行业默默贡献自己的力量!:)

 
 
 

7462

Posts

2

Resources
3
 

Come on, come on

Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

539

Posts

3

Resources
4
 

come on

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
About the Japanese

( 1) Four surgeons sat around and talked about what kind of people they liked to operate on. The first docto ...

Experiment 9. Digital display experiment

The digital display using a single chip microcomputer should have a display device; the most widely used is the 7-segmen ...

Summary of the best posts on embedded systems (2019)

At the beginning of the new year, Xiaoguan compiled some good posts in the second half of 2019 for new netizens to check ...

Does anyone know how to open a .brd file with AD?

Does anyone know how to open a .brd file with AD? I have tried the method on the Internet but still can't find the solut ...

Digital Circuits and Digital Systems: Experiments and Course Design Training Course

"Digital Circuit and Digital System Experiment and Course Design Training Course" is written based on the basic teaching ...

OpenHarmony 3.0 porting to Raspberry Pi 4B - learning record

This post was last edited by hazhuzhu on 2021-12-29 00:13 Preface The following is a detailed process record of learnin ...

[Shanghai Hangxin ACM32F070 development board + touch function evaluation board] PWM signal generator implementation and accuracy test

a4fd574a55eb0b7a551913d905b2aae2 Preface This time, based on the timer's PWM output and segment code display, the funct ...

Is it possible to perform socket communication without IP and port number?

When using socket communication, whether it is internal communication within the local machine or communication betwee ...

What kind of logic analyzer do you all use and what do you think of it?

What kind of logic analyzer do you all use and what do you think of it? I want to buy a logic analyzer. I want to hear e ...

Rust in Action - Chapter 1: Reading Rust Installation and First Program Experience

Rust in Action - Chapter 1: Reading Rust Installation and First Program Experience Book Overview Cover 799659 Read ...

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