This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE7950: SPI register map & how to read register values on Latte

Part Number: AFE7950

Hi,

1>

I need to check some register values by Latter SW. Is there any function on Latte to access direct register?

2>

I am checking log file written by Latte SW. I copied some log below.

I found ec_dig(0x10), ec_ana(0x11) on global register map but did not find relative page map. Let me know which register means ec_dig or ec_ana.

After setting ec_ana page, digtop page was selected and read address 0868 ~ 086b. I thought that 0868~086b are address of digtop register but were not in digtop register map.

After SPIread, macro opcode 0x72 was executed, but there was no explanation for 0x72 opcode on Macros List table. Can I receive updated document?

--------log-

//STEP: analogWrites/step0
SPIWrite 0011,3f,0,7 //ec_ana=0x3f; Address(0x11[7:0])
SPIWrite 0075,00,0,7 //Property_75h_7_7_76h_3_0=0x6; Address(0x75[7:7],0x76[7:0])
SPIWrite 0076,03,0,7
SPIWrite 0071,04,0,7 //Property_71h_2_1=0x2; Address(0x71[7:1])
SPIWrite 0071,14,0,7 //Property_71h_4_4=0x1; Address(0x71[7:4])
SPIWrite 0084,80,0,7 //Property_84h_7_6_85h_1_0=0xe; Address(0x84[7:6],0x85[7:0])
SPIWrite 0085,03,0,7
SPIWrite 0011,00,0,7 //ec_ana=0x0; Address(0x11[7:0])
SPIWrite 0011,10,0,7 //ec_ana=0x10; Address(0x11[7:0])
SPIWrite 0071,10,0,7 //Property_71h_2_1=0x0; Address(0x71[7:1])
SPIWrite 0011,01,0,7 //ec_ana=0x1; Address(0x11[7:0])
SPIWrite 0071,10,0,7 //Property_71h_2_1=0x0; Address(0x71[7:1])
SPIWrite 0011,02,0,7 //ec_ana=0x2; Address(0x11[7:0])
SPIWrite 0071,10,0,7 //Property_71h_2_1=0x0; Address(0x71[7:1])
SPIWrite 0011,20,0,7 //ec_ana=0x20; Address(0x11[7:0])
SPIWrite 0071,10,0,7 //Property_71h_2_1=0x0; Address(0x71[7:1])
SPIWrite 0011,04,0,7 //ec_ana=0x4; Address(0x11[7:0])
SPIWrite 0071,10,0,7 //Property_71h_2_1=0x0; Address(0x71[7:1])
SPIWrite 0011,08,0,7 //ec_ana=0x8; Address(0x11[7:0])
SPIWrite 0071,10,0,7 //Property_71h_2_1=0x0; Address(0x71[7:1])
SPIWrite 0011,00,0,7 //ec_ana=0x0; Address(0x11[7:0])
SPIWrite 0015,40,0,7 //digtop=0x1; Address(0x15[7:6])
SPIRead 086b,0,7
SPIRead 086a,0,7
SPIRead 0869,0,7
SPIRead 0868,0,7

//Read Property_848h_31_0=0x57c00c00; Address(0x868[7:0],0x869[7:0],0x86a[7:0],0x86b[7:0],0x86c[7:0])

SPIWrite 0015,00,0,7 //digtop=0x0; Address(0x15[7:6])
SPIWrite 0018,20,0,7 //macro=0x1; Address(0x18[7:5])
SPIRead 00f0,0,0

//Read MACRO_READY=0x1; Address(0xf0[7:0])


SPIPoll 00f0,0,0,01
SPIWrite 00a3,00,0,7 //MACRO_OPERAND_REG0=0x24; Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
SPIWrite 00a2,00,0,7
SPIWrite 00a1,00,0,7
SPIWrite 00a0,24,0,7
SPIWrite 0193,72,0,7 //MACRO_OPCODE=0x72; Address(0x193[7:0],0x194[7:0])

Regards,

  • Hi Yoonsun,

    To read back from the registers directly you can use the following command: device.readReg(Address in hex). For example to read the CHIP_TYPE you can use the following command: device.readReg(0x03).

    The document that is located in the secure folder in the most up to date. I will check with our team about the issues you are facing with the document.

    Regards,

    David Chaparro