Hi all,
I experience a strange behaviour with my project and I need some help to continue my investigation.
The project (see picture) :
- Was conceived and built entirely by me
- Has the following power rails : VD3, VC3, VSD, are 3.3V; VD5 is 5V. They are all regulated by Micrel LDO regulators powered by a main 6VDC, 3A supply;
- Has the following devices (and their power sources) : MCU (VD3), 4 CPLDs (VD3), SD Card (VSD), USB Module (VD5), 2 Audio DACs (VD3, VC3), LCD (VD3), Keypad (none), Real Time Clock (VD3), Beeper (VD5), and an interface for an extension device (octal transceivers on VD5);
- The PCB is a 4 layer PCB that was designed by me and manufactured professionally by Eurocircuits.com. The inner layers are one ground place (no sections) and one power plane (divided in sections for each power rail);
- Most chips are surface mount that I hand soldered.
The problem :
- First of all, let's say that, overall, the project is indeed working ! All the devices are performing properly and the project is actually usable to do what I want;
- But there is an instability that cause glitches once in a while; most of the time it's benign. Occasionally, it disrupt my USB communication.
The symptoms :
- I first noticed the problem because the LED backlight of my LCD was flickering. The backlight is 60mA and powered from the LCD power source which is VD5. It is controlled from one of the CPLD through a MOSFET transistor. The CPLD generates a PWM signal so I can control the intensity of the backlight (4 intensity from OFF to fully ON). I see the flickering all all intensities, the dimmest being the worst;
- When I connect my logic probe to the VD5 power rail, it picks up glitches and voltage variation from its power supply and beeps, even though the tip is not probing anything. The "rythm" of the glitchy beeps matches the LCD backlight flickers;
- Both the LCD backlight flickering and logic probe glitches are mild when my system is idle. They become severe when the system is at full capacity (reading from SD, transmitting/receiving USB, playing audio, controlling external device);
- When I monitor the voltage of the VD5 rail with my voltmeter (I unfortunately do not have a scope !), it fluctuates from 4.96V when my system is idle down to 4.80V when the system is running. The regulator never gets hot AT ALL. It is rated at 500mA but should not have to deliver more than around 200mA (USB rated at 75mA, LCD at 2.5mA + 60mA for bakclight, octal transceiver at 15mA x 2, beeper disabled in this case, logic probe at 20mA). All other 3.3V rails remains stable at approx 3.29V no matter what. Main power supply never goes below its rated 6V;
- Once in a while my USB module (on VD5) stop working and/or goes out of sequence and looses a byte causing either my project or the host PC to wait infinitely for the missing byte. This is the only major problem. The above issues, although annoying, are not causing malfunctions;
- The external device on the other side of the octal transceivers has its own 5V power and do not seem to be affected at all by the fluctuation on the transceivers VD5 power rail (although it might be the one drawing excess current from the transceiver... but then again, I'v seen the problem even when the external device is off !).
The question :
- So my guess is that something somehow is sometime causing a short or is drawing excess current on that VD5 power rail. But I failed to find what so far... And I do not know how to tackle the problem... So any suggestion at all would be more than welcome !!
Thanks for reading and helping !!!
TechnoGilles
I experience a strange behaviour with my project and I need some help to continue my investigation.
The project (see picture) :
- Was conceived and built entirely by me
- Has the following power rails : VD3, VC3, VSD, are 3.3V; VD5 is 5V. They are all regulated by Micrel LDO regulators powered by a main 6VDC, 3A supply;
- Has the following devices (and their power sources) : MCU (VD3), 4 CPLDs (VD3), SD Card (VSD), USB Module (VD5), 2 Audio DACs (VD3, VC3), LCD (VD3), Keypad (none), Real Time Clock (VD3), Beeper (VD5), and an interface for an extension device (octal transceivers on VD5);
- The PCB is a 4 layer PCB that was designed by me and manufactured professionally by Eurocircuits.com. The inner layers are one ground place (no sections) and one power plane (divided in sections for each power rail);
- Most chips are surface mount that I hand soldered.
The problem :
- First of all, let's say that, overall, the project is indeed working ! All the devices are performing properly and the project is actually usable to do what I want;
- But there is an instability that cause glitches once in a while; most of the time it's benign. Occasionally, it disrupt my USB communication.
The symptoms :
- I first noticed the problem because the LED backlight of my LCD was flickering. The backlight is 60mA and powered from the LCD power source which is VD5. It is controlled from one of the CPLD through a MOSFET transistor. The CPLD generates a PWM signal so I can control the intensity of the backlight (4 intensity from OFF to fully ON). I see the flickering all all intensities, the dimmest being the worst;
- When I connect my logic probe to the VD5 power rail, it picks up glitches and voltage variation from its power supply and beeps, even though the tip is not probing anything. The "rythm" of the glitchy beeps matches the LCD backlight flickers;
- Both the LCD backlight flickering and logic probe glitches are mild when my system is idle. They become severe when the system is at full capacity (reading from SD, transmitting/receiving USB, playing audio, controlling external device);
- When I monitor the voltage of the VD5 rail with my voltmeter (I unfortunately do not have a scope !), it fluctuates from 4.96V when my system is idle down to 4.80V when the system is running. The regulator never gets hot AT ALL. It is rated at 500mA but should not have to deliver more than around 200mA (USB rated at 75mA, LCD at 2.5mA + 60mA for bakclight, octal transceiver at 15mA x 2, beeper disabled in this case, logic probe at 20mA). All other 3.3V rails remains stable at approx 3.29V no matter what. Main power supply never goes below its rated 6V;
- Once in a while my USB module (on VD5) stop working and/or goes out of sequence and looses a byte causing either my project or the host PC to wait infinitely for the missing byte. This is the only major problem. The above issues, although annoying, are not causing malfunctions;
- The external device on the other side of the octal transceivers has its own 5V power and do not seem to be affected at all by the fluctuation on the transceivers VD5 power rail (although it might be the one drawing excess current from the transceiver... but then again, I'v seen the problem even when the external device is off !).
The question :
- So my guess is that something somehow is sometime causing a short or is drawing excess current on that VD5 power rail. But I failed to find what so far... And I do not know how to tackle the problem... So any suggestion at all would be more than welcome !!
Thanks for reading and helping !!!
TechnoGilles