This is a multi-part message in MIME format. ------=_NextPart_000_0058_01C292D5.2EB55400 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit > I once created a 3x5 character set for my TRS 80 Model 100 laptop, to > get more characters onto its 64 x 240 LCD -- 10 lines of 80 characters, > instead of the default 8 lines of 40 characters. It was fairly readable, > but vvveeerrryyy ssslllooowww because I was plotting the characters > point-by-point from BASIC. I never got around to making an > assembly-language driver for it. This would have been around 1985. > > -- Dave Tweed Attatched are some snippets of 16C923 source code for driving a 7 segment LCD display. This includes a table of segment patterns for each ASCII character that I thought would be sufficiently recognizable, and blanks for everything else. It became handy to look at the table to create limited status messages. For example, you can spell out "Err", "On", "OFF", "UP", "dn", "Hot", "CoLd" and a bunch of other words with a little cleverness. ------=_NextPart_000_0058_01C292D5.2EB55400 Content-Type: text/plain; name="x.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x.txt" ; LCD pixel data for each digit of the display. The bit numbers ; correspond to segments: ; ; ---0--- ; | | ; 5 1 ; | | ; ---6--- ; | | ; 4 2 ; | | ; ---3--- 7 ; ; Bit 7 is the decimal point, and is not present on the first (least ; significant) digit. A 1 value in a bit causes that segment to be ; displayed. ; Table to convert ASCII character codes to LCD pixel data for one = 7-segment ; digit. Not all character codes can be displayed. These are = returned ; as if they were blanks. The table index is the 0-127 ASCII code. ; table_pix dt b'00000000' ;00 dt b'00000000' ;01 dt b'00000000' ;02 dt b'00000000' ;03 dt b'00000000' ;04 dt b'00000000' ;05 dt b'00000000' ;06 dt b'00000000' ;07 dt b'00000000' ;08 dt b'00000000' ;09 dt b'00000000' ;0A dt b'00000000' ;0B dt b'00000000' ;0C dt b'00000000' ;0D dt b'00000000' ;0E dt b'00000000' ;0F dt b'00000000' ;10 dt b'00000000' ;11 dt b'00000000' ;12 dt b'00000000' ;13 dt b'00000000' ;14 dt b'00000000' ;15 dt b'00000000' ;16 dt b'00000000' ;17 dt b'00000000' ;18 dt b'00000000' ;19 dt b'00000000' ;1A dt b'00000000' ;1B dt b'00000000' ;1C dt b'00000000' ;1D dt b'00000000' ;1E dt b'00000000' ;1F dt b'00000000' ;20 dt b'00000000' ;21 ! dt b'00100010' ;22 " dt b'00000000' ;23 # dt b'00000000' ;24 $ dt b'00000000' ;25 % dt b'00000000' ;26 & dt b'00000010' ;27 ' dt b'00111001' ;28 ( dt b'00001111' ;29 ) dt b'00000000' ;2A * dt b'00000000' ;2B + dt b'00000100' ;2C , dt b'01000000' ;2D - dt b'10000000' ;2E . dt b'00000000' ;2F / dt b'00111111' ;30 0 dt b'00000110' ;31 1 dt b'01011011' ;32 2 dt b'01001111' ;33 3 dt b'01100110' ;34 4 dt b'01101101' ;35 5 dt b'01111101' ;36 6 dt b'00000111' ;37 7 dt b'01111111' ;38 8 dt b'01101111' ;39 9 dt b'00000000' ;3A : dt b'00000000' ;3B ; dt b'00000000' ;3C < dt b'01001000' ;3D =3D dt b'00000000' ;3E > dt b'01010011' ;3F ? dt b'00000000' ;40 @ dt b'01110111' ;41 A dt b'01111100' ;42 B dt b'00111001' ;43 C dt b'01011110' ;44 D dt b'01111001' ;45 E dt b'01110001' ;46 F dt b'00000000' ;47 G dt b'00110110' ;48 H dt b'00000100' ;49 I dt b'00011110' ;4A J dt b'00000000' ;4B K dt b'00111000' ;4C L dt b'00000000' ;4D M dt b'01010100' ;4E N dt b'01011100' ;4F O dt b'01110011' ;50 P dt b'00000000' ;51 Q dt b'01010000' ;52 R dt b'00000000' ;53 S dt b'01001110' ;54 T dt b'00111110' ;55 U dt b'00000000' ;56 V dt b'00000000' ;57 W dt b'00000000' ;58 X dt b'01110010' ;59 Y dt b'00000000' ;5A Z dt b'00111001' ;5B [ dt b'00000000' ;5C \ dt b'00001111' ;5D ] dt b'00000000' ;5E ^ dt b'00001000' ;5F _ dt b'00100000' ;60 ` dt b'01110111' ;61 a dt b'01111100' ;62 b dt b'01011000' ;63 c dt b'01011110' ;64 d dt b'01111001' ;65 e dt b'01110001' ;66 f dt b'00000000' ;67 g dt b'01110100' ;68 h dt b'00000100' ;69 i dt b'00011110' ;6A j dt b'00000000' ;6B k dt b'00111000' ;6C l dt b'00000000' ;6D m dt b'01010100' ;6E n dt b'01011100' ;6F o dt b'01110011' ;70 p dt b'00000000' ;71 q dt b'01010000' ;72 r dt b'00000000' ;73 s dt b'01001110' ;74 t dt b'00011100' ;75 u dt b'00000000' ;76 v dt b'00000000' ;77 w dt b'00000000' ;78 x dt b'01110010' ;79 y dt b'00000000' ;7A z dt b'00111001' ;7B { dt b'00110000' ;7C | dt b'00001111' ;7D } dt b'00000000' ;7E ~ dt b'00000000' ;7F ------=_NextPart_000_0058_01C292D5.2EB55400-- ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads