Hi,
According to the RM the time you will have to wait for the FlexCAN module goes out of Low powe mode will be dependant on the bit CAN timing.
LPMACK will be asserted within 180 CAN bits from the low-power mode request by the CPU, and
negated within 2 CAN bits after the low-power mode request removal.
Therefore if you already know the period of the CAN bit you can calculate the time of the 180 bit cycles when going to LPM or 2 when exit. I would increase this time in case a transmission or reception process is in progress.
Best Regards,
Alejandro
Hi,
How about afterwards?
I hurry an answer.
I would like escalation again.
Best regards,
Soichi
Hi Soichi,
The experts are already handling this. Thanks for your patiance.
I will get back to you as soon as possible.
Best Regards,
Alejandro
Hi,
Sorry for the delay.
it should take couple of clocks - asked designers.
Also there will be some propagation time - registers works on IPS_bus clock and FlexCAN on its clock.
Also write into the resister takes some time (request have to pass NIC and AIPS)
Do not know about any limitation for number of pooling.
The soft reset starts just after the write into MCR. The flip-flops which are on the CHI (Controller Host Interface) clock domain are reset just after the write into MCR. The flip-flops which are on the PE (Protocol Engine) clock domain are not reset immediately because of the clock domain interface latency between CHI and PE. So that the soft reset request crosses the clock domain interface from CHI to PE, it takes up to 1 CAN bit (worst case).
SOFTRST bit can be checked immediately since the bit has already been set after the MCR write operation.
SOFTRST bit remains set until the process of soft reset has been finished on both clock domain (PE and CHI).
To finish soft reset it takes (in the worst case) 1 CAN bit + 4 PE clock period + 4 CHI clock period (around 2 nominal CAN bits for sake of simplicity). After resetting the flops on PE side, it takes 4 PE clock period + 4 CHI clock period so that the CHI receives an acknowledge signal and clears the SOFTRST bit.
I hope that helps.
Alejandro
Hi,
Thank you.
When the following field becomes active, please tell the maximum of the time-out.
Field = bit25(SOFTRST)
Field = bit24(FRZACK)
Because this hurries very much, I would like cooperation.
Best regards.
soichi
Hi,
FRZACK will be asserted within 178 CAN bits from the freeze mode request by the CPU, and
negated within 2 CAN bits after the freeze mode request removal (see Section "Protocol Timing").
Regarding the SFTRST, I will have to contact the designers.
Best Regards,
Alejandro
Hi,
Thank you.
I add a question.
Module Configuration Register (CANx_MCR)
Field = bit25(SOFTRST)
Field = bit24(FRZACK)
Field = bit20(LPMACK)
When CAN bus is busy, Does the active time of the above-mentioned bit fluctuate?
Best Regards,
soichi