![]() |
Electronic Components Datasheet Search |
|
EM6617 Datasheet(PDF) 38 Page - EM Microelectronic - MARIN SA |
|
EM6617 Datasheet(HTML) 38 Page - EM Microelectronic - MARIN SA |
38 / 65 page ![]() EM6617 Copyright © 2005, EM Microelectronic-Marin SA 38 www.emmicroelectronic.com 12. Supply Voltage Level Detector The EM6617 has a built-in Supply Voltage Level Detector (SVLD) circuitry, such that the CPU can compare the supply voltage against a pre-selected value. During sleep mode this function is inhibited. The CPU activates the supply voltage level detector by writing VldStart = 1 in the register RegVldCntl. The actual measurement starts on the next Ck[9] rising edge and lasts during the Ck[9] high period (2 ms at 32 KHz). The busy flag VldBusy stays high from VldStart set until the measurement is finished. The worst case time until the result is available is 1.5 Ck[9] prescaler clock periods (32 KHz -> 6 ms). The detection level must be defined in register RegVldLevel before the VldStart bit is set. During the actual measurement (2 ms) the device will draw an additional 5 µA of IVDD current. After the end of the measure the result is available by inspection of the bit VldResult. An interrupt IRQVLD is send to indicate the end of measure. If the result is read 0, then the power supply voltage was greater than the detection level value. If read 1, the power supply voltage was lower than the detection level value. During each read while Busy=1 the VldResult is not guaranteed. The interrupt request can be masked (default) ( MaskIRQVLD bit). 12.1 SVLD Register Table 12.1.1 register RegVldCntl Bit Name Reset R/W Description 3 VLDResult 0 R* Vld result flag 2 VLDStart 0 W Vld start 2 VLDBusy 0 R Vld busy flag 1 VLDlevel1 0 R/W Vld level selection 0 VLDlevel0 0 R/W Vld level selection R*; VLDResult is not guaranteed while VLDBusy=1 Table 12.1.2 Voltage level detector value selecting Level VldLevel1 VldLevel0 Typical voltage level Level1 0 0 2.2 Level2 0 1 2.5 Level3 1 0 3.0 Level3 1 1 3.0 Figure 28. SVLD Timing Diagram VBAT =VDD Compare Level Ck[9] (256 Hz) CPU starts measure Busy Flag Measure 1 0 Result Read Result SVLD > VBAT SVLD < VBAT CPU starts measure |