|
STC15W408AS library 0.16.0
|
Macros | |
| #define | comparator_init_async() |
| Comparator init for using interrupts routine. | |
| #define | comparator_start() (bit_set(CMPCR1, SBIT7)) |
| Comparator start routine. | |
| #define | comparator_stop() (bit_clr(CMPCR1, CBIT7)) |
| Comparator stop routine. | |
Functions and data structures related to comparator
Comparator is used for analog comparation of positive and negative inputs.
Comparator could work in async (using interrupts) or sync modes.
| #define comparator_init_async | ( | ) |
| #define comparator_start | ( | ) | (bit_set(CMPCR1, SBIT7)) |
Comparator start routine.
Before call this method comparator should be initialized by comparator_init_async() or comparator_init_sync()
| #define comparator_stop | ( | ) | (bit_clr(CMPCR1, CBIT7)) |
Comparator stop routine.
Before call this method comparator should be started by calling comparator_start()