Tool/software: Code Composer Studio
Dear Scott or other expert,
I am VERY new to the firmware development for PGA970, have been trying to study the example project.
Please help to advise / correct my understanding wrt:
1. after power up, will the chip automatically load the program from the FRAM (is the start address fixed?
what is it? Is the length/size fixed? what is it?), and run it?
2. are memory allocations for the waveform data and user defined coefficients within the FRAM up to the
user to define? Any size limitations within the 16KB? Obviously this is related to the allocation for the
program in 1. above.
3. if we reset and un-reset the M0, will the program automatically re-start? will it be automatically re-loaded first?
4. regarding the quarter cycle sine wave (guess 0 to 90 degrees) for the waveform DAC, what is the exact value
for "amp" (formula on page 58 of the full datasheet, section 7.5.6, point 4)?
If we look at the lists in pga970_waveform.c, the min values are about 0, the max values are about 0x10A0.
Assume this is only the positive peak, we need to reserve the same range for the negative peak, then, we
are only using about 13 bits. Why is it so?
5. if we want to talk to the chip through SPI while the program is running, i.e. write to it, then immediately read it,
and if the COMBUF_Handler only does simple register reading and assignments, do we need to use the COMBUF_Flag
to notify another thread (the main program?) to manipulate the COM_TX_STATUS? Or we can just immediately
read it? because sending one command will take many us, but the COMBUF_Handler may just need 1 or 2 us?
Sorry for so many basic questions. Please help.
Thank you very much, best regards,