cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

IlanMazuz
New Contributor

Hi,

I need to convert the code example that you can find in PSOC 4 kit 037 to PSOC 5LP PN:CY8C5888LTI-LP097.

The code example his name is sensor BLDC motor PSOC 4. 

link:CY8CKIT-037 PSoC 4 Motor Control Evaluation Kit (cypress.com)

PLS convert it and explain how you do it.

How can i change the factors of measurements ADC?

PLS explain the functionality of the design.

Thank you.

BR,

Ilan

0 Likes
5 Replies
Vasanth
Moderator
Moderator

Hi lIan, 

I doubt whether there is a ready ported code example available. Most of the peripherals needed are supported in the PSoC5 device also. So the modification needed might be component replacement and code modifications to make it compatible with new components. Let us know if you face any issues while porting.

Best Regards,
Vasanth 

0 Likes
IlanMazuz
New Contributor

Hi Vasanth,

I replace the components TCPWM,ADC SAR,LPComp_OC and Counter_Spd.

I get the erros as following:

1.C99 error

 Counter_Spd_ClearInterrupt(Counter_Spd_INTR_MASK_CC_MATCH);

LPComp_OC_ClearInterrupt(LPComp_OC_INTR_RISING);

Can you PLS tell me how to fix the errors and what is the configuration to the components:

TCPWM,ADC SAR,LPComp_OC and Counter_Spd.

BR,

Ilan Mazuz

 

 

0 Likes
IlanMazuz
New Contributor

Hi Vasanth,

I replace the components TCPWM,ADC SAR,LPComp_OC and Counter_Spd.

I get the erros as following:

1.C99 error

 Counter_Spd_ClearInterrupt(Counter_Spd_INTR_MASK_CC_MATCH);

LPComp_OC_ClearInterrupt(LPComp_OC_INTR_RISING);

 

Can you PLS tell me how to fix the errors and what is the configuration to the new components :

TCPWM,ADC SAR,LPComp_OC and Counter_Spd.

BR,

Ilan Mazuz

0 Likes
Vasanth
Moderator
Moderator

Hi Ilan,

Make sure that the APIs are compatible across components. You can right click on the component and go to datasheet. There in API reference, you can make sure that the right APIs are being used. Also make sure that you are using the right APIs and functions throughout the code while porting.

Best Regards,
Vasanth

0 Likes
IlanMazuz
New Contributor

HI,

PLS try to convert this code to  PSOC 5LP PN:CY8C5888LTI-LP097.

Attached code.

thank you.

Ilan.

0 Likes