CAN Interrupt is disabled after writing to LPC_ADC0->CR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN Interrupt is disabled after writing to LPC_ADC0->CR

422 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hlsa on Tue Nov 10 03:35:08 MST 2015
I have a suspicious beheviour with the LPC4357JET256:

1. The CAN-Interrupt is enabled by writing to the CAN0 control register.
LPC_C_CAN0->CNTL |= CTRL_IE;
--> The CAN interrupt is enabled as expected.

2. I write to the ADC0 control register:
LPC_ADC0->CR = 0;

3. The CAN-interrupt now is disabled.

Attached find a PDF document which shows the register content.


Any ideas?


Regards,
Holger
Labels (1)
0 Kudos
3 Replies

411 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Wed Nov 11 08:17:30 MST 2015
There a is possibility for confusion here; ISTR that the UM's refer to CAN1 and CAN2
but engineers might refer to CAN 0 and CAN1.

Thus, sometimes, CAN1 might imply CAN 0 in a particular framework.

I know I had that issue early on in the design once.

Cheers, Mike.
0 Kudos

411 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hlsa on Tue Nov 10 07:33:09 MST 2015
Ups, you are right.

I did read the errata sheet but I had in mind from an earlier revision, that only CAN1 is affected. Therefore I did not read this issue in detail. Sorry, my fault.

Thanks,
Holger
0 Kudos

411 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DF9DQ on Tue Nov 10 03:53:04 MST 2015
This is a known issue (see erratum C_CAN.1).
Is has been fixed in revision A silicon, which is shipping now.
0 Kudos