KL02 DAC configuration

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

KL02 DAC configuration

Jump to solution
979 Views
albt
Contributor II


Hi everybody,

I am working with the FRDM-KL02Z and IAR as the Software Development Tool. I would like to generate a signal with a specific amplitude in one available pin of the board.

First of all, is it possible to configure the DAC in this board (FRDM-KL02Z)? And generate a signal with a required amplitude in an output pin?

If so, could you guide me to do this? I have seen many different examples for other MCUs, but not for the KL02Z.

Thanks in advance. 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
858 Views
mjbcswitzerland
Specialist V

Hi

The KL02 doesn't have a DAC. You can however use a PWM output with a filter to do something similar.

See http://www.utasker.com/docs/uTasker/uTaskerADC.pdf Appendix A-c, for example.

Unfortunately the KL02 also doesn't have DMA so any such signal needs to be generated in software, which makes it a lot less efficience, but it can of course be done.

Regards

Mark

View solution in original post

2 Replies
858 Views
xiangjunrong
Contributor IV

Hi, Andres,

I have checked the UM of KL02z, it seems that the Kl02z does not have DAC module. As you know that the CMP module includes a 6 bits DAC, but the DAC can only generate a reference voltage for CMP itself, the CMP internal DAC can not output to the KL02Z pad.

Hope it can help you.

BR

Xiangjun Rong

859 Views
mjbcswitzerland
Specialist V

Hi

The KL02 doesn't have a DAC. You can however use a PWM output with a filter to do something similar.

See http://www.utasker.com/docs/uTasker/uTaskerADC.pdf Appendix A-c, for example.

Unfortunately the KL02 also doesn't have DMA so any such signal needs to be generated in software, which makes it a lot less efficience, but it can of course be done.

Regards

Mark