ADA4558 Initilization

I have a problem with initialization of the ADA4558. (I don't know the NAD and in order to assign a new NAD, i need the supplier ID and Function ID which are stored in the EEPROM and in order to access the EEPROM, i need the NAD). Could you please provide me with frame example of the initilization. Also if you have an example code in c or cpp would be helpful (if available). Thanks in advance. I am using now for testing arduino leonardo with a lin tranciever MCP2004A to communicate with ADA4558.



@
[edited by: Omar Morsy at 8:32 PM (GMT 0) on 30 Jun 2020]
  • 0
    •  Analog Employees 
    on Jul 8, 2020 8:40 AM 4 months ago

    Please try NAD value of 0x01.

    Read the EEPROM values using the user defined diagnostic frame (UUD). This frame format is listed in table 78 of the ADA4558 hardware reference manual with PCI = 0x02 and SID = 0x05. Below is an example LIN frame request and response to read EEPROM address 0x0D. 

    Master UUD LIN frame request to read ADA4558 EEPROM address 0x0D

    PID

    NAD

    PCI

    SID

    Data1

    Data2

    Data3

    Dat4

    Data5

    CRC

    x3C

    x81

    x02

    x05

    x0D

    xFF

    xFF

    xFF

    xFF

    x6A

    ADA4558 response

     

    x81

    x06

    x45

    x0D

    xA0

    x00

    x00

    x01

    x84

    Note:

    • The UUD frame use a NAD value of device NAD +0x80. So above UUD frame example shows NAD value of 0x81
    • This example shows the device NAD value as 0x01 in the data 5 response byte and INAD value of 0x00 in data 4 byte response.

     

    Similar example to read EEPROM address 0x1B containing function ID. This example shows the function ID value of 0x0001 in data 4 and data 5 response bytes.

    Master Request to read ADA4558 EEPROM address 0x1B

    PID

    NAD

    PCI

    SID

    Data1

    Data2

    Data3

    Dat4

    Data5

    CRC

    x3C

    x81

    x02

    x05

    x1B

    xFF

    xFF

    xFF

    xFF

    x5C

    ADA4558 response

     

    x81

    x06

    x45

    X1B

    X49

    x01

    x01

    x00

    xCC

  • Thanks for you support ! The ADA4558 doesn't listen to NAD = 1, Do i have to send an assign new nade frame and if so, what is the function id of the device ?

  • 0
    •  Analog Employees 
    on Aug 11, 2020 2:51 PM 3 months ago in reply to Omar Morsy

    For a new device the NAD=1, INAD=0, Function ID=0 and supplier ID=0.

    The eval boards are programmed with NAD=1, INAD=0 and Function ID=1.