A serial interface and bias supply for the Seiko-Epson G1216N000 using an AT90S2313 because there just aren't enough applications examples for this display on the web. The display is a pretty old transflective gray mode TN LCD design with ok, but not great contrast. Its contrast is better than the screen shot above. The display's saving grace is that appeared to meet all of the primary criteria. The code to drive it was complicated somewhat by the fact that the 8 bit interface appears as two 64x64 displays for the left and right hand sides, and since I was determined to control it with an AT90S2313, I was a pin short of being able to have separate select pins for the left and right displays, and so implemented a Right/Left control pin, which produced some artifacts in the display, and avoiding these made it necessary to carefully code around them. The controller was implemented with an AT90S2313, but it could have been done with an AT90S1200 and a firmware UART simulation since code is pretty small and doesn't rely on the RAM or timers that an AT90S2313 provide. The hardware needs to drive the data and control lines of the Seiko-Epson module, supply an adjustable negative bias voltage and + 5 volts to the module, and provide inverting buffers for the RS-232 interface.
The inverting RS-232 takes its negative supply from the host. The negative supply could have come from the LCD bias circuit (see below) but the handy thing about this circuit was that its output swung negative when connected to my RS-422 computer and only swung down to a little above ground when it was driven by the CMOS I/O port in the host on the waveform capture circuit that I connected it to after debugging.
The negative bias supply was generated by making 5V peak-to-peak pulses and using them to drive a 5 stage half-wave voltage multiplier and regulating the output with an opamp. The half-wave doubler is terribly inefficient using diodes for switch such a low voltage as each doubling of the 5 volts lost nearly half of it in the diodes, but I have a lot of diodes and miniature capacitors and wanted to pass the power signal through a single 5 volt regulator to minimize the exposure of the internal circuitry to accidental hazardous voltages on the cable. A single chip switched capacitor power supply would have reduced the parts count quite a bit.
The reference for the adjustable negative bias supply is the regulated +5 volt supply. The PNP and NPN saturating switches can be 2N2907 and 2N2222. The 330 Ohm resistor from the base of the PNP to +5V is necessary because the NPN emitter follower in the NE555 output stage cannot pull the output high enough to assure the PNP will shut off when the output is high.
More about the firmware: After reset, the screen is erased, a line is drawn from the upper-left corner to the middle of the bottom edge, then another from there to the upper-right corner, which looks similar to a large letter "V" spanning the display. This is a visual indication that the display and serial controller are up and running. Its default is ASCII input mode, in which commands and the locations of dots to be written are received in ASCII- real nice for debugging with a terminal. Communications are at 19200 baud, 1 stop bit, no parity. The display can be switched to binary mode input, and in this mode commands and x,y coordinates are received as binary values, which is not easy to test with a terminal, but takes only half the transmission time to write a dot on the screen.
The ASCII conversion takes place within the GetASCIIorBinary routine, which returns a binary value regardless of whether the display is in the binary or ASCII input mode. If in the ASCII input mode, it also ignores commas, allowing it to graph comma delimited spreadsheet files.
The Epson documentation refers to the long axis as the Y axis and the coordinate 0,0 as being the upper-left corner of the screen (the latter is conventional for graphics systems). The driver converts this such that the coordinates 0,0 corresponds to the lower-left corner and 127,63 corresponds to the upper-right corner, which conventional for graphing.
The bits in a received byte (whether received as two characters in ASCII mode or a single byte in byte mode) are used according to the following rules:
Bit 7, if set, indicates that the byte is a command to be interpreted as one of the instructions listed below.
Bit 6 is the most significant bit of the Y address or 0 if it is an X address.
Bit 5 through 0 are the lower 5 bits of the X and Y addresses.
Four commands are supported by the serial controller:A serial interface and bias supply for the Seiko-Epson G1216N000 using an AT90S2313 because there just aren't enough applications examples for this display on the web. The display is a pretty old transflective gray mode TN LCD design with ok, but not great contrast. Its contrast is better than the screen shot above. The display's saving grace is that appeared to meet all of the primary criteria. The code to drive it was complicated somewhat by the fact that the 8 bit interface appears as two 64x64 displays for the left and right hand sides, and since I was determined to control it with an AT90S2313, I was a pin short of being able to have separate select pins for the left and right displays, and so implemented a Right/Left control pin, which produced some artifacts in the display, and avoiding these made it necessary to carefully code around them.
The controller was implemented with an AT90S2313, but it could have been done with an AT90S1200 and a firmware UART simulation since code is pretty small and doesn't rely on the RAM or timers that an AT90S2313 provide. The hardware needs to drive the data and control lines of the Seiko-Epson module, supply an adjustable negative bias voltage and + 5 volts to the module, and provide inverting buffers for the RS-232 interface.
The inverting RS-232 takes its negative supply from the host. The negative supply could have come from the LCD bias circuit (see below) but the handy thing about this circuit was that its output swung negative when connected to my RS-422 computer and only swung down to a little above ground when it was driven by the CMOS I/O port in the host on the waveform capture circuit that I connected it to after debugging. The negative bias supply was generated by making 5V peak-to-peak pulses and using them to drive a 5 stage half-wave voltage multiplier and regulating the output with an opamp.
The half-wave doubler is terribly inefficient using diodes for switch such a low voltage as each doubling of the 5 volts lost nearly half of it in the diodes, but I have a lot of diodes and miniature capacitors and wanted to pass the power signal through a single 5 volt regulator to minimize the exposure of the internal circuitry to accidental hazardous voltages on the cable. A single chip switched capacitor power supply would have reduced the parts count quite a bit. The reference for the adjustable negative bias supply is the regulated +5 volt supply. The PNP and NPN saturating switches can be 2N2907 and 2N2222. The 330 Ohm resistor from the base of the PNP to +5V is necessary because the NPN emitter follower in the NE555 output stage cannot pull the output high enough to assure the PNP will shut off when the output is high.
More about the firmware:
After reset, the screen is erased, a line is drawn from the upper-left corner to the middle of the bottom edge, then another from there to the upper-right corner, which looks similar to a large letter "V" spanning the display. This is a visual indication that the display and serial controller are up and running. Its default is ASCII input mode, in which commands and the locations of dots to be written are received in ASCII- real nice for debugging with a terminal.
Communications are at 19200 baud, 1 stop bit, no parity. The display can be switched to binary mode input, and in this mode commands and x,y coordinates are received as binary values, which is not easy to test with a terminal, but takes only half the transmission time to write a dot on the screen. The ASCII conversion takes place within the GetASCIIorBinary routine, which returns a binary value regardless of whether the display is in the binary or ASCII input mode.
If in the ASCII input mode, it also ignores commas, allowing it to graph comma delimited spreadsheet files. The Epson documentation refers to the long axis as the Y axis and the coordinate 0,0 as being the upper-left corner of the screen (the latter is conventional for graphics systems).
The driver converts this such that the coordinates 0,0 corresponds to the lower-left corner and 127,63 corresponds to the upper-right corner, which conventional for graphing. The bits in a received byte (whether received as two characters in ASCII mode or a single byte in byte mode) are used according to the following rules:
Bit 7, if set, indicates that the byte is a command to be interpreted as one of the instructions listed below.
Bit 6 is the most significant bit of the Y address or 0 if it is an X address. Bit 5 through 0 are the lower 5 bits of the X and Y addresses. Four commands are supported by the serial controller: 🔗 External reference
High-voltage isolation switches must not be connected to loads that could create an arc, which may lead to a short circuit between the high-voltage bus and result in accidents that endanger both equipment and personnel safety. Consequently, high-voltage switchgear...
The circuit depicted is a large high-brightness LED driver designed to provide sufficient drive current, utilizing integrated circuits such as the 7447A or 74247. The digital display tube consists of eight light-emitting diodes, with seven dedicated to the digital...
Connecting a LCD display to your personal computer is an easy job. Displaying data from your PC to a LCD can be proven very exciting, so give it a try and build your own today! In this article, we...
A purchase was made of the EDE702 along with an LED-backlit LCD character display. After acquiring the EDE702, it was determined that it lacked sufficient integration with HD44780-compatible displays to justify its cost. However, utilizing it was preferable to...
This circuit is suitable for a small office or home environment. It can also be adapted to use a combination lock or keypad for setting and resetting.
The described circuit functions as a security system tailored for small office or...
The static display circuit is illustrated in Figure 6. The 74LS244 acts as bus drivers, and six figures represent a public bus, each equipped with an LED display latch (like the 74LS273) connected to the code for latching the...
We use cookies to enhance your experience, analyze traffic, and serve personalized ads.
By clicking "Accept", you agree to our use of cookies.
Learn more