------=_Part_7610_10958785.1115027426251 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am having problems with my PIC16F87 USART. I am using async comms with it, and it seems to be doing something right, as it keeps sending something, at the correct interval. Unfortuneately, in hyperterminal, it only comes up with a lot of hearts and spaces. I check out the capture file in hex, and it says the data is all 03hs and 0FFhs. I think something is going wrong with the code, so the clock is going correctly, but the actual data line isn't working. I am trying to send the letter A (ascii 65). I am running the PIC on a PICDem 4 board, which included a "RS232 level shifting IC". Also, I am using an MPLAB ICD2 for programming and debugging. I have attached a copy of the asm file, with many comments. BTW, I am trying to use a baud rate of 9600, and I think the clock is a 20MHz one, but I'm not sure. The osc config bit is EXTRC-OSC2 as clock out. Thanks soo much for any help. BTW2, for some reason a smily face also just apeared in hyperterm ------=_Part_7610_10958785.1115027426251 Content-Type: application/octet-stream; name="serialUSART.asm" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="serialUSART.asm" CQlpbmNsdWRlCQkiQzpccGljc3R1ZmZcYXNtXDE2Rjg3XHN0dWZmZXJ5LmluYyIJOyBhbiBpbmNs dWRlIGZpbGUgd2l0aCBsb3RzIG9mIGFsaWFzZXMgZm9yDQoJCQkJCQkJCQk7IExFRFMgYW5kIGJ1 dHRvbnMuICBjb250YWN0IG1lIGZvciBhIGNvcHkNCmluaXQyCQk7IGluaXRpYWxpc2F0aW9uLCBw YXJ0IGRldXgNCg0KcmNzdGEJCWVxdQkJMThoDQp0eHJlZwkJZXF1CQkxOWgNCnR4c3RhCQllcXUJ CTk4aAk7IG15IG93biBkZWZpbml0aW9ucyBvZiBzb21lIGtleSBVU0FSVCBsb2NhdGlvbnMNCnNw YnJnCQllcXUJCTk5aA0KDQpkZWxheW51bTEJZXF1CQkyMWgJOyBzb21lIEdQUnMgZm9yIG15IGRl bGF5IGZ1bmN0aW9uDQpkZWxheW51bTIJZXF1CQkyMmgNCg0KCQltb3ZsdwkJMGgNCgkJbW92d2YJ CWRlbG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VyJ3Mgb24p DQoNCg0KDQoJCQ0KCQliYW5rc2VsCQlUUklTQQkJOyBob3BlZnVsbHkgc2VsZWN0IGJhbmsgMQ0K CQlic2YJCXR4c3RhLDUJCTsgZW5hYmxlIHNlbmRpbmcNCgkJYmFua3NlbAkJUE9SVEEJCTsgaG9w ZWZ1bGx5IHNlbGVjdCBiYW5rIDAgYWdhaW4NCg0KbG9vcAkJbW92bHcJCWQnNjUnCQk7IGxvYWQg ZGF0YQ0KCQltb3Z3ZgkJdHhyZWcJCTsgYW5kIHNlbmQgaXQNCg0KCQljYWxsCQlkZWxheQ0KCQlj YWxsCQlkZWxheQkJOyBtYWtlIGEgZGVsYXkNCgkJY2FsbAkJZGVsYXkJCQ0KDQoJCWdvdG8JCWxv b3AJCTsgZ290byBsb29wIGFib3ZlLCB0byByZXNlbmQgdGhlIGRhdGENCgkJDQoJCQ0KCQkNCgkJ DQpkZWxheQkJbW92bHcJCTBGRmgNCgkJbW92d2YJCWRlbGF5bnVtMQ0KZGVsYXlsb29wMQljYWxs CQlkZWxheTIJCTsgbWVzc3kgYW5kIHVnbHkgZGVsYXkgZnVuY3Rpb24NCgkJZGVjZnN6CQlkZWxh eW51bTEsZg0KCQlnb3RvCQlkZWxheWxvb3AxDQoJCXJldGx3CQkwaA0KCQkNCmRlbGF5MgkJbW92 bHcJCTBGRmgNCgkJbW92d2YJCWRlbGF5bnVtMgk7IG1lc3N5IGFuZCB1Z2x5IGRlbGF5IGZ1bmN0 aW9uDQpkZWxheWxvb3AyCWRlY2ZzegkJZGVsYXludW0yLGYJOyBwYXJ0IGRldXgNCgkJZ290bwkJ ZGVsYXlsb29wMg0KCQlyZXRsdwkJMGgNCgkJDQoNCg0KCQlFTkQJCQkJOyBlcyBmaW5pdA0K ------=_Part_7610_10958785.1115027426251 Content-Type: text/plain; name="capture.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="capture.txt" A/8D/wP/A/8D/wP/A/8D/wP/A/8D/wP/A/8D/w== ------=_Part_7610_10958785.1115027426251 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_Part_7610_10958785.1115027426251--