Please read the relevant chapter of the Kinetis KV11: 75 MHz Arm Cortex-M0+ 64/128 KB Flash (32-64 pin)
There is description about DAC_SetBufferValue.
Please refer to the other two examples in the SDK:
Hi CMooN,
Did you follow the readme.txt of dac_basic example? Please input the value from terminal.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Robin,
Thanks for your answer. Can you also inform me about the buffer ? I do not understand about why we use buffer and what is the function of the buffer ? Also, I do not understant what is the function of the following code ?
void DAC_SetBufferValue(DAC_Type *base, uint8_t index, uint16_t value)
{
assert(index < DAC_DATL_COUNT);
base->DAT[index].DATL = (uint8_t)(0xFFU & value); /* Low 8-bit. */
base->DAT[index].DATH = (uint8_t)((0xF00U & value) >> 8); /* High 4-bit. */
Please read the relevant chapter of the Kinetis KV11: 75 MHz Arm Cortex-M0+ 64/128 KB Flash (32-64 pin)
There is description about DAC_SetBufferValue.
Please refer to the other two examples in the SDK: