aseely 1 Posted December 17, 2014 Share Posted December 17, 2014 Thomas, Correct. Only one interrupt request can be mapped to each channel. But you could arrange the channels as you said in a group, linearly, so that all of the I2C related interrupts in your example can easily be masked/unmasked in one operation. Quote Link to post Share on other sites
abecedarian 330 Posted December 18, 2014 Author Share Posted December 18, 2014 I'd like to know where N2HET operation and documentation can be found. TI releases these things as 'LaunchPad' kits, but documentation about some of the most compelling reasons to use them are not documented. Quote Link to post Share on other sites
GrumpyOldPizza 15 Posted December 19, 2014 Share Posted December 19, 2014 Thomas, Correct. Only one interrupt request can be mapped to each channel. But you could arrange the channels as you said in a group, linearly, so that all of the I2C related interrupts in your example can easily be masked/unmasked in one operation. The problem with that approach in general is that you cannot re-enable interrupts early. You have to either write a generic ISR shell that masks (and unmasks on return) the proper channels. This is 3 DWORDs you have to write. You also have to read based upon the channel number the mask you want to apply. Or you could generate proper ISR shell for each channel and use hardcoded values to mask & unmask. So you are essentially introducing a long latency before you get to the very first useful instruction of your ISR. But it's actually worse. Suppose you want to allow a ISR handler to enable/disable channels ? Then a hardcoded unmask will not work. You actually need to keep a softcopy of what is supposed to be enabled and restore that anded with the bits that you want to re-enable. All I am saying is that it's a big pain, compared to NVIC or GIC. I always felt that exactly this, the better interrupt handling was a major plus for Cortex-R/Cortex-M over Cortex-A. - Thomas Quote Link to post Share on other sites
dubnet 238 Posted October 21, 2015 Share Posted October 21, 2015 @@abecedarian Not sure if you are aware of this but I thought it may be of interest. http://www.ti.com/tool/HET_IDE?DCMP=epd-mcu-her-het-wwe&HQS=epd-mcu-her-het-mcufb-tf-het-wwe Quote Link to post Share on other sites
abecedarian 330 Posted October 23, 2015 Author Share Posted October 23, 2015 @@dubnet - Thanks for that. I haven't been paying much attention to the Hercules things lately so now I've something to look at. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.