TS8000 Library
TS8000 Ultrasonic to Digital Converter
This release modifies how the device calibration pulse is measured. v2.0.0 implemented two reads of a free-running timer, one on each edge of the calibration pulse, while this v3.0.0 release uses the timer/capture peripheral to allow the micro to measure the time between calibration pulse edges directly in hardware.
NOTE: Due to the use of a timer/capture to measure the pulse width of the calibration pulse, the timer_init() and TCC0_Handler() functions are only compatible with the SAMD21 / 20 / 11 / 10 microcontrollers. However, the functions are not too complicated so porting the functionality to a different micro architecture should be fairly easy.