At 07:47 PM 12/23/99 -0600, you wrote: > Does anyone know of a code sample to encode and decode an >Ethernet LAN protocol. I will be writing such a routine over the next >couple of days, If snipetts were available, I would be able to save much >time, and spend more time with the family for Christmas. Help if you >can.. By the way MERRY CHRISTMAS to the Piclist and a very happy >new (Y2K) Year. I hope Know body gets bit by the Y2K BUG.... Gordon >Varney My apologies, I should be more specific about what I am >looking for. I have a data stream that is coming in on one I/O pin of >a 16F876. I would like to encode the data stream into a Manchester >codeing format simular to Ethernet LAN, send it over a 10 base T coax >and decode it at the other end. No special hardware Just PIC to PIC. >None of the Protocol jiberish just the raw Manchester code where as the >data and a clock is sent to the other controller, and decoded with the >data intact with a seperate clock output. Gordon Varney > So you don't actually need to be ethernet 10baseT compatible but you would like similar speed and distance, would like it to work over twisted pair, and want the clock and data combined in one signal? You don't have to support multiple nodes - just between two PICs. OK, well....I have no idea! Glad to be of help - and Merry Christmas! ;) But if you don't mind relaxing it a bit you could use you're UART or SSP, with RS-232/422/485 drivers. That would get you 5Mbit pretty easily (using SSP), and you would actually be able to see your family too. :)