Other Parts Discussed in Thread: HALCOGEN
hi
...I am trying to capture the frequency using N2HET1 pin .. that value displayed on Hyperterminal .
Here SCI is working fine but wen i use capture function return value duty is 0x00000000.
i also enable the het pin in pinmux and select cap0 ..
uint32_t capGetSignal1(hetRAMBASE_t * hetRAM, uint32 cap)
{
uint32 pwmDuty = (hetRAM->Instruction[(cap << 1U) + 25U].Data) >> 7U;
uint32 pwmPeriod = (hetRAM->Instruction[(cap << 1U) + 26U].Data) >> 7U;
return pwmDuty;
}
use this function to capture the pwmDuty