
The zTimer has start, stop and reset signals. When rosc_enable is asserted, the inverter chain forms a feedback loop that produces oscillation. The start for starting the timer, stop is used to stop it. When stop is asserted, the elapsed count value is stored in the internal registers. The SPI device is used to read out the value stored within the particular register. See README.md for more info.
Press start, wait a while, and press to stop. Use an MCU to read out the value from the zTimer using the SPI protocol
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | SPI_SCK | SPI_MISO | |
| 1 | SPI_CS | ||
| 2 | SPI_MOSI | ||
| 3 | start_1 | ||
| 4 | stop_1 | ||
| 5 | start_2 | ||
| 6 | stop_2 | ||
| 7 |