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.
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
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
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 ?
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.