Rafael R. Lizardi
Senior vice president and chief financial officer, Finance and Operations at Texas Instruments
Thanks, Dave, and good afternoon, everyone. As Dave mentioned, second quarter revenue was $5.2 billion, up 14% from a year ago. Gross profit in the quarter was $3.6 billion or 70% of revenue. From a year ago, gross profit margin increased 240 basis points.
Operating expenses in the quarter were $836 million, up 2% from a year ago and about as expected. On a trailing 12-month basis, operating expenses were $3.2 billion or 17% of revenue. Restructuring charges were $66 million in the second quarter and are associated with the LFAB factory that we purchased in October of last year. Operating profit was $2.7 billion in the quarter or 52% of revenue. Operating profit was up 23% from the year-ago quarter. Net income in the second quarter was $2.3 billion or $2.45 per share.
Let me now comment on our capital management results, starting with our cash generation. Cash flow from operations was $1.8 billion in the quarter. Capital expenditures were $597 million in the quarter and $2.8 billion over the last 12 months. Free cash flow on a trailing 12-month basis was $5.9 billion. In the quarter, we paid $1.1 billion in dividends and repurchased $1.2 billion of our stock. In total, we have returned $6.2 billion in the past 12 months. Our balance sheet remains strong with $8.4 billion of cash and short-term investments at the end of the second quarter. We retired $0.5 billion of debt in the quarter. Total debt outstanding was $7.3 billion with a weighted average coupon of 2.7%. Inventory dollars were up $139 million from the prior quarter to $2.2 billion. And days were 125, down 2 days sequentially and below desired levels.
Accounts receivable for this quarter ended at $2.2 billion, up from $1.6 billion a year ago. This increase primarily reflects the higher proportion of shipments made near the end of the quarter as COVID-19 restrictions were lifted in China and customers began pulling product. For the third quarter, we expect TI revenue in the range of $4.9 billion to $5.3 billion and earnings per share to be in the range of $2.23 to $2.51. This outlook comprehends the weaker demand we see, particularly from customers in the personal electronics market. We expect our 2022 effective tax rate to be about 14%.
Lastly, we and our customers remain pleased with the progress of our expansion of manufacturing capacity, which was outlined in our February capital management call, and will support the long-term secular trend of increased semiconductor content per system. We broke ground on the Sherman manufacturing complex in May. And work continues at RFAB2 and LFAB to prepare for production output.
In closing, we will stay focused in the areas that add value in the long term. We continue to invest in our competitive advantages, which are manufacturing and technology, a broad product portfolio, reach of our channels and diverse and long-lived positions. We will continue to strengthen these advantages through disciplined capital allocation and by focusing on the best opportunities, which we believe will enable us to continue to deliver free cash flow per share growth over the long term.
With that, let me turn it back to Dave.