By Allison Prang

Analog Devices Inc.'s profit fell in the second quarter, but was better than analysts expected.

Profit at the company fell 27%, to $267.7 million. Earnings were 72 cents a share, down from 98 cents a share.

Adjusted earnings were $1.08 a share, up from $1.36 a share. Analysts' consensus for results was $1.03 a share, FactSet said.

Revenue fell 14%, to $1.32 billion, and slipped in all categories, but fell the most in the company's communications and automotive segments where it fell more than 20%. Revenue slightly missed analysts' consensus,

Analog said in late March that it was speeding up production of healthcare technologies to fight the Covid-19 pandemic.

Write to Allison Prang at allison.prang@wsj.com