Using the DAC with DMA on Teensy 3.1

Hi folks,
I am using a Teensy 3.6 overclocked at 240 MHz (by modifying the kinetis.h file) and attempting to output specific sine wave frequencies using an LUT with 128 entries and DMA using @ferdinandkeil code.
I have a minor question regarding setting the sine wave frequency - Does the PDB_PERIOD need to be an integer? For instance, if I would like to output a frequency of 60KHz, then the PDB_PERIOD would need to be (120MHz/(128*60KHz) - ) = (15.625 - 1). If I were to use this fractional scaler, would the processor just round the number to the nearest integer ((16-1) in this example) and output a frequency corresponding to that scaler (58,593.75KHz in this example)?
I would appreciate any insights / suggestions / comments.
Thank you for your time!
 
Back
Top