I havent used a CD4053 before and i'm not sure if i read the datasheet correctly, If anyone would be able to review my drawing and find my mistakes before i get it made i would be extreamly greatful. I have this habit of everytime I make a board for the 1st time it has issues that I need to fix.
Each IC (both MCP23S08s, the LM358s, and the CD4053) needs a 100 nF decoupling capacitor right at the power pins. Missing or distant decoupling is one of the most common mistakes. Triple check SCK, SDI, SDO, and especially the two separate CS lines. If CS is wrong or floating, the expanders will behave unpredictably. Also make sure unused I/O pins aren't left floating. On a single supply, the LM358 can't swing all the way to the rails. Your amplitude and phase conditioning stages need to stay within its input common mode and output swing limits, or you’ll get clipping or distortion. CD4053 can only switch signals that stay strictly within its supply rails. If you're feeding it any kind of bipolar AC, or anything referenced below ground, it won't behave correctly. Make sure the AC going through the switch is low‑voltage and already conditioned so it never exceeds the CD4053's VDD/VEE range. Make sure the A/B/C select pins and INH are all tied to defined logic levels. INH floating is a classic source of random switching. Keep analog ground (op‑amps, AC path) and digital ground (SPI, expanders) from sharing long thin traces. Tie them together at a solid point to avoid injecting digital noise into the analog path.
