Analog Devices EE-393 explains using the ADSP-CM41x OSCWD, OCU and VMU to detect clock and power faults and set GPIO safe states.
This Engineer-to-Engineer Note from Analog Devices describes how to use the ADSP-CM41x processor's Oscillator Watchdog (OSCWD), Oscillator Comparator Unit (OCU) and Voltage Monitoring Unit (VMU) to detect clock faults, identify power supply problems, and safely shut down flash memory.
The note covers configuring the OSCWD and OCU for clock monitoring, VMU voltage thresholds and power-down signals, GPIO safe states, and board design considerations such as power supply capacitance for the ADSP-CM419 EZ-Kit.
| OSCWD auxiliary reference clock | 1 MHz |
|---|---|
| Clock Reference Count formula | LFO_Frequency / 16 |
| EZ-Kit LFO frequency | 16 MHz |
| EZ-Kit clock PPM | 50 |
| VMU VDD_INT under-voltage thresholds | 1.124 V typ. (REF_PRG[0]=0), 1.11 V typ. (REF_PRG[0]=1) |
| VMU VDD_EXT under-voltage thresholds | 2.97 V typ. (REF_PRG[1]=0), 2.80 V typ. (REF_PRG[1]=1) |
| VDD_INT maximum ramp rate | 1 V/1.3 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 VMU provides over-voltage and under-voltage detection by monitoring the VDD_EXT and VDD_INT power domains and generates asynchronous signals if the voltages exceed or drop below the programmable limits.
GPIO Safe States allow the user to set a predetermined value to the GPIOs (high, low, or tri-state) in the event of a power fault or a clock fault.