Other Parts Discussed in Thread: HALCOGEN
Hi TI Team,
I want to capture the input pwm with duty cycle and period in n2het module. I have configure the program using halcogen as below,
I have using the NEHET1[9] pin to get the input pwm.I am using edge 0 and falling edge interrupt. And my main program as below,
#include "HL_het.h"
#include "HL_gio.h"
#include "HL_sys_common.h"
hetSIGNAL_t get_pwm={0};
int main(void)
{
_enable_IRQ();
hetInit();
edgeEnableNotification(hetREG1, edge0);
while(1);
return 0;
}
void edgeNotification(hetBASE_t * hetREG,uint32 edge)
{
capGetSignal(hetRAM1,cap0,&get_pwm);
}
After debugging i got duty as 0XFFFFFFFF and time period as 0.What was the mistake i have made here. I giving an ultrasonic sensor output to the input of n2het1[9] .When the distance detected by the ultrasonic sensor the pwm, duty cycle width will be changes accordingly, for that purpose i need to capture the input pwm.
Please support me,
Thanks in Advance,
Best Regards,
A. Ajith Kumar