KL03 DAC output pin for signal generation

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

KL03 DAC output pin for signal generation

跳至解决方案
1,584 次查看
raff5184
Contributor II

Hi,

I have a very basic question. I want to generate a signal with the FRDM-KL03 board and give this generated analog waveform say to some external circuit.

I am using KDS software and following the ADC uTasker guide (page 12).

Now, the Kinetis SDK Application User Guide says that: "Normally, the DAC0_OUT is internally connected to the ADC0_SE23 (DAC0_OUT is a source of ADC0_SE23),".

So, is the output of the DAC going in input to the ADC? 

And if I want to "see" the generated signal, to which jumper on the FRDM-KL03 board should I connect? From the KL03 Sub-family manual (table page 99) it seems to be the J4-PTA9? But I am not sure. I mean I tried but I could not see the waveform

Thank you

1 解答
1,439 次查看
mjbcswitzerland
Specialist V

Hi
 
The KL03 has a 6 bit DAC in its comparator module and its output is not available on an external pin:

pastedImage_1.png

There is no 12 bit DAC as many other parts have which can be used for such functions.

However, what you can do is use a PWM output with an RC filter to generate an analogue output signal or waveform.


Regards

 

Mark

 


uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html

在原帖中查看解决方案

3 回复数
1,439 次查看
raff5184
Contributor II

Thank you Mark,

also would it be possible to do something like that with the GPIO? 
Basically I only need to generate a periodic square wave at very low frequencies, not even a sinusoid.

Thank you

0 项奖励
回复
1,439 次查看
mjbcswitzerland
Specialist V

Hi

You can generate square wave outputs (or PWM) with the TPM.
If you prefer to do it with timer interrupts toggling an GPIO output you can do it from the SYSTICK, TPM, PIT etc.

Regards

Mark

 


uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html

0 项奖励
回复
1,440 次查看
mjbcswitzerland
Specialist V

Hi
 
The KL03 has a 6 bit DAC in its comparator module and its output is not available on an external pin:

pastedImage_1.png

There is no 12 bit DAC as many other parts have which can be used for such functions.

However, what you can do is use a PWM output with an RC filter to generate an analogue output signal or waveform.


Regards

 

Mark

 


uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html