How to send SPI command by "PIT" every milisecond ?
hello everyone;
I’m trying to send some SPI command by SPC560 microcontroller. During the main program I must send a special code regularly, for example I must send the code “0xAAAA�? and “0xBBBB�? every 20mS. Actually when the main program is running, if 20mS happened, the main program must stop and send code�?0xAAAA�? and then come back to the last point of the main program.
I try to do this project with PIT, but I can’t reach to desired result.
how can I solve this problem?
with regards
Bahareh
