Apple (NASDAQ:AAPL) suppliers Invensense (NYSE:INVN) and Texas Instruments (NASDAQ:TXN) have gone in completely opposite directions over the past 12 months. Invensense, which makes motion sensors for the iPhone and other devices, lost nearly 50% of its market value. Texas Instruments, which produces IC chips, display drivers, and other components for iOS devices, rallied more than 40%.

Why did these two chipmakers have such wildly diverging fortunes? Let's examine their core businesses, growth trajectories, and valuations to find out.

How do Invensense and Texas Instruments make money?

Invensense sells most of its sensors to two customers -- Apple and Samsung. In fiscal 2016, 40% of its revenue came from Apple and 16% came from Samsung. This means that the ongoing decline in iPhone and iPad shipments hurts its core business, while sluggish sales of smartphones and tablets worldwide exacerbate that pain.

Image source: Apple.

Invensense's motion sensors seemed like a natural fit for the Apple Watch, since they were already used in many other smartwatches, but Apple chose STMicroelectronics' (NYSE:STM) sensors instead. That move fueled concerns that Apple would eventually dump Invensense for STMicro in other devices like the iPhone and iPad.

Texas Instruments is a much larger and diversified chipmaker than Invensense. The company supplies analog and embedded chips to the industrial, automotive, personal electronics, communication equipment, and enterprise systems markets. Apple is a major customer, but its orders only accounted for 11% of the company's revenue last year. Falling iOS device sales hurts TI, but that decline has been partly offset by content share gains within the iPhone, and growth in other markets like connected cars.

How fast are Invensense and Texas Instruments growing?

Analysts haven't expected much growth from Invensense due to its aforementioned problems. That's why its 43% annual decline in revenue to $60.6 million last quarter still beat estimates by $0.35 million. Its non-GAAP net loss of $0.05 per share, down from a profit of $0.14 a year earlier, also beat expectations by a penny. On the bright side, its non-GAAP gross margin rise of 46% represents an improvement from 45% in both the previous and prior year quarters.

Looking ahead, Invensense expects its revenues for the current quarter to fall 26% to 31% annually. Non-GAAP net earnings should turn positive at $0.02 to $0.04 per share, but that still represents a steep decline from its earnings of $0.16 a year ago. Analysts expect Invensense's revenue to fall 23% and its earnings to plummet 76% for the full year.

Texas Instruments fared much better last quarter. Revenue rose 1.2% annually to $3.27 billion, beating estimates by $70 million. Net earnings rose 17% to $0.76 per share, topping expectations by three cents. Gross margin hit 61.2%, thanks to the lower cost of its 300-millimeter analog manufacturing process, up from 58.2% a year ago. TI attributed that stable growth to robust demand in the automotive, industrial, and communications market offsetting weaker growth in personal electronics.

Image source: Texas Instruments.

For the current quarter, TI expects its revenue to rise just over 1% at the midpoint of its guidance, and for its earnings per share to rise 7% to 20%. Analysts believe that TI's sales will stay roughly flat for the full year, but its earnings (boosted by buybacks) will rise about 8.5%.

Shareholder value and valuations

Invensense doesn't repurchase any stock or pay a dividend due to its weak cash flow and lack of profitability. Texas Instruments, however, usually tries to pay back 100% of its free cash flow (which rose 7% annually last quarter) to its shareholders via buybacks and dividends. TI has reduced its share count by 41% since 2004, raised its dividend annually for 12 consecutive years, and currently pays a forward annual yield of 2.1%.

TI currently trades at 24 times earnings, which is slightly higher than the industry average of 22 for the broad line semiconductor industry. Analysts currently expect TI to grow its annual earnings at about 10% over the next five years, which gives it a 5-year PEG ratio of 2.3.

Invensense is no longer profitable, so its trailing P/E has turned negative. However, analysts believe that the chipmaker's earnings could rise 20% per year over the next five years. Even if it hits that target (which could be tough considering the current headwinds), it would still end up with a higher PEG ratio of 2.9 -- meaning that it's still pricier relative to its earnings growth potential than TI.

The winner: Texas Instruments

The choice between Invensense and TI is an easy one. Invensense is a top-heavy supplier which is highly dependent on a single customer. To make matters worse, that customer could eventually dump it if bigger rivals like STMicro offer better prices. TI is a well-diversified chipmaker with steady growth, a decent valuation, and a solid record of buybacks and dividends -- which all make it a much better buy in my book.

This article represents the opinion of the writer, who may disagree with the “official” recommendation position of a Motley Fool premium advisory service. We’re motley! Questioning an investing thesis -- even one of our own -- helps us all think critically about investing and make decisions that help us become smarter, happier, and richer.