Analog Devices EE-393 explains using the ADSP-CM41x OSCWD, OCU and VMU to detect clock and power faults and set GPIO pins to safe states.
This Analog Devices EE-393 application note describes how to protect ADSP-CM41x processors from input clock and power supply faults using the Oscillator Watchdog (OSCWD), the Oscillator Comparator Unit (OCU) and the Voltage Monitoring Unit (VMU). These blocks detect clock faults, identify power supply issues, shut down the flash memory and set the general-purpose I/O pins to safe states.
The note covers configuring the OSCWD and OCU registers, VMU operation and under-voltage thresholds, board design considerations such as ramp rates and minimum capacitance on VDD_INT and VDD_EXT, and example power loss and clock loss performance on the ADSP-CM419 EZ-Kit.
| OSCWD auxiliary clock frequency | 1 MHz |
|---|---|
| Clock reference count for 16 MHz LFO | 1 MHz |
| Clock source and LFO PPM on EZ-Kit | 50 |
| Minimum capacitance on VDD_INT | 32 µF |
| Minimum capacitance on VDD_EXT | 90 µF |
| Maximum ramp rate for VDD_INT | 1 V/1.3 ms |
| Maximum ramp rate for VDD_EXT | 1 V/250 µS |
| Programmable fault delay signal | 1-17 µs |
| VDD_INT capacitance on ADSP-CM419 EZ-Kit | ~43 µF |
| VDD_INT power hold time on EZ-Kit | 800 µs |
| GPIO Pin Safe State delay after VDD_INT failure | ~550 µS |
| GPIO Pin Safe State delay after clock disconnect | ~1.037 ms |
The OSCWD is part of the Clock Generation Unit and monitors the system clock (CLKIN0) for issues such as bad upper and lower frequency limits and harmonic oscillation problems.
The OCU monitors the frequency of SYSCLK0, the output clock from the on-chip PLL, and can generate both a fault and an interrupt if a fault, frequency drift or other clock error occurs in the SYSCLK0 domain.
The VMU provides over-voltage and under-voltage detection on the VDD_EXT and VDD_INT power domains and generates asynchronous signals when voltages exceed or drop below the programmable limits.
The VMU immediately starts to shut down the onboard flash memory, so application code that executes from flash stops executing. Only code contained within the VMU interrupt handlers can then execute, and those functions must be placed in SRAM using the __ramfunc type in IAR EWARM.