The Embedded Bathroom Control System is an autonomous system using
a 68HC11 microcontroller in its heart. It has several temperature
captors, humidity captor and presence captor. It displays on an LCD
panel the time, date, temperature, humidity and other information.
It controls the bathroom fan and light.
Since EBCS is installed in the bathroom, and to help in the development
of the software, I wrote a simulator program that simulate EBCS completely.
The simulator is composed of two parts:
The Gtk frontend and the 68HC11 simulator communicate and synchronize
themselves using two mechanisms:
- A shared memory segment is used to represent the I/O ports
- A TCP/IP connection is used to synchronize the CPU with the frontend
when the CPU writes on an output port.
The CPU always reads input ports in an asynchronous manner, that is, it
never waits for the frontend to give the information. Synchronisation
only occurs when the CPU changes an output port.
The screen shot below shows the simulator window with EBCS 0.6 running.
The Gtk frontend was designed using Glade, the Gtk window editor.
||Add light simulation, fix some problems, includes gdb-5.2
patch for Ebcs<->Gdb HC11 simulator connection
||First version; simulate LCD, buttons, fan and connects to