Unexpected and undocumented, but VERY welcome DAC behavior

Perhaps I'm still missing something, but it seems that the LPC1768 DAC has an undocumented feature allowing 8-bit writes to it's DACR. With 32-bit writes the 10-bit value is stored in bits 15:6 (as documented), but with 8-bit writes to DACR (not DACR+1), these 8 bits strangely move into the bits 15:8 of the DACR, becoming the most significant bits of the value. Excellent!

The real importance of this becomes obvious if one tries to stream data with DMA. This is also how I stumbled upon it.


Please log in to post comments.