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.
Hello,
I working with piccolo EVM board for 28027 and I need to read the lower 16 bits of GPIO and write into int16_t array. The catch it that each cycle of reading GPADAT and writing into memory should take exactly 4 cycles as the GPADAT changes every 4 cycles and loop it for N times. I tried many approaches with MOV but the best I could do is put GPADAT onto AL (ACC) and then AL to GPADAT which takes much more like 16 cycles (according to CCS v7 clock counter) and loop with BANZ breaks the pipe so I'm far away to reach my goal.
ReadData:
MOV AL, *+XAR3[0]
MOV *XAR4++, AL
BANZ ReadData,AR0--
I accept that under such dependencies I probably need to call the same lines again an again but at least I need to be sure that it takes 4 cycles.
I'll appreciate this forum help!
Thanks,
Pavel