PSoC5LP: How to achieve flexible data rate in CAN module

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

cross mob
Anonymous
Not applicable

Hello Team,

           For one of our project, we are using Cy8ckit-001 EVK Board and CY8C5868-LP035 module. We are using PSoC creator for generating API and developing firmware. Does CY8C5868-LP035 support flexible baud rate?

           We want to transfer large data from PSoC to another CAN device. While transferring large data we'll set baud rate as 1Mbps and while normal communication we want to set baud rate as 250kbps. Now, How can I change baud rate while PSoC is operating? I don't find any API for doing that.

Thanks and Regards,

Abhishek Naik.

0 Likes
4 Replies
Anonymous
Not applicable

Hello Team,

      I am waiting for your response. Please help me out with my query.

Thanks and Regards,

Abhishek Naik.

0 Likes
Anonymous
Not applicable

Hello Team,

      I am waiting for your response. Please help me out with my query. We have to decide whether to go with MCU or no.

Thanks and Regards,

Abhishek Naik.

0 Likes
Anonymous
Not applicable

Hello Team,

      I am waiting for your response. Please help me out with my query. We have to decide whether to go with MCU or no.

Thanks and Regards,

Abhishek Naik.

0 Likes
Anonymous
Not applicable

Hi,

For a 24MHz bus speed,

1-M baud rate could be achieved with

BRP-1, TQ-12, TSEG1-7, TSEG2-4, SJW-4.

250Kbps could be achieved with

BRP-7, TQ-12, TSEG1-7, TSEG2-4, SJW-4.

Further to our rescue there is API:

CAN_SetPreScaler()

Which could be used to change BRP from 1 to 7 or vice-versa.

Let me know if this is usefull.

BRP1-T1-7 T2-4 SJW-4 1MHz.PNG

BRP7-T1-7 T2-4 SJW-4 250MHz.PNG

Thanks.

0 Likes