Thomas Thorsen wrote: > > Hello everybody > > Has anybody got some routines for sending data to a computer via a serial > port, using the PIC16F84. I need to send values between 0 and 255, and as > far as i know this is ANSI instead of ASCII wich only permits 7 bit values > (0-127). I have a simple routine for sending characters but i don't know if > it can send values higher than 127. Then this tutorial may be just what you need.It covers a lot of ground: Need RS-232 routines for PICmicros without UARTs? Basic Stamp Compatible PIC Source Book/Disk On-Line Version Free! Now converted to MicroChip Code, still available in Parallax Code. A collection of ready-to-use assembly language routines based on the instruction set of the BASIC Stamp ¨ single-board computer by Scott Edwards Electronics. Serin (receive data) receives a byte or string of bytes serially. Optionally filters incoming data to a particular range of ASCII characters, such as numbers. Serin (convert # data) converts a numeric text string received by Serin into a 16-bit number. Serin (check qualifiers) determines whether text received by Serin matches a table of qualifiers (password). Serout (send data) transmits a byte or string of bytes serially Serout (format # data) converts a 16-bit number into a counted string for transmission by Serout. Includes useful schematics. For MicroChip code: http://www.dontronics.com/convert.html For Parallax code: http://www.dontronics.com/see.html Don McKenzie mailto:don@dontronics.com http://www.dontronics.com World's Largest Range of Atmel/AVR and PICmicro Hardware and Software. Free Basic Compiler and Programmer http://www.dontronics.com/runavr.html