From MikroElektonika Documentation
Part | Datasheet |
---|---|
![]() |
MIKROE-2333 (pdf) |
PDF Datasheet Preview |
---|
Timer click From MikroElektonika Documentation Timer click carries Maxim’s DS1682 total elapsed time recorder. The main feature of the IC is its elapsed time conter ETC used in conjunction with the ALARM pin. Whenever the EVENT pin is held high, the ETC will track time in quarter second resolution. Once the EVENT pin is set to logic low, the time data will be written in the IC’s non volatile EEPROM. The next time the EVENT pin is pulled high, the timer will pick up where it left and continue measuring accumulated time. The upper limit is 34 years. In practical applications, the ALARM pin will be utilized to set off a flag once a certain threshold of accumulated time is reached. The alarm flag is one time programmable. The board communicates with the target MCU through the mikroBUS I2C interface, with two additional pins ALARM in place of default INT and EVENT in place of RST . Designed to use either a 3.3V or a 5V power supply only. Features and usage notes Timer click Here’s a description of individual pins from the DS1682 IC, taken from the official data sheet. Each of these is accessible through the mikroBUS pin EVENT Input. The EVENT pin is the input the DS1682 monitors to Timer click determine when an event occurs. When IC/Module DS1682 the pin is pulled high, the contents of the EEPROM are transferred to the ETC and the oscillator starts. The ETC begins to Interface I2C, EVENT, ALARM count in quarter-second increments. Power 3.3V, 5V Schematic also available in PDF When the EVENT pin falls to logic 0, the supply event counter increments, and the event counter, ETC, and user-memory data are stored in the EEPROM array. When the Website EVENT pin changes states, the 2-wire bus is unavailable for communications for tEW falling and tER rising . The EVENT input is also deglitched tG to prevent short noise spikes from triggering an event. ALARM Active-Low Alarm Output. The DS1682 monitors the values in the ETC for the programmed value in the alarm register. When the ETC matches the alarm value, the alarm flag AF is set. Once set, the alarm flag cannot be reset. See the operating descriptions for the AOS and AP bits for details about the operation of the ALARM pin. SCL 2-Wire Serial-Clock Input. The SCL pin is the serial-clock input for the 2-wire synchronous communications channel. The SCL pin is an input that requires an external pullup resistor. SDA 2-Wire Input/Output. The SDA pin is the data input/output signal for the 2-wire synchronous communications channel. The SDA pin is an open-drain I/O, which requires an external pullup resistor. N.C. No Connection. These pins are not connected internally. Vcc +2.5V to +5.5V Input Supply To switch between 3.3V and 5V power supplies, use the onboard jumper. Programming Code snippet demonstrates how the Timer click counts the elapsed time, as well as the number of events on the EVT pin 1 //TIMER click on socket 1 2 3 #include "timer_hw.h" 4 5 //#define CountFromZero 6 7 // TFT module connections 8 unsigned int TFT_DataPort at GPIOE_ODR 9 sbit TFT_RST at GPIOE_ODR.B8 10 sbit TFT_RS at GPIOE_ODR.B12 11 sbit TFT_CS at GPIOE_ODR.B15 12 sbit TFT_RD at GPIOE_ODR.B10 13 sbit TFT_WR at GPIOE_ODR.B11 14 sbit TFT_BLED at GPIOE_ODR.B9 15 // End TFT module connections 16 17 sbit TIMER_EVT at GPIOD_ODR.B1; 18 sbit TIMER_ALM at GPIOC_IDR.B1; 20 char text[24]; 21 unsigned long ETC //elapsed time counter 22 unsigned int EC; 24 void 25 TFT_Init_ILI9341_8bit 320, 240 ; 26 TFT_BLED = 1; 27 TFT_Set_Pen CL_AQUA, 1 ; 28 TFT_Fill_Screen CL_AQUA ; |
More datasheets: MDM-15PH016L | MIKROE-2019 | PHE840MD6680KD18R06L2 | PB-1221P-SGQ | 76650-0072 | LE87251NQCT | LE87251NQC | MPOS-STD2-REF# | MPOS-STD2-PRO# | MPOS-STD2-KIT# |
Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MIKROE-2333 Datasheet file may be downloaded here without warranties.