2005/10/17, Tom Sefranek : > Which PIC are you not able in include the whole alphabet? > I've never run out of code space... ever! Just to explain this: supposing an alphabet of 40 characters, a reasonable estimate for a 5*7 display would be 40*5=200 program memory words. Usually those are available (I ran out of program memory several times already, so I wouldn't say "ever") and if not, there are some clever compressions you can do to reduce it further (let me know if you need those). If you code each letter as an actual subroutine, you would consume a lot more space. A better design would be to use a table (Microchip AN556, I believe) and retrieve the five bytes needed for a character and output them accordingly. An example routine of the concept, which will probably not compile (I just wrote it in this Email): ; This function assumes the character to be in "Character5x7" ; and the desired line to be in "Line5x7" Get5x7VerticalLine banksel Character5x7 ; Make sure we talk about the right variable clrf STATUS,C ; Start multiplication by five rlf Character5x7,w ; Multiply by two movwf GVLine ; Store clrf STATUS,C ; Continue multiplication by five rlf GVLine,f ; Multiply by four movf Character5x7,w ; Continue multiplication by five addwf GVLine,f ; *2*2+1=5 movf Line5x7,f ; Add the desired line addwf GVLine,w ; W now contains location in memory pagesel CharacterTable ; Point to the character table movwf PCL ; Jump into the table ; This is the character table. Make sure that it starts on a 256 aligned ; boundary in memory. CharacterTable dt 127,9,9,9,127 ; A dt 127,73,73,79,120 ; B ... Note that I used "pagesel" here to select the upper bits of PCLATH used for table jumps, I'm not sure if pagesel actually does this. If not, you would have to manually set these bits. A similar construction could be used to send the actual message, saving space there too. Greetings, Maarten Hofman. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist