HI~
I have configured a HWI trigger by gpio. But it didn't work
DM6435
CCS 3.3
DSP/BIOS 5.41.11
* in tcf configure :
HWI INT 4
interrupt selection number : 65 (gpio1)
function : _myHwi
monitor : nothting
Dispatcher : 1
arg : 4
* in my code :
GPIO_BINTEN BANK0 enable
ier |= 0x10;
hwi_enable();
thanks.
shin
You will likely find this article and accompanying example helpful:
http://processors.wiki.ti.com/index.php/Configuring_GPIO_Interrupts
---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------
thanks, brad
i found the solution , i added trigger type. ex falling or rising
but i have additional questions.
Q1. when i check HWI Property, External Interrupt Pin polarity exist. (low to high) why do i still have to add trigger type?
Q2. if i dont use HWI Dispatchter, how come the interrupt react only once?
ChangHoon ShinQ1. when i check HWI Property, External Interrupt Pin polarity exist. (low to high) why do i still have to add trigger type?
Sorry, that particular dialog box is only meaningful for devices such as c6713. You need to program the registers in your case.
ChangHoon ShinQ2. if i dont use HWI Dispatchter, how come the interrupt react only once?
If you're not using the dispatcher then you would need to use the interrupt keyword. If that's not it please post your ISR code.
Thanks , Brad!
I have additional question.
What kind of interrupt keyword do you mean?
Are you talking about pairing HWI_disable and HWI_enable(HWI_store)???
Look for "interrupt keyword" in the Compiler Guide. Also look at the section "Improper use of the interrupt keyword" here:
http://processors.wiki.ti.com/index.php?title=DSP_BIOS_Debugging_Tips