Yeah, the penny pinching attitude still sticks. I remember there was = some other reason I didn't use the hardware UART on this chip, but I = can't remember what is was.... But there are plenty of pins, shouldn't = be too tough to move them around.=20 -- Lawrence Lile, P.E. Electrical and Electronic Solutions Project Solutions Companies www.projsolco.com > -----Original Message----- > From: Matt Pobursky [mailto:piclist@MPS-DESIGN.COM] > Sent: Friday, August 20, 2004 12:02 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC:] Architecture for serial comms in C >=20 > On Fri, 20 Aug 2004 09:34:29 -0500, Lawrence Lile wrote: > > So here is the architecture question: To interrupt or poll? Put = the > > RX line and interrupt on PortB,0, and use the "external interrupt"? > > Move it all back to a hardware UART, and use that as an interrupt > > source? Or poll it all the time with kbhit() ? How do other people > > approach this? >=20 > Since you are out of the "squeeze every penny till it screams" = consumer > world, make life easy on yourself and just use an interrupt driven > hardware serial port. I know it's a tough attitude to break (been = there > and done that myself, having designed consumer gear in the past also). >=20 > Virtually all of my designs now have a hardware serial port whether > required or not that can be used for diagnostics and testing. The > difference in pin count and cost of a slightly more capable PIC is > usually a good tradeoff in development time and aggravation. You also > get very little performance hit on the interrupt driven hardware > method. One other thing I also like to do is make sure I've got an > upgrade path to a larger memory PIC of the same footprint/family type > if at all possible. You can develop with the larger part and move down > to a smaller one for production if cost is an issue. You can also move > UP in production if your client/boss etc. decides to add more software > "features" after the initial design. Bet that's never happened to > anyone, right? ;-) >=20 > Matt Pobursky > Maximum Performance Systems >=20 > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics >=20 > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 >=20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 =20 -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics