Searching \ for '[PIC]: Reading serial data with 16F84' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=serial
Search entire site for: 'Reading serial data with 16F84'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Reading serial data with 16F84'
2002\09\04@161754 by Eric Wade

picon face
This question deals with programming the 16F84 in C code.

I am new to the PIC microcontroller. I have done some simple introductory
level programs (i.e. flashing leds...). I have also checked the archives
and a number of references, but still have not been able to find specific
examples of how to read a serial data stream.

Functionality:
Specifically, I need to read in a serial "data stream", which is just a
sequence of ones (5V) and zeros (0V). (The data stream is generated by the
analog output of a PC DAQ board).  The reading should be triggered by the
leading edge of the data stream. The data must then be stored in a buffer.
Based on the order and values of these bits, I need to be able to output
various voltage levels from some of the RB ports. It would be nice to be
able to read the data into the RA4 to take advantage of the schmitt
trigger, this is not critical.

Question:
Can someone give me a good reference, or help me with the code to read and
buffer the input data?

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\09\04@191640 by Clayton Mellina

picon face
       Perhaps you should used another chip that has a hardware USART so you don't
have to bit-bang (if the C compiler you are using does not have serial
routines built in).  Take a look at the 16f628.

       Here is a website that has a bit-banging routine for the 16f84:
http://www.dontronics.com/psbpix/serin1.html

However, I don't know if this is any help because it is in assembly.

Good luck!


{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...