AT30TS Temperature Sensor configuration file.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | ACK_POLLING_ITERATION 1000 |
ACK_POLLING_INTERATION. More... | |
#define | TWI_MODULE &TWIC |
#define ACK_POLLING_ITERATION 1000 |
ACK_POLLING_INTERATION.
With an oscilloscope or logic analyzer, determine the number of NACK iteration required for ts_ack_polling() to span 5ms. 5ms is the maximum time required for a nonvolatile operation to complete.
For example: With the F_CPU running at 16MHz and an optimization of -O2, it takes 165 iterations of ts_ack_polling to span 5ms.
Referenced by ts_ack_polling().
#define TWI_MODULE &TWIC |
Referenced by main(), twi_probe_device(), twi_read(), and twi_write().