Kinetis DAC hardware triggering

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

Kinetis DAC hardware triggering

664 Views
philwoods
Contributor I

I'm having issues getting the DAC to work via hardware triggering using the PDB.  I'm using the MKV31F512.  I've had the DAC running fine using software triggering, but get no output on the DAC trying to trigger via hardware using the PDB output with PIT0 trigger input to the PDB using PDB interval trigger 0.  In the debugger the PDB0 peripheral register does not populate, making it difficult to see what's going on.  Any insight would be appreciated.  Code is attached.

Original Attachment has been moved to: main.c.zip

Labels (1)
2 Replies

372 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Phil,

Based on your requirement, I developed an example with TWR-KV31F120M without SDK, it works fine, I  update the DAC value in PDB delay interrupt routine.

Hope it can help you

BR

Xiangjun Rong

372 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Phil Woods

Please check the following post:

Using PIT channel 0 as a PDB trigger input source 

Here are some recommendations for PIT as PDB trigger. I saw in your code that you have enable continuous mode in PDB, when PIT trigger PDB, PDB will trigger DAC according to PDB INT count. Do you need to synchronize the your PDB with PIT, or why do you need to use PIT in your application?

I also recommend you to check the following post:

K22F DAC trigger documentation 

PIT, PDB to trigger DAC 

They could help you in your final application and understanding PDB module.

Best Regards

Jorge Alcala

0 Kudos