Other Parts Discussed in Thread: HALCOGEN
Hi,
I am new to the Hercules mcu and I've been handed a project that was started by another engineer that has left the business.
The design was started using the HALCoGen application, so there are alot of references to it within the code.
I have to retrofit a 100kHz interrupt based (I assume) on the RTI, so that it calls a function that uses a look-up table to to pick points to make a waveform.
At the moment the waveform is a sinewave made of 72 points, however the waveform doesn't have to be a sinewave.
We are using the dmaBTCAInterupt to do block transfers, and I've incorporated the look-up code within it and I'm able to get a sine wave with a max freq of 45Hz
I have the following questions:
1) can I increase the speed of the current interrupt to 100kHz ( can block transfers happen that quickly, as I believe the BTC interrupt is called once done);
2) can I retro-fit an interrupt to the existing code so that it calls the look-up routine with/without the help of the HALCoGen;
3) can HALCoGen be used to reconfigure or understand the current configuration of the MCU after the autogen code has been edited?
Regards,
Adam