您说的是F2806x么?你的理解是对的,这和eCAP是不一样的。
When a rising edge is detected, the value in HCCOUNTER is captured into the 16-bit HCCAPCNTRISE0
register before the counter resets to 0. When a falling edge is detected, the value in HCCOUNTER is
captured into the 16-bit HCCAPCNTFALL0 register before the counter resets to 0.
The HRCAP capture registers include a 2-deep FIFO buffer to store two pulse widths’ worth of data.
When a rising edge event occurs, HCCAPCNTRISE0 is loaded with the pulse width data from the last
falling edge to the current rising edge (low pulse width). At the next rising edge event, the value in the
HCCAPCNTRISE0 register is loaded into HCCAPCNTRISE1.
When a falling edge event occurs, HCCAPCNTFALL0 is loaded with the pulse width data from the last
rising edge to the current falling edge (high pulse width). For falling edge events, the HRCAP logic
operates such that the HCCAPCNTFALL0 register value is then loaded into the HCCAPCNTFALL1
register at the next rising edge event rather than waiting until the next falling edge event.
如果您认为此问题已被解答,请在“这是否解答您的问题” 后,点击“是”按钮! 谢谢您的合作!
您说的是F2806x么?你的理解是对的,这和eCAP是不一样的。
When a rising edge is detected, the value in HCCOUNTER is captured into the 16-bit HCCAPCNTRISE0
register before the counter resets to 0. When a falling edge is detected, the value in HCCOUNTER is
captured into the 16-bit HCCAPCNTFALL0 register before the counter resets to 0.
The HRCAP capture registers include a 2-deep FIFO buffer to store two pulse widths’ worth of data.
When a rising edge event occurs, HCCAPCNTRISE0 is loaded with the pulse width data from the last
falling edge to the current rising edge (low pulse width). At the next rising edge event, the value in the
HCCAPCNTRISE0 register is loaded into HCCAPCNTRISE1.
When a falling edge event occurs, HCCAPCNTFALL0 is loaded with the pulse width data from the last
rising edge to the current falling edge (high pulse width). For falling edge events, the HRCAP logic
operates such that the HCCAPCNTFALL0 register value is then loaded into the HCCAPCNTFALL1
register at the next rising edge event rather than waiting until the next falling edge event.
如果您认为此问题已被解答,请在“这是否解答您的问题” 后,点击“是”按钮! 谢谢您的合作!
举报