SAN FRANCISCO — Intel showed on Wednesday that it was grappling with one of the greatest transitions in its history: putting itself at the center of a world of computation.

The company, based in Santa Clara, Calif., is one of the largest makers of semiconductors, thanks to global demand for personal computers. Yet the PC business has steadily deteriorated as people have migrated to using mobile devices for computing. Intel reported on Wednesday that second-quarter revenue from chips for PCs fell 14 percent. For the year, Intel said PC chip sales would be lower than in 2014 by “the high single digits.” The decline was forecast at about 5 percent.

Intel has been working on making a new future for itself by investing more in chips for data centers and Internet-connected products for industry — and some of those investments are paying off. Sales of chips for data centers rose 10 percent from a year earlier. In total, data center, Internet of Things and high-level memory chip sales were 40 percent of revenue and 70 percent of profits.

Over all for the second quarter, Intel reported net income of $2.7 billion, or 55 cents a share. That was down $100 million from a year earlier, but was the same in per-share terms because Intel has bought back a lot of its stock. Net income was also lifted by a lower tax rate. Revenue fell 5 percent, to $13.2 billion.