2886 views|4 replies

14

Posts

0

Resources
The OP
 

Renesas CPK-RA6M4 Development Board Review ----ADC [Copy link]

1. This evaluation is about the ADC module of RA6M4

Although the project was built using RTT's Scons before, RTT was never used to create threads, and the modules were always evaluated using the bare metal method.

This review will create a thread dedicated to ADC conversion.

2. Use FSP to create an ADC module and generate code.

Configure ADC module 0, 12-bit, right-justified, single conversion mode.

Enable 6 acquisition channels

Configure the software to trigger conversion. More other conversion modes require the cooperation of some other modules.

Configure transition functions, interrupt priorities, etc.

Configure the port:

There is a potentiometer on the evaluation board, which is connected to the MCU by default. You can rotate the potentiometer to measure different voltage values.

ADC conversion thread code

ADC interrupt callback function code

Actual running test results:

The potentiometer data printed by the serial port is collected normally, and the CAN self-transmission and self-reception of another thread are also running normally.

Code to create a thread using RTT:

The above is the content of this test. You can continue to discuss more complex ADC applications on RA6M4. Thank you.

The next test will use scons to open the RTT built-in driver module and test it on CPK-RA6M4.

This post is from Renesas Electronics MCUs

Latest reply

nmg
No code is given this time? The article structure is recommended to follow the instructions they gave. Submit a review article on the forum for the functional module you received. The article must include: ● Hardware introduction of the functional module (*) ● Instructions for use of the functional module (*) ● Peripheral performance index test ● Completed demonstration of the module function. The video is recommended to be posted on Bilibili (*) (Tips: Videos of function demonstrations can be uploaded to Bilibili, and video links can be placed in the review article) ● Compilable and downloadable code, with gitee or github links (*) ● Experience (*)   Details Published on 2022-5-23 15:34

14

Posts

0

Resources
From 5
 

The attached file is an executable program.

ra6m4-cpk-test.zip

9.67 MB, downloads: 3

This post is from Renesas Electronics MCUs
 
 

6547

Posts

0

Resources
2
 

Learned about the ADC module of RA6M4

This post is from Renesas Electronics MCUs
 
 
 

5213

Posts

239

Resources
3
 

No code is given this time? The article structure is recommended to follow the instructions they gave.

Submit a review article on the forum for the functional module you received. The article must include:
● Hardware introduction of the functional module (*)
● Instructions for use of the functional module (*)
● Peripheral performance index test
● Completed demonstration of the module function. The video is recommended to be posted on Bilibili (*)

(Tips: Videos of function demonstrations can be uploaded to Bilibili, and video links can be placed in the review article)
● Compilable and downloadable code, with gitee or github links (*)
● Experience (*)

This post is from Renesas Electronics MCUs
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

I forgot to upload the compilable code, I will update the post later.  Details Published on 2022-5-25 21:54
 
 
 

14

Posts

0

Resources
4
 
nmg Published on 2022-5-23 15:34 No code was given this time? The article structure is recommended to follow the instructions they gave. For the function modules you have received, please submit them in the forum...

I forgot to upload the compilable code, I will update the post later.

This post is from Renesas Electronics MCUs
 
 
 

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