"Colossus- The Forbin Project" is a novel about a USA supercomputer that ends up talking to a similar computer in the USSR, and ultimately controlling the planet. Not sure about the collapse and rebirth of civilization.
In Anne McCaffrey's novels about the planet Pern, the humans eventually re-discover a massive computer that everyone has forgotten, which then assists them in recovering some of their past.