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.
Solved! Go to Solution.
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
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
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