| Electronic accommodation detector is used for the aboard equip ment, and it haskinds of functions. Besides, the detector can also show the status of the signals by aliquid crystal display. The main function of the detector is to imitate the procedureof the engine’s starting. The goal of this thesis is to accomplish the design of thedetector.According to the index, modular is used to fulfill the detector’s functions. Asthe frame of the detector, fie ld bus is used in this design. By comparing severalkinds of field bus which is widely used, CAN bus is used for the design. CAN buscan make the detector’s structure uncomplicated, and the detector will have highreliability and response speed. Then the thesis puts forward the entire scheme.In this thesis, the detector is composed of controlling modular and functionmodular. STM32micro controller is chose to be the cornel of all modular. Based onthe capability of STM32micro controller, the thesis uses Programmable Smart LCDto communicate with users. Next the hardware circuits of all modular are designed.When designing the software, the thesis uses Designer to acco mplish the interfaceof PS-LCD. Before designing the software of the modular, this thesis stud ies theSTM32’s CAN communicating. Because STM32micro controller is the cornel of allmodular, and they communicate with each other by CAN bus.At last, the thesis puts forward the problem and the method to solve theproblem when debugging. Then this thesis tests the functions of the detector, andthe results show that the detector designed by this thesis can accomplish all therequired functions, and the precision is reasonable. |