Hardware requirements
Mini USB cable
TWR-KM34Z50MV3 board
Personal Computer
Board settings
On TWR-KM34Z50MV3 board: Channel 1:
Use external power supply to input DC analog signals to AFE channel 2(J17-pin6 & J17-pin20) and channel 3(J17-pin8 & J17-pin22), AFE sample can support both single-ended or differential mode;
To monitor frequency, use a signal generator to input the AC sine signal to the AFE channel 2(J17-pin6 & J17-pin20).
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port on the board.
Open a serial terminal with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
Running the demo
These instructions are displayed/shown on the terminal window:
AFE QTIMER DEMO.
First Channel value: 888726
Second Channel value: 8388607
Frequency: 50
Frequency: 49
Frequency: 49
Frequency: 49
Frequency: 49
Frequency: 49
Frequency: 50
Frequency: 49
Frequency: 50
AFE QTIMER DEMO FINISH.