As suggested we use the log files generated by Latte to configure the AFE7903.
We are debugging some problems and are struggling with register values that are not as we expect.
In the AFE79XX Latte GUI Application Note you describe the use of the SPIWrite with the possibility to change only specific bits with the LSB and MSB parameter. Also this feature is implemented in your library. But the generated log file don't use this feature. Instead it writes to the same register multiple time without adjusting the LSB or MSB parameter. But the comment says that this command only changing some bits.
SPIWrite 00bc,e7,0,7 //tdd_tx_on_a_2t_ab_mux_sel=0x3; Address(0xbc[7:0])
SPIWrite 00bc,e7,0,7 //tdd_tx_on_b_2t_ab_mux_sel=0x1; Address(0xbc[7:2])
SPIWrite 00bc,e7,0,7 //tdd_tx_on_c_2t_ab_mux_sel=0x2; Address(0xbc[7:4])
SPIWrite 00bc,27,0,7 //tdd_tx_on_d_2t_ab_mux_sel=0x0; Address(0xbc[7:6])
This behaviour is not as expected, but can be ok if the former value of the register is always kept in mind. Is this as expected? Implementing and documenting such a feature and the never use it scares me a little bit. And by the way, it's highly ineffective to write the same register multiple times instead once.
Also adding
device.optimizeWrites =1
to the scripts didn't change a lot.
Is the behaviour we see ok and intended?