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

Legacy microcontrollers Forum Discussions

EuYa_1863186
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hi. I have a problem with uController CY96F315R. I use CAN and pin P3.0 as input for SENT interface. When I set register PIER3 pin 0 as input and there are pulses on this pin - uController hangs up in several time, if i use pin P2.4 for the same purposes I have no any problems.  It is no mention initialize any other periphery or no. I used ONLY PIER3.0 and CAN and only one interrupt (CAN). I tryed to found out where Controler hangs up but it is very different part of program, there is no regularity.

Simple code:

void main(void)
{
DDR02_D22 = 1; // Init Wdt

DDR02_D25 = 1; // Power on
PDR02_P5 = 0;
PIER03_IE0 = 1;
PIER03_IE2 = 1;
while (1)
{
PDR02_P2 = 1; // Feeding Wdt
PDR02_P2 = 0; // Feeding Wdt
}
}

If pulses applied  to P3.0 (about 10 kHz) the watchdog resets uC in abou 2 minutes

0 Likes
2 Replies
Ronak
Moderator
Moderator
Moderator
250 sign-ins 50 replies posted 25 solutions authored

 Hello,

Can you please share your  schematics to the check the connection of CAN and also can you please share waveform to help in finding if there is any issues.

Best Regards,

Ronak

 

0 Likes

waveforms (P3.0)

waveform1.pngwaveform2.png1.png

0 Likes