Hi Xiangjun,
Sorry, but my first email was not clear.
The final application I'm working on, is a PowerLine Communications application (PLC).
I'm using a daughter board, plugged on the FRDM-K64F board to send data on the power line or read data
from the power line.
The data transmission speeds are 400 KHz or 1.2 MHz. These are standards.
The data to be sent, in the final application, will not be a sinus table of 16 points but a large data table
(thousands of points).
I need to to program an hardware interrupt at the period of 400 KHz (or 1.2 MHz).
For now, I have configured the PIT timer, the PDB and the DAC to do so, but my program is not optmize because
I need to write the data in the DAC FIFO one by one.
To save time, I would have like to program the PBD to use the "DAC interval trigger output" mechanism as it is described
in the section 39.4.3 of the K64 Sub-Family Reference Manual.
As the FIFO DAC size is 16, I have tried unsuccessfully to program the MOD register value of the PDB to 8,
and the DAC Trigger interval to 1 to generate a PDB interrupt only after 8 DAC hardware triggers and to fill half
of the FIFO during this PDB interrupt.
That is why I have enabled the buffer read pointer of the DAC (DACBFEN). I thought, that the buffer read pointer
of the DAC would have been updated during the hardware trigger.
But, it looks like that the buffer read pointer of the DAC FIFO always remains to the first word of the FIFO.
This is what I have tried to illustrate in the test program I have send in my previous email.
Thanks again for your help on this topic.
Best Regards
Nadine