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