SPRUJ79A November 2024 – December 2025 F29H850TU , F29H859TU-Q1
FILE: wadi_ex2_frequency.c
This example tests WADI blocks in the following interconnection of the peripherals: - EPWM --> INPUT_XBAR --> WADI --> OUTPUT_XBAR - The EPWM output is connexted to Signal 1 and Signal 2 of WADI Block 1 and Block 2 through Input Xbar - WADI Blocks are Hardware triggered using GPIO5 and GPIO6 through Input Xbar - WADI Block 1 performs Frequency measurement on Signal 1 and Signal 2 independently - WADI Block 2 performs Frequency measurement between Signal 1 and Signal 2 (Signal To Signal) - The output of WADI is connected to GPIO7 and GPIO9 through Output Xbar - The examples configures EPWM such that Frequency is within limits configured for WADI Blocks - After a certain delay EPWM Frequency is modified so that WADI detects error and interrupt is generated - Based on the interrupt count, 'pass' flag is updated