Abstract:Aiming at the requirement of high fidelity simulation for UUV, an embedded Hardware-in-the-loop UUV simula- tor is designed. The XMC4800 is selected as the main control chip. The minimum system and communication interface circuit are designed. The data flow graph and the main software algorithms are given, including task scheduling algorithm, task priority de- sign, UUV model selection, disturbance model selection and CAN application layer protocol design. The simulator has a variety of working modes. It completes the corresponding Hardware-in-the-loop simulation according to different application scenarios. The simulator has certain reference value for the development, production and use of UUV.