KL02 DAC configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL02 DAC configuration

跳至解决方案
750 次查看
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. 

标签 (1)
标记 (1)
0 项奖励
1 解答
629 次查看
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

在原帖中查看解决方案

2 回复数
629 次查看
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

630 次查看
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