Dear,
We look for physical address of IFR and IER register into DSP TMS320F28335. These item appear in extern cregister volatile unsigned int IFR and IER this is the same.
How replace IFR initialized to 00 by another assembly code command.
Regards
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.
Dear,
We look for physical address of IFR and IER register into DSP TMS320F28335. These item appear in extern cregister volatile unsigned int IFR and IER this is the same.
How replace IFR initialized to 00 by another assembly code command.
Regards
In C:
/*** Manual clearing IFR ***/
extern cregister volatile unsigned int IFR;
IFR |= 0x0000; //clear IFR
In ASM:
;write 0 to clear IFR
AND IFR, #0
;operation is atomic and will not be interrupted
Adam,
Thanks, you are correct. I copied and pasted the wrong one from the workshop slide. I should have been:
/*** Manual clearing IFR ***/
extern cregister volatile unsigned int IFR;
IFR &= 0x0000; //clear in IFR
- Ken