I have a project that involves putting the microcontroller to sleep while an SPI slave will still have power. It's a long story to explain why but it's essentially to save the space/cost/weight required to completely cut power to the slave because of the way the entire thing is powered. The slave draws an acceptably low amount of current in this configuration so everything is OK in that regard.
However, the sleep mode I need to put the micro in will cause the CLK/MOSI pins to float. I'm pretty sure this will end up causing the slave to read occasional noise as data which I can't allow to happen. My question is this: Can I just put a high value (10k?) pull-down resistor on SCK/MOSI to keep the lines from floating when the micro is asleep? I'm running SPI at 21MHz in Mode 0 so low is idle and signal shape is pretty important at that speed. I just don't know if this is commonly done or if I'm doing something that would be considered a crappy hack.
Any input would be appreciated! Thanks in advance.
EDIT: If this is bad and there's a better approach you can think of I'd love to hear it. This is just the best thing I've thought of so far. -?-