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 Champ,
Could you help to provide the C and assembly example code to read ST1 then save in global variable ?
Thanks!
Hello Chen,
The ST1 can be read using PUSH and POP instruction. See this post for example on how to read it.
1.Mov the global variable address to one of the registers say - XAR4
2. Push ST1 and then Pop into say AH
3. Move AH to location pointed by XAR - example - MOV *XAR4, AH
The instructions for each of the operations cab be found here:
https://www.ti.com/lit/spru430
Thanks,
Ashwini