Hardware requirements
J-Link ARM
P&E Micro Multi-link universal
Mini/micro USB cable
USB A to micro AB cable
Hardware (tower/base board, …) for specific device
Personal Computer
Board settings
This example requires one board and one DC Power Supply. Connect the DC Power Supply output signals to AFE differential sample pins:
On TWR-KM34Z75M board: Pin 45 of QFP144/AFE_SDADP0 (J31 Pin 2) -> (J21 Pin 2) Pin 46 of QFP144/AFE_SDADM0 (J31 Pin 4) -> (J31 Pin 3)
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 interrupt example.
For example, roll the potentiometer to see value changes on terminal screen. If value of potentiometer output lager than 500mV,
result will return maximum of 24 bit.
The printed log is displayed in the terminal window as shown below.
AFE Interrupt example.
Press any key to trigger AFE conversion
AFE value = 33456
Press any key to trigger AFE conversion
AFE value = 31110
Press any key to trigger AFE conversion
AFE value = 95880
Press any key to trigger AFE conversion
AFE value = 17442
Press any key to trigger AFE conversion
...