@[email protected]@me
- Dec 15, 2016
- 81
- Joined
- Dec 15, 2016
- Messages
- 81
Hello all 
Working again on the MAX7219chip to control 4 7-seg displays. I'm using an ESP8266, and as the MAX7219 is not CMOS compatible, I'm also using a level shifter (bought on the Internet, somewhere)
The ESP8266 is controlling the max7219 using the SPI at a frequency of 100 kHz (through the level shifter, which is largely fast enough at this frequency), and is now just enabling the test mode during startup.
However, doing measurements, I noticed that the MAX7219 is creating a LOT of noise in the clock, chip select and data in pins (and possibly the LED driving pins, but I didn't measure them). See this capture:

Yellow is CS, purple is clock and blue is data. At this capture, nothing is sent through the SPI interface. If I unplug the CS wire on the max7219 side, the noise completely disappear. I tried adding a decoupling cap at the CS pin, and the square noise became wavy noise, but still noise. the cap is a ceramic 20nF. If I put the same capacitor at the Vcc pin of the MAX7219, the noise stays the same.
I guess that my capacitor is not... capacitive enough, and I just could try different ones here, but I prefer to be able to compute which one to use, so next time I can fix noise faster without having to try several capacitors.
I will then ask 2 questions here:
- why adding a capacitor at Vcc does not fix the problem at all?
- how do I compute which capacitance I need using this capture ? the smallest squares are 5 µs long (200Khz frequency), and the amplitude is about 1.04V (I would say 1V) according to my cursors.
Working again on the MAX7219chip to control 4 7-seg displays. I'm using an ESP8266, and as the MAX7219 is not CMOS compatible, I'm also using a level shifter (bought on the Internet, somewhere)
The ESP8266 is controlling the max7219 using the SPI at a frequency of 100 kHz (through the level shifter, which is largely fast enough at this frequency), and is now just enabling the test mode during startup.
However, doing measurements, I noticed that the MAX7219 is creating a LOT of noise in the clock, chip select and data in pins (and possibly the LED driving pins, but I didn't measure them). See this capture:

Yellow is CS, purple is clock and blue is data. At this capture, nothing is sent through the SPI interface. If I unplug the CS wire on the max7219 side, the noise completely disappear. I tried adding a decoupling cap at the CS pin, and the square noise became wavy noise, but still noise. the cap is a ceramic 20nF. If I put the same capacitor at the Vcc pin of the MAX7219, the noise stays the same.
I guess that my capacitor is not... capacitive enough, and I just could try different ones here, but I prefer to be able to compute which one to use, so next time I can fix noise faster without having to try several capacitors.
I will then ask 2 questions here:
- why adding a capacitor at Vcc does not fix the problem at all?
- how do I compute which capacitance I need using this capture ? the smallest squares are 5 µs long (200Khz frequency), and the amplitude is about 1.04V (I would say 1V) according to my cursors.