How to Generate Analog Signals Using 12bit DAC MCP4921 and STM32 || Proteus Simulation

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 11

  • @Hulktolle
    @Hulktolle 3 місяці тому +1

    How many hz can it generate?

    • @theembeddedthings
      @theembeddedthings  3 місяці тому

      Hey there! 👋 Thanks for your question!
      The frequency of the square wave depends on the speed of the SPI communication and how fast the microcontroller can send updates to the DAC. The MCP492X can handle up to a 20 MHz SPI clock, so theoretically, you could generate signals up to 10 MHz. But in practice, with code execution time and other factors, you're likely looking at frequencies in the kHz to lower MHz range.
      If you're aiming for a specific frequency, adjusting the SPI clock and optimizing the code will give you better control. Let me know if you need more details on how to tweak it! 🔧📊

  • @nicolas_cn
    @nicolas_cn 2 місяці тому +1

    Hey, can you make a post on your blog with the code please?

    • @theembeddedthings
      @theembeddedthings  2 місяці тому

      Absolutely! I'll get the code posted on my blog soon. I'll share the link once it's up. Thanks for the suggestion!

  • @hassanhussein8795
    @hassanhussein8795 3 місяці тому +1

    can u put the files in a repo or something like that

    • @theembeddedthings
      @theembeddedthings  3 місяці тому

      Thanks for asking! The source code will be shared in an article on my blog very soon. In the meantime, don't forget to subscribe and smash that like button-it really helps me stay motivated to keep bringing you more content like this!

    • @hassanhussein8795
      @hassanhussein8795 3 місяці тому +1

      @@theembeddedthings sorry but can u make this today because I need this in a project just I work on it

    • @hassanhussein8795
      @hassanhussein8795 3 місяці тому

      And my dac doesn’t work and doesn’t know why

    • @theembeddedthings
      @theembeddedthings  3 місяці тому

      ​@@hassanhussein8795 Sorry, I can't get it done today, but if you send me your project files, I'd be happy to take a look and help you out!

    • @hassanhussein8795
      @hassanhussein8795 3 місяці тому

      @@theembeddedthings how can I send u the files