Hi daixu,
As we discussed in the case, it is recommended to download latest MCUXpresso SDK_2.3.1_MK22FX512A.
Then refer the dac_basic example of SDK_2.3.1_MK22FX512A.
You can also download the SDK Documentation and API Reference Manual.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------