Connected devices and secure communications drove the chip veteran to a solid second-quarter earnings surprise.