How to configure LIN Rx pin to wakeup MCU from deep sleep mode

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

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

Hello,

I'm using PSoC 4200DS MCU(part #:CY8C4245FNI-DS402) and need use LIN to wakeup MCU from deep sleep mode. One approach I researched from this forum is to use LIN Rx pin to wakeup. However, in the generated LIN slave code by using LIN Slave component, below macro is defined to 1, hence all LIN Rx wakeup related code are removed. And since LIN Rx is already locked as LIN component's Rx pin, it cannot be assigned to general GPIO, hence I'm not able to configure same Rx pin as GPIO wakeup source separately in PSoC Creator 4.4.

Could you let me know how to enable UART Rx wakeup in LIN component? And how to configure Rx pin to wakeup MCU from deep sleep mode? Thanks a lot.

//LINS_SCB.h

#define LINS_SCB_REMOVE_UART_RX_WAKEUP_IRQ (1u)

Best Regards,

Terry

0 Likes
1 Solution
Ashish
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

 Hi, 

Kindly refer point 2.5 in this PSoC4-LIN KBA . It explains how to wake up the PSoC-4 device from Deep Sleep using LIN-Slave . 

https://community.infineon.com/t5/Knowledge-Base-Articles/Local-Interconnect-Network-LIN-Slave-Compo...

Regards,

Ashish

View solution in original post

2 Replies
Ashish
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

 Hi, 

Kindly refer point 2.5 in this PSoC4-LIN KBA . It explains how to wake up the PSoC-4 device from Deep Sleep using LIN-Slave . 

https://community.infineon.com/t5/Knowledge-Base-Articles/Local-Interconnect-Network-LIN-Slave-Compo...

Regards,

Ashish

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

Hi @Ashish,

Nice! Will test it out. Thanks a lot for sharing this.

0 Likes