Other Parts Discussed in Thread: TMS570LS20216, TMS570LS0432, HALCOGEN
Hi there,
With a VCLK2 of 128 MHz to feed the NHET, I plan to configure the NHET to sample @ 16 MHz an input frequency anywhere from 7 KHz to 12 KHz at pin 28, as follow:
- lr = 8 cycles or up to 8 instructions, 62.5 ns per loop (16 MHz)
- hr = 1 cycle, 7.8125 ns (128 MHz)
The NHET program would be:
- L00 CNT { next=L01, reg=A, max=0x01FFFFFF }
- L01 WCAP { next=L02, reg=A, pin=CC28, irq=ON, event=RISE, hr_lr=HIGH, data=0 }
- L02 ......
With the hr_lr field enabled, given that lr=8, I can get 3 more bits (D[6..4] of Data Field) of resolution on top of the count provided by REG_A (TRM para. 18.4.3.2, Table 18-6).
My question: Is this equivalent to sampling the input frequency at 16 MHz x 2^3 = 128 MHz?
In other words: whenever the hr_lr is enabled, we sample the input signal at the VLCK2 frequency. Is this true?
Thank you for any insight.
Chuck.