cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F439/FMC Configuration for External DAC

lopezcontreras
Associate III

Dear all,

I am almost new to SMT32 world.

I would like to use FMC to write to an external DAC, Analog devices AD5447. I attach datasheet for easy reference. It is 12bit, 10Msps and parallel interface.

I am using Nucleo-F439ZI board and STM32CubeIDE to test this. I have configured FMC for NOR Flash/PSRAM/SRAM/ROM/LCD 1, Chip Select: NE1, Memory Type: SRAM, Address: 1 bit, data: 16 bits. I attached the whole project (format .zip) so anyone can have a look.

Just to write data I am using:

/* Write data to the SRAM memory */

    HAL_SRAM_Write_16b(&hsram1, DACAddress, aTxBuffer, BUFFER_SIZE);

I tryng to see the waveforms on an oscilloscope but I am not able to see any signal. Can anyone tell me if there is something missing or wrong?

Another question, I would like to write to the DAC on a 5Mhz base, which would the better address/data setup time and bus turn around? I dont see very clear the relation with the datasheet of the AD5447.

Thanks in advance,

Joaquin.

2 REPLIES 2
lopezcontreras
Associate III

Hello All,

I found a problem in my oscilloscope setup, so the I am able to see the signals.

Thanks anyway.

Regards,

Joaquin.

FWege.1
Associate III

I have a similar task here

Your code worked great for me – with one modification:

HAL_SRAM_Write_16b(&hsram1, DACAddress, aTxBuffer, BUFFER_SIZE);

HAL_SRAM_Write_16b(&hsram1, SRAM_BANK_ADDR, aTxBuffer, BUFFER_SIZE);

Regards,

Franz