Thanks for your answer. The program sends continuous signals to the PC serial port. The PIC would not have to be real time. In other words if the PIC can be on a timer and gets the digits every minute then that's ok. I do not know how to have the PIC differentiate the two digits or read consecutive digits. The idea is basically this: I will have a program that does a query from database, the result is a number 0-99 and will send it to the serial port (PC). My project would involve a PIC picking this number and displaying it on the 2 LSDs. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Jinx Sent: Saturday, June 14, 2003 10:19 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC] 16F84 reading 2 digits from serial port > I wrote a program that sends a number (multiple digits) to the > serial port Of a PC ? > I am attempting to use the PIC 16F84 to retrieve this number > from the serial port Attempt to use the 16F628 (or anything more modern than the F84) if you can. It has a built-in serial port and would make your job easier (but there are serial routines for the F84 on the web). You'll need to be using a UART interface like the MAX232 to match the PIC to the PC (?) > display it on 22 LSD digits Like a 16x2 LCD display ? It's a fairly simple task and not much hardware is involved. Some more details would be helpful. For example, the digits will be available at the serial port one at a time. So the PC (?) waits while the PIC gets them - meaning a little handshaking is needed. Not very important, but are these ASCII characters, hex, other ? Is pick-up time important ? This could affect the speed you choose for the PIC. And so on......... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu