DAC clock configuration K20 MCU

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

DAC clock configuration K20 MCU

791 Views
blessed1234
Contributor I

I am new to ARM Programming. I am using K20 SERIES MCU MK20D6256H and Keil Uvision I want to configure the clock for DAC. I searched through the reference manual which says Bus clock drives DAC. and "MCGOUTCLK divided by OUTDIV2 clocks the bus slaves and peripheral (excluding memories)" Please help me in Configuring the registers of MCG to get the desired configuration of Clock for DAC. Reference Manual :https://www.nxp.com/docs/en/reference-manual/K20P64M72SF1RM.pdf#page=155&zoom=100,0,0 refer to page 157 and 161

Labels (1)
0 Kudos
3 Replies

747 Views
nxf58904
NXP Employee
NXP Employee

Hi,

You can choose xx10 ,the max is 100Mhz,you can set it as 72mhz.

 

0 Kudos

765 Views
blessed1234
Contributor I

Thanks for the reply.But the link you shared does not contain support for MK20DX256xxx7

 

0 Kudos

772 Views
nxf58904
NXP Employee
NXP Employee

Hi,

The MCG comes out of reset configured for FEI mode.

This means bus has clock . At this moment , you can configure and use the DAC .

nxf58904_0-1610522730966.png

And here has SDK code for k20 .https://mcuxpresso.nxp.com/en/welcome

It includes the examples for K20.

 

0 Kudos