| 数据搜索系统,热门电子元器件搜索 |
|
MCP795W21 数据表(PDF) 30 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP795W21 数据表(HTML) 30 Page - Microchip Technology |
|
30 / 54 page ![]() MCP795W1X/MCP795W2X DS22280C-page 30 Preliminary 2011-2012 Microchip Technology Inc. 9.1.2 CLOCKOUT FUNCTION The MCP795W20 features a push-pull pin CLKOUT that can supply a digital signal based on a division of the main 32.768 kHz clock. If this function is not used the pin may be directly controlled using the OUT bit in the Control register (0x08). In VBAT mode, CLKOUT is logic low. In VDD POR condition, the CLKOUT is tri-stated. 9.1.3 WATCHDOG TIMER The on-board Watchdog Timer is configured by loading the register at address 0x0A. The WDT is not available when the MCP795WXX is operating from the VBAT supply. When in this condition, the WDT is disabled by the hardware and must be re-enabled when VCC is restored. The output of the WDT is based on the un-calibrated 32.768 kHz oscillator. Description of WDT Bits: • Bit 7 is a read/write bit that is set and cleared by software. This bit is set to enable the WDT function and cleared to disable the function. A VCC power fail will cause this bit to be cleared and not re-enabled when VCC is restored. • Bit 6 is a read/write bit that is set in hardware when the WDT times out and the WDO pin is asserted. This bit must be cleared in software to restart the WDT. • Bit 5 is a read/write bit and is set to enable a 64- second delay before the WDT starts to count. If this bit is set and the WDTIF bit is cleared then there will be a 64-second delay before the WDT starts to count. This bit should be set before the WDTEN bit is set. • Bit 4 is a read/write bit that is used to select the pulse width on the WDO pin when the WDT times out. - 0 – 122 us Pulse - 1 – 125 ms Pulse • Bits <3:0> are read/write bits that are used to set the WDT time-out period as below (all times are based off the uncalibrated crystal reference). Bit 3 should be cleared and is reserved for future use: - 000 – 977 us - 001– 15.6 ms - 010 – 62.5 ms - 011 – 125 ms - 100 – 1s - 101 – 16s - 110 – 32s - 111 – 64s To reset the WDT the CLRWDT instruction must be issued over the SPI interface, as shown in Figure 9-7. If the WDT is not cleared with the CLRWDT command before time-out then the WDO pin will assert and the WDTIF bit will be set. The WDTIF bit must be cleared by software to restart the WDT. 9.1.4 EVENT DETECTION The on-chip event detection consists of two separate detection circuits. The high-speed circuit is designed to operate with a digital signal from the output of an external signal conditioning circuit. The input is edge triggered, and will generate an interrupt when the correct number of events has occurred. The low-speed circuit is designed to operate directly with mechanical switches and support built-in switch debounce. Registers associated with the event detection module: • EVHIF – When the configured number of high speed events has occurred the IRQ pin is asserted and the EVHIF bit is set. This bit must be cleared by software to reset the module and clear the IRQ pin. • EVLIF – When an event occurs on the low-speed pin this IRQ pin is asserted and the EVLIF bit is set. This bit must be cleared by software to reset the module and clear the IRQ pin. • EVEN<1:0> – These two bits determine what combination of the high and low-speed modules are enabled. - 00 – Both modules are off - 01 – Only low-speed module enabled - 10 – Only high-speed module disabled - 11 – Both modules are enabled • EVWDT – setting this bit overrides any setting for the High-Speed Event Detection and allows the EVHS pin to clear the Watchdog Timer. This is edge triggered. Either H-L or L-H transition will clear the WDT. • EVLDB – This is the low-speed event debounce setting. Depending on the state of this bit the low- speed pin will have to remain at the same state for the following periods to be considered valid. - 0 – 31.25 ms - 1 – 500 ms |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |