Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer

iabdelsalam
Level 1
5 sign-ins First reply posted First question asked
Level 1

Hi I'm I want to read the analogue signal using the CMOP and use the CM4 core to the control code, to save the ADC conversion time in my work. is there a simple way to transfer the integer value from core to core?
please consider that I'm a power engineer and my programming skills are not soo good
thanks
ibraim

0 Likes
1 Solution
AlenAn14
Moderator
Moderator 100 solutions authored 250 replies posted 250 sign-ins
Moderator

Hi @iabdelsalam ,

I have attached here a sample program (Developed for 062-BLE-Pioneer Kit) where I have demonstrated using the CM0+ CPU to initialize the ADC and start data acquisition from the same. This data is then sent to the CM4 CPU using IPC Pipes and the CM4 displays the same in the UART terminal.

So data acquisition is done by CM0+ and the processing is done by CM4.

Please go through the same and let me know if the same works for you.

Warm Regards
Alen

View solution in original post

4 Replies
AlenAn14
Moderator
Moderator 100 solutions authored 250 replies posted 250 sign-ins
Moderator

Hi @iabdelsalam ,

You can have a look at the code examples "Dual Core Shared Memory" or "IPC Pipes" to understand how to share data from one core to another. 

AlenAn14_0-1643114378361.png

Hope this helps.
Regards
Alen

 

0 Likes
iabdelsalam
Level 1
5 sign-ins First reply posted First question asked
Level 1

unfortunately, it didn't work out, this method was too hard for me.

 

0 Likes
AlenAn14
Moderator
Moderator 100 solutions authored 250 replies posted 250 sign-ins
Moderator

Hi @iabdelsalam ,

I have attached here a sample program (Developed for 062-BLE-Pioneer Kit) where I have demonstrated using the CM0+ CPU to initialize the ADC and start data acquisition from the same. This data is then sent to the CM4 CPU using IPC Pipes and the CM4 displays the same in the UART terminal.

So data acquisition is done by CM0+ and the processing is done by CM4.

Please go through the same and let me know if the same works for you.

Warm Regards
Alen

iabdelsalam
Level 1
5 sign-ins First reply posted First question asked
Level 1

I really appreciate your help 

Thanks a lot 

0 Likes