ReadCapture or ReadCaptureBuf for capture timing using TCPWM? | Cypress Semiconductor
ReadCapture or ReadCaptureBuf for capture timing using TCPWM?
The PSoC 4200 TRM lists two registers that appear to store timer output:
TCPWM_CNT_CC (Counter compare/capture register): In CAPTURE mode, captures the counter value. In other modes, compared to counter value. Default: 0xFFFF
And TCPWM_CNT_CC_BUFF (Counter buffered compare/capture register): Additional buffer for counter CC register. Default: 0xFFFF
Both are given the same name: CNT_CC.
The knowledge base timing example here uses the Counter_ReadCapture(), not ReadCaptureBuf(). Both are in the TCPWM API. I have not seen any explanation why I should use one and not the other for timing, and the TRM description is, um, overy terse. I am writing a timing application and I am trying to make it more succinct than the Knowledge Base Article cited.
So what is the difference between these two registers/API fuctions?