dac14_interrupt#
Overview#
The DAC14 interrupt example shows how to use the DAC FIFO interrupt. When the application starts to run, it will immediately enter the DAC ISR and write data into the FIFO which is empty at first. Once the DAC FIFO is triggered in the while loop, the data in it shall be read out; then the FIFO becomes empty again, and get another round of feed in the DAC ISR.
Supported Boards#
FRDM-MCXN947
Hardware requirements
Type-C USB cable
FRDM-MCXN947 board
Personal Computer
Board settings
DAC output pin: J3-2
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following 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 demo.
A multimeter may be used to measure the DAC output voltage (Connector J19-1).
Running the demo
When the demo runs successfully, the log would be seen on the debug console terminal like:
DAC interrupt Example. Press any key to trigger the DAC… DAC14 next output: 500 DAC14 next output: 1000 DAC14 next output: 2000 DAC14 next output: 3000 DAC14 next output: 4000 DAC14 next output: 5000
The user can measure the DAC output pin to check the output voltage.
FRDM-MCXN947T
Hardware requirements
Type-C USB cable
FRDM-MCXN947T board
Personal Computer
Board settings
DAC output pin: J3-2
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following 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 demo.
A multimeter may be used to measure the DAC output voltage (Connector J19-1).
Running the demo
When the demo runs successfully, the log would be seen on the debug console terminal like:
DAC interrupt Example. Press any key to trigger the DAC… DAC14 next output: 500 DAC14 next output: 1000 DAC14 next output: 2000 DAC14 next output: 3000 DAC14 next output: 4000 DAC14 next output: 5000
The user can measure the DAC output pin to check the output voltage.
MCX-N9XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N9XX-EVK board
Personal Computer
Board settings
DAC output pin: J19-1
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following 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 demo.
A multimeter may be used to measure the DAC output voltage (Connector J19-1).
Running the demo
When the demo runs successfully, the log would be seen on the debug console terminal like:
DAC interrupt Example. Press any key to trigger the DAC… DAC14 next output: 500 DAC14 next output: 1000 DAC14 next output: 2000 DAC14 next output: 3000 DAC14 next output: 4000 DAC14 next output: 5000
The user can measure the DAC output pin to check the output voltage.