SENSORED BLDC kit 037 PSOC 4

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

cross mob
IlanMazuz
Level 1
Level 1
5 sign-ins First reply posted First question asked

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
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

1. The VDDIO voltages are exceeding the VDDA voltage. Need to change that in systems tab in CYDWR.

2. UART, ADC,IDAC, LPComp, TCPWM are PSoC4 based components. Corresponding PSoC 5 components should be replaced. 

Best Regards,
Vasanth 

View solution in original post

0 Likes
7 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

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

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

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

Hi,

I am trying the same stuff

Trying to implement the example code on PSOC-5lp.

The following two functions seem to Clear the Interrupt event on the modules.

 Counter_Spd_ClearInterrupt(Counter_Spd_INTR_MASK_CC_MATCH);

LPComp_OC_ClearInterrupt(LPComp_OC_INTR_RISING);

According to the datasheets of PSOC 5LP,  the  Interrupt events can be cleared by reading the status register, by calling the ReadStatusRegiser() function.

Do you successfully implement the example code on PSoC-5lp?

Any further progress?

BR,

Wilsom

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

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
lock attach
Attachments are accessible only for community members.

HI,

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

Attached code.

thank you.

Ilan.

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

1. The VDDIO voltages are exceeding the VDDA voltage. Need to change that in systems tab in CYDWR.

2. UART, ADC,IDAC, LPComp, TCPWM are PSoC4 based components. Corresponding PSoC 5 components should be replaced. 

Best Regards,
Vasanth 

0 Likes