hi am trying to get the second CAN module in the 2368 working with no
luck. Have managed to get the first CAN module running ok though.
Is anyone using the second CAN module, particularly on port pins 2.7 & 2.8
I am currently enabling the peripheral in PCONP, setting the correct
bits in PINSEL4, clearing all the bits in PINSEL10 so the TRACE pins
are disabled and configuring both CAN modules in the same way. I cant
find any other references to the CAN module, so I think I have set all
the relevant bits.
The acceptance filter is in bypass mode.
Before trying to send a message I wait for the status bit for the
transmit buffer to become unlocked and then setup the data bytes and
kick of the transmit.
When using the second CAN module and with nothing connected to the CAN
bus to acknowledge messages I would expect the transmit function to
send one message and then wait forever. This is what happens for the
first CAN module, but not for the CAN second module. I can clearly see
CAN from the first CAN module but not the second.
Perhaps I will mod my PCB and try swapping the second CAN module over
to P0.4 & P0.5 and see if it works then.
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
P2.7~8 for CAN2 are shared with ETM. Can you check the
setting of PINSEL10 register?
Tom
--- In l...@yahoogroups.com, "ben_fnr"
wrote:
>
> hi am trying to get the second CAN module in the 2368 working with no
> luck. Have managed to get the first CAN module running ok though.
>
> Is anyone using the second CAN module, particularly on port pins 2.7
& 2.8
>
> I am currently enabling the peripheral in PCONP, setting the correct
> bits in PINSEL4, clearing all the bits in PINSEL10 so the TRACE pins
> are disabled and configuring both CAN modules in the same way. I cant
> find any other references to the CAN module, so I think I have set all
> the relevant bits.
>
> The acceptance filter is in bypass mode.
>
> Before trying to send a message I wait for the status bit for the
> transmit buffer to become unlocked and then setup the data bytes and
> kick of the transmit.
>
> When using the second CAN module and with nothing connected to the CAN
> bus to acknowledge messages I would expect the transmit function to
> send one message and then wait forever. This is what happens for the
> first CAN module, but not for the CAN second module. I can clearly see
> CAN from the first CAN module but not the second.
>
> Perhaps I will mod my PCB and try swapping the second CAN module over
> to P0.4 & P0.5 and see if it works then.
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )