Hello Kiran,
I think you can refer to the demo code under PE project :
create one k64 project on KDS, only select Processor Expert , do not select KSDK,
then add DAC_LDD component , right click it , select "help on component ":

About the KSDK+PE project , the theory is the same .
You can through change the time of interrupt to change the frequency .
Hope it helps
Alice