Narrative:

At FL400; all lights on MCP flashed and autopilot and autothrottle kicked off. Aircraft dipped and rolled right. MCP completely failed and autopilot and autothrottle continued to cycle on and off. Every time they cycled; aircraft would roll and pitch to grab whatever MCP thought was in it. Declared an emergency; diverted to ZZZ with no pitch trim. Rest of flight uneventful besides having to muscle aircraft a bit.

Google
 

Original NASA ASRS Text

Title: B757 flight crew experiences an MCP failure at FL400 resulting in erratic autopilot and autothrust operation and failure of the horizontal stabilizer trim. Flight diverts to the nearest suitable airport.

Narrative: At FL400; all lights on MCP flashed and autopilot and autothrottle kicked off. Aircraft dipped and rolled right. MCP completely failed and autopilot and autothrottle continued to cycle on and off. Every time they cycled; aircraft would roll and pitch to grab whatever MCP thought was in it. Declared an emergency; diverted to ZZZ with no pitch trim. Rest of flight uneventful besides having to muscle aircraft a bit.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.