Hi there,
1) In Figure 18-21 of TMS570 TRM, what is the Input Pin Sync'd? Is it some built-in hardware associated with the corresponding Input Pin (which is also in Figure 18-21)?
2) Please verfy my understanding of PCNT below. Assume that LRP = 4 x HRP => lr = 4, the counter type (P[7:6]) = RISE2FALL, and Input Pin CC0 is measured.
- On the reset edge (e.g. rising edge) on CC0, the HR counter is reset to 0, and it will increment on the subsequent rising edges of HR clock until a falling edge is detected on CC0.
- During the HR counting process, the C[24:0] field (Period Value) of PCNT is incremented whenever the HR counter overflows (e.g. the value of HR counter goes lr - 1 to 0; in this case, 3 to 0).
- On the capture edge (e.g falling edge) on CC0, C[24:0] + 1 is copied to D[31:7] of PCNT as well as the value of HR counter + 1 is copied to D[6:0].
3) In Question 2), I'm not quite sure if the start and capture action of PCNT is based on the Input Pin or the so-called Input Pin Sync'd in Figure 18-21 of TMS570 TRM.
4) If there is another HET instruction in HR mode on CC0 next to the PCNT in Question 2 above, will the execution of this instruction disturb that of PCNT? Or there must be one HET instruction in HR mode is allowed on the same HET pin?
Thanks a lot,
Brent Shen