dac12_basic#
Overview#
The dac12_basic example shows how to use DAC12 module simply as the general DAC12 converter.
When the DAC12’s fifo feature is not enabled, Any write to the DATA register will replace the data in the buffer and push data to analog conversion without trigger support. In this example, it gets the value from terminal, outputs the DAC12 output voltage through DAC12 output pin.
Supported Boards#
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
No special settings are required.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.
Connect a micro USB cable between the host PC and the J6 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 example.
Running the demo
When the demo runs successfully, following information can be seen on the terminal:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 4095
DAC out: 4095
Then user can measure the DAC0 output pin(J11-8) to check responding voltage.
MIMXRT1170-EVKB
Hardware requirements
Micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Board settings
No special settings are required.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board, switch SW5 to power on the board.
Connect a micro USB cable between the host PC and the J11 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 example.
Running the demo
When the demo runs successfully, following information can be seen on the terminal:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 4095
DAC out: 4095
Then user can measure the DAC0 output pin(TP18) to check responding voltage.
EVK-MCIMX7ULP
Hardware requirements
Micro USB cable
MCIMX7ULP-EVK board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
No special settings are required.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.
Connect a micro USB cable between the host PC and the J6 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 example.
Running the demo
When the demo runs successfully, following information can be seen on the terminal:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 4095
DAC out: 4095
Then user can measure the DAC0 output pin(J11-8) to check responding voltage.
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
No special settings are required.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.
Connect a micro USB cable between the host PC and the J6 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 example.
Running the demo
When the demo runs successfully, following information can be seen on the terminal:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 4095
DAC out: 4095
Then user can measure the DAC0 output pin(J11-8) to check responding voltage.
MIMXRT1160-EVK
Hardware requirements
Micro USB cable
MIMXRT1160-EVK board
Personal Computer
Board settings
No special settings are required.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board, switch SW5 to power on the board.
Connect a micro USB cable between the host PC and the J11 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 example.
Running the demo
When the demo runs successfully, following information can be seen on the terminal:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 4095
DAC out: 4095
Then user can measure the DAC0 output pin(TP18) to check responding voltage.
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Multimeter
Board settings
Connect J10 pin 1-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.
Running the demo
The log below shows in the terminal window:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 400
DAC out: 400
Please input a value (0 - 4095) to output with DAC:
Then user can measure the DAC0 output pin(TP9) to check responding voltage = 1.8v * 400 / 4096
FRDM-IMXRT1186
Hardware requirements
Type-C USB cable
FRDM-IMXRT1186 board
Personal Computer
Multimeter
Board settings
Connect J37 pin 1-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.
Running the demo
The log below shows in the terminal window:
DAC basic Example.
Please input a value (0 - 4095) to output with DAC:
Input value is 400
DAC out: 400
Please input a value (0 - 4095) to output with DAC:
Then user can measure the DAC0 output pin(TP14) to check responding voltage = 1.8v * 400 / 4096