KV11z-DAC Output Enable

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KV11z-DAC Output Enable

Jump to solution
911 Views
CMooN
Contributor I

Hello,

Can someone please help me about how to enable DAC output of KV11z ? I am using dac_basic from SDK. Thanks for any help.

0 Kudos
Reply
1 Solution
891 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please read the relevant chapter of the Kinetis KV11: 75 MHz Arm Cortex-M0+ 64/128 KB Flash (32-64 pin)

DAC data buffer.png

There is description about DAC_SetBufferValue.

DAC_SetBufferValue.png

Please refer to the other two examples in the SDK:

dac examples.png

View solution in original post

0 Kudos
Reply
4 Replies
896 Views
CMooN
Contributor I

Also, I want you to ask how can I control the change of the voltage with interrupt timer ? @Robin_Shen 

0 Kudos
Reply
906 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi CMooN,

Did you follow the readme.txt of dac_basic example? Please input the value from terminal.

dac_basic.png

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.
-------------------------------------------------------------------------------

0 Kudos
Reply
903 Views
CMooN
Contributor I

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. */

0 Kudos
Reply
892 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please read the relevant chapter of the Kinetis KV11: 75 MHz Arm Cortex-M0+ 64/128 KB Flash (32-64 pin)

DAC data buffer.png

There is description about DAC_SetBufferValue.

DAC_SetBufferValue.png

Please refer to the other two examples in the SDK:

dac examples.png

0 Kudos
Reply