Hardware requirements
Micro USB cable
FRDM-RW612 board
Personal Computer
Board settings
No special setting
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J10) on the 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.
Launch the debugger in your IDE to begin running the example.
Running the demo
The log below shows the output of the dac normal demo in the terminal window:
DAC Normal Driver Example!
Output = 0.18V + (1.42V * input_code / 1023)
Please input the value(Ranges from 0 to 1023) to be converted.
1000
Please input the value(Ranges from 0 to 1023) to be converted.
Use the oscilloscope or universal meter to probe J4-4(GPIO_43), then the output voltage can be measured.