How to understand the SPI problem of PIC24F MCP4725 and MCP3424?

General discussion on mikroElektronika website & forums.
Post Reply
Author
Message
Tessie Swift
Posts: 1
Joined: 31 Jul 2021 08:46

How to understand the SPI problem of PIC24F MCP4725 and MCP3424?

#1 Post by Tessie Swift » 18 Aug 2021 07:33

Hi, everyone. I use PIC24F04KA200 as a guitar pedal. I use ADC and DAC mcp4725 and mcp3424. I have some questions to ask.
First, If another SPI module is addressed, the ADC MCP4725 will not work. Now, I process a code in ADC and DAC at the same time as a job. Does anyone know why the ADC does not respond after receiving the CLK pulse, and the CS of the MCP4725 is 1? Do I need to add a resistor somewhere?
Next, The Adc that goes directly to the DAC sounds like a bit breaker, in other words, the spi update frequency is far from fast enough. The SPI settings are: Read and write code is: I do call routines and move the input to output. So in the datasheet of MP4725, it means 50ksps@2.7V and runs at 3.3V. The table shows that CLK can also reach 8000khz. The MCP3424 datasheet claims to support a 20Mhz clock. So do I have a chance to make it work faster and make other spi devices work like ram modules?
Here is the product article for your reference if you need,
https://www.utmel.com/components/mcp472 ... ons?id=264
Many thanks for waiting for your help.
Yours sincerely,
TS

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

Re: How to understand the SPI problem of PIC24F MCP4725 and MCP3424?

#2 Post by Thomas.Pahl@t-online.de » 28 Aug 2021 10:00

There is not much information about your project - but a few thoughts: perhaps you use timer interrupt routine with 44.1 Khz or similar. There is not too much time. When i do audio projects i use spi for both sides input and output (or dac and adc on µC chip). i2c (mcp4725) is not that fast and can hang up.

Post Reply

Return to “Website & Forums General Discussion”