KL02 DAC configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KL02 DAC configuration

ソリューションへジャンプ
1,439件の閲覧回数
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 解決策
1,318件の閲覧回数
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 返答(返信)
1,318件の閲覧回数
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

1,319件の閲覧回数
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