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
Hi,
You can choose xx10 ,the max is 100Mhz,you can set it as 72mhz.
Thanks for the reply.But the link you shared does not contain support for MK20DX256xxx7
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 .
And here has SDK code for k20 .https://mcuxpresso.nxp.com/en/welcome
It includes the examples for K20.