SJA1000T

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

SJA1000T

551 Views
San_96
Contributor I

I am using MPC5777C, interfacing SJA1000 EBI based CAN controller. It has Data lines and ALE. When The MCU has ALE/GPIO299, I configure this as ALE mode. Now, when I write from EBI, I give the data as

Data_Array[20001234] = data ;

Here, 2000 Based on chip select and 1234 is the address of external device register, data is the data to write in 1234 register. Both data and address will be at the slave device at a time.

Now, SJA1000 has only 8 data lines. So, I shall give address and data from MCU data lines only. That means, address 1234 is not used here. Because address of SJA1000 registers shall be given from data lines of EBI only, by using EBI-ALE. Now I want to connect MCU ALE pin to SJA1000 ALE pin. But in MCU ref manual, I didn't find any register or read/write cycles using EBI ALE.

1. So, I want to ask that how this ALE pin is useful in my above case?

 

0 Kudos
Reply
2 Replies

508 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

If you have properly configured EBI module, principle would be as follows:

You can write this way for instance
*(vuint16_t*)(0x20001234) = 0xBABA;

where 1234 would be an address (although it seems SJA1000 has only 32 registers i.e. addresses) and 0xBABA.

Note that EBI uses 16-bit or 32-bit data-bus.

0 Kudos
Reply

510 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

HI, why you are using this external device when you have FlexCAN module available on the chip? Could you show me scheme of connection?

0 Kudos
Reply