The invention provides a multifunctional controller based on a single-
chip microcomputer dsPIC33EP512MC806. The multifunctional controller is provided with 19 on-off inputs, 6 analog inputs, 5 counter inputs, 18 on-off outputs and 6 PWM outputs and provided with LINKPORTs, RS232 and 485 communication interfaces through which the multifunctional controller can communicate with an upper computer and can be in
cascade connection with a lower computer. The multifunctional controller further has the advantages of
chip protection,
signal isolation,
interference resistance,
miniaturization, high reliability, low cost, simple
software programming and rapid grasping. The multifunctional controller can be used for automatic
smoke alarming of indoor space such as residents, hotels and offices, and can automatically
control room temperature and give out anti-theft alarms and remotely and wirelessly control household appliances through a
mobile phone. The multifunctional controller can further serve as an experimental platform for the single-
chip microcomputer application technology in undergraduate teaching of institutions of higher learning, can be used for design and manufacture of a small application
system, can be sold in an external member form, can be used for professional skill competitions, curriculum design, graduation design and the like, and can achieve control over multiple functions and research and development of scientific research projects.