DAC clock configuration K20 MCU

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

DAC clock configuration K20 MCU

1,167 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
Reply
3 Replies

1,123 Views
nxf58904
NXP Employee
NXP Employee

Hi,

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

 

0 Kudos
Reply

1,141 Views
blessed1234
Contributor I

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

 

0 Kudos
Reply

1,148 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
Reply