Last Change |
HAT- Description & Operation |
Electronics |
|
This is currently a dumb terminal. All RS-232 communications are routed directly to the LCD except for the byte 0x1B (27 decimal, ESC. I will use 0xHH to specify hexadecimal number HH) and the byte which follows 0x1B. This command specifies that the next byte be sent to the LCD's instruction register. See one of the many LCD FAQs and tutorials for more information on the instructions the LCD can use. If you send 0x1B twice, then the HAT checks the temperature and sends the two-byte count back. To create the display below, the following is sent:
Some serial to LCD converter chips dumb down the interface so the user can't access the instruction and data registers. While most of the LCD functions are still available, I feel more comfortable working at the lower levels. I will, however, make one program which does that for those who don't like this kind of interface.
The only information that comes from the HAT now are key presses and the temperature. They are de-bounced, and sent as a byte to the computer, button 1 sending 0x01, button 2 sending 0x02, etc. When a key is pressed, it sends the key once.
See the book Serial Pic'N for info on serial communications on the PIC. Great book!.
[News] [Description] [Operation] [Future] [Pictures] [Code] [Schematic] [I want one!]
Everything on/in this site is copyright
Adam Davis, 1999-2000, except where otherwise noted
[an error occurred while processing this directive]