configuring CCU63 for capturing edges on IO pin P2.0

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

cross mob
Not applicable
Hi all,
I am not able to capture the rising or falling edge input at P2.0 configured as CCU63 input pin. Please help me in configuration.

Thanks,
Vikram
0 Likes
3 Replies
Not applicable
P2.0 is used as CAN 0 Rx pin. In the Low power mode the CAN transciever is put off and need to wake up on CAN message. So I tried with CCU63 configuration on P2.0 for capturing the rising/falling edges. In low power mode the system clock is set 500K Hz approximately. How to wake up from low power mode on Pin 2.0 input ?
Hoping for reply.

Thanks
0 Likes
Not applicable
Hi,

How did you configure? Did you use DAVE2 for the configuration?
0 Likes
Not applicable
No I didnt use DAVE2 tool.

Here is the code I did for configuring. Also Please help me how can to wakeup from LPM on Pin P2.0.

{
volatile uint16 Work;

// enable module
CCU63_KSCFG.U = 3;

// read back SFR to avoid pipeline effects
Work = CCU63_KSCFG.U;

CCU63_TCTR0.U = 0x00;//timer

CCU63_CC60SR.U=0;//Clear the shadow register

CCU63_T12MSEL.B.MSEL60=4;//Rising

CCU63_T12PR.U = 115;//Load the Period

CCU63_PISELL.U=0x01;//P2.0

CCU63_ISR.U=0x03;//clear Interrupt

CCU63_TCTR4.B.T12RES=1;//Reset the timer

CCU63_TCTR4.B.T12STD=1;//Clear the Shadow request

CCU63_TCTR4.B.T12STR=1;//Enable Shadow transfer reqest

CCU63_TCTR4.B.T12RS=1;//Run the timer T12

CCU63_IEN.U=3;//rising

CCU63_0IC.U = 0x78;//En and Prio

CCU63_ISR.U=0x03;//clear Interrupt*/
}
0 Likes