Funny how quickly trends can flip-flop. Last year, solar power was all the rage and solar wafers were worth their weight in bottom-line profits. SunPower (NASDAQ:SPWRA) and First Solar (NASDAQ:FSLR) were flying high on wings of processed silicon. Boring old semiconductor chips didn't share that pizzazz, so trusty blue chips like Intel (NASDAQ:INTC) and Texas Instruments (NYSE:TXN) were scraping along at ground level.

Fast-forward to the Great Panic of 2008, in which worldwide infrastructure investments crashed and burned on a lack of investment capital, leading to an oversupply and resulting price reduction. That event seemed to hit solar investors much harder than traditional chip chasers: Intel and TI have both rebounded to where they were late last September, while the solar stocks are still licking their wounds.

And then there's MEMC Electronic Materials (NYSE:WFR), straddling the fence between making sun-power cells and shipping raw materials into the chip sector. The company's second-quarter report continues to tell the story of two markets.

Sales jumped 32% from the first quarter, landing at $283 million. Still, that's only about half of the year-ago revenue stream. The good news here is the company’s report of "significantly higher wafer volumes for semiconductor applications," while prices dropped across the board.

Last year, the raucous solar industry supported a 53% gross margin; now, that metric has recovered from a heart-stopping 9.2% last quarter to a slightly healthier 12.3%. To put that depressing trend into perspective, the notoriously low-margin grocery store industry has averaged gross margins in the low 20s over the last five years. Single-digit gross takes are no way to make a healthy living.

MEMC's saving grace is its rock-solid balance sheet. Its $1.3 billion of cash equivalents and investments generated enough interest to push a red-ink operating margin back into the black on the bottom line. The company held on to a big chunk of change during the fat years rather than sinking it all into more manufacturing capacity. That strategy is paying dividends today, while MEMC waits for the solar power trend to reignite.

And of course, the semiconductor segment is doing its part again. MEMC's chip-wafer factories ran at a measly 30% of full capacity in the first quarter, but are now up to over 60% utilization again. Two of MEMC's biggest wafer customers -- Taiwanese chip foundries Taiwan Semiconductor Manufacturing (NYSE:TSM) and United Microelectronics (NYSE:UMC) -- are reporting earnings later this week. I smell drastic order volumes, sales, and profits all over Taiwan.

Further Foolishness:

Start investing today – just $7 per trade with Scottrade. Or find the broker that’s right for you.

First Solar is a Motley Fool Rule Breakers recommendation. Intel is a Motley Fool Inside Value recommendation. Try any of our Foolish newsletters today, free for 30 days.

Fool contributor Anders Bylund owns shares in Taiwan Semi, but he holds no other position in any of the companies discussed here. You can check out Anders' holdings or a concise bio if you like, and The Motley Fool is investors writing for investors.