Hello, Sorry for the messy email message, I sent it from the webmail, and it has an error :( I tried to send it from Outlook, but the SMTP server is not functional at this time :( The code is written in C language for HiTech C Compiler, which is widely used, so I didn't considered necessary to mention. The operations for the initialisation of USART are basic, so the assembler code should be no problem, considering that other code (for LCD and keypad) compiled successfully. Could it be any problem if I connected Tx to Rx to test the code ? I should get the characters sent back to Rx and from there to LCD, but nothing arrives. Lucian -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Jan-Erik Soderholm XA (TN/PAC) Sent: 4 octombrie 2003 13:54 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: 16F628 USART Problem Lucian wrote: > I keep sending a desperate e-mail for help from this list, > and I receive the mail back, it cannot be sent. I hope this > one will pass :) It did :-) Didn't the return mail had some clear-text error message ? That should have told you what you did wrong. And you must have done *something* different with this mail, right ? > My problem is that I try to use the hardware usart of the > 16F628, but it doesn't seem to be working. [Code deleted] I have no idea what language you are using. it's clearly not MPASM like. You don't say, and I'm not going to guess. > From my point of view, the code is correct and it should function. Maybe, but you can never be 100% sure before you have checked the ASM code produced by whatever tool you uses. Then write a short "pure" ASM piece of code that does the same thing, and debug from that. Jan-Erik. PS. I'd sugest that you try to make sure that your lines are about 70 chars long, either by configuring your mail tool, or just simply by using the ENTER key now and then. That makes your posts much easier replying to... -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu