0

I have to do a project for my Uni, where one of the requirements is to connect DAC (AD5721 - Datasheet) with STM32F405RGT6 (Datasheet - package : LQFP64). My project so far

This is what I have so far (DAC connected with REF02) and now I have a problem how should I connect STM with DAC. The only thing I found is that STM has pins PA4 and PA5 that can be used as DAC_OUT and I'm stuck since then.

Next thing I'm supposed to do after this is to connect JTAG(IDC20) and RS232 to STM. I haven't tried anything with it yet since I need to solve previous problem first but if it's not a trouble I would also like to get some tips about this stuff too.

Long Pham
  • 1,260
  • 1
  • 11
  • 21
SecondEnd
  • 1
  • 2

1 Answers1

1

From the data sheet of DAC:

Data is written to the AD5761/ AD5721 in a 24 -bit word format via a 4 -wire digital interfac e that is serial peripheral interface (SPI ) compatible . The devices also offer an SDO pin to facilitate daisy -chaining and readback.

One would need to connect SPIx_MOSI, SPIx_MISO, SPIx_NSS (chip select) and SPIx_SCK. depending on other functional requirements any of the multiple SPI modules present in MCU can be chosen.

Word of caution i see that the DAC is 5 V device but logical communication (SPI) voltage can be set to variable voltage. Since, the MCU can be operated only upto 3.3 V, please set the value of DVCC of DAC pin to same as VDD pin of MCU. Both should have same supply voltage level.


JTAG is pretty easy and straight forward:

New debug connectors for ARM


ALso, refer to the Nucleo boards from ST for some connections (JTAG, especially) you will get a fair idea. It also helps in other interfaces. Read the datasheet too for the features and alternate functions supported.

User323693
  • 9,151
  • 4
  • 21
  • 50
  • SPI_NSS is not strictly needed, one can use any GPIO under software control to do the chip select (and for some slaves the NSS pin under hardware control will not work, but it can be switched to GPIO of course) – Arsenal Jun 09 '18 at 21:33
  • @arsenal I totally agree with the latter part. Switching the NSS to GPIO part in case. – User323693 Jun 10 '18 at 04:47