Hi,
I want to program the NCO phse offset registers if possible from Latte. If it is possible to do kindly tell the register number, phase resolution and the script to program the NCO offsets.
Thanks
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.
Hi AK,
You can use C functions updateRxNcoPhase and updateTxNcoPhase to program NCO phase offsets of RX and TX chains respectively. These function definitions can be found in afe79xxCLibsDocumentation in CAFE79xx_V2p5.zip. This zip file is available in 'User Guides and Software' section of AFE79xx secure folder. I also attached screen-shots of function definitions below for your reference.
To run C functions in AFE79xx EVM software (Latte), you can enter CAFE.<function_name> in command line. For example, to run updateRxNcoPhase function, you can enter CAFE.updateRxNcoPhase(0,0,8192,0) in command line. This sets phase of NCO0 of TXA to 45 degrees.
Also note that, before using these functions, below two parameter settings need to be added in configuration script and the AFE should be configured using that script:
sysParams.ncoFreqMode = 'FCW'
sysParams.txCahinDirectCtrl = True
These should be added above line "AFE.deviceBringup()" in the script.
Regards,
Vijay