Sajjadkhan
Full Member level 5
- Joined
- Sep 25, 2010
- Messages
- 307
- Helped
- 17
- Reputation
- 34
- Reaction score
- 16
- Trophy points
- 1,298
- Location
- Rawalpindi,Pakistan
- Activity points
- 4,199
- some crosstalk can't be avoided in mixed-signal chips
- with your limited equipment, you'll face difficulties to determine for sure if the signal is actually present at the analog pin or just a measurement artefact. Let's assume for the time being that it's real.
- a low interference mixed signal design requires other techniques than a single layer PCB with cm long thin ground traces. You have to accept some level of "noise" with your kind of boards.
As a cross-check, it would be interesting to determine the ADC value variation with PWM off. There may be an addtional problem of unsuitable ADC operation parameters (clock, acquisition time). If the problem turns out to be mostly caused by external interferences, averaging and digital filtering can be still a way.
yep spikes gone when pwm is off. i guess the noise/spikes are generating internally so you cant do any thing from outside.
How many samples i have to average to have good filtering?