On Mon, Aug 05, 2002 at 10:47:37PM -0400, Sivaram M Cheekiralla wrote: > Hi, > > I need some help regarding the UART feature in 16F877. I need to send a > byte of data over the serial port to the PC(just for the sake of > implementing UART). I am using a 11.0592 MHz crystal oscillator. While I should offer an Olinlike response "Go do your own homework!" I'm feeling generous because I finally got my Perl program to download my Yahoo E-mail working.... > > 1. DO I need to use a MAX232 driver or can I directly connect to the > serial port(DB 9) pins(TX and RX). Well you cannot directly connect due to incorrect polarities and voltages (CMOS 1 is 5V and 0 is 0V while RS232 1 is -12V and 0 is 12V) there is always debate as to whether a MAX232 is required. I always keep it simple: it works when I use it, so I use it. > 2. I have a windows PC. How can I read the serial port ? I mean if I send > the data from the PIC, how can I know what data I am receiving etc. > Are there any programs or s/w ? A properly configured Hyperterminal will do the job. You myst set the correct bit rate and disable all dialing and flow control. BAJ -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads