--===============1831687300== Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Hi All, Another huh? I have noticed when I initialize EUSART 1 it transmits 8 bytes!!! I am using the ICD 2 to step thru the code below: Executing the 10th code line immediately causes the transmitter to send the following 8 bytes: 00 FF FA 2C 6A 04 FF F0 It also does this if I program the chip and run it without the ICD. Init_USART1 MOVLW 9 ; For the Baud Rate 921.6 Kbaud. Set_Baud_1 MOVWF SPBRG1 ; Set the Baud Rate Generator. BCF TXSTA1, TX9 ; <6> Select 8 bit transmission. BSF TXSTA1, TXEN ; <5> Enable the transmitter. BCF TXSTA1, SYNC ; <4> Select Asynchronous mode. BSF TXSTA1, BRGH ; <2> Select High Speed BRGH. ; BSF BAUDCON1, BRG16 ; <3> Set 16 bit Baud Rate Gen. mode. BCF BAUDCON1, WUE ; <1> Disable Wake Up. BCF BAUDCON1, ABDEN ; <0> Disable Auto-Baud. ; BSF RCSTA1, SPEN ; <7> Serial Port enabled. <--- It sends the 8 bytes... BCF RCSTA1, RX9 ; <6> Select 8 bit reception. BSF RCSTA1, CREN ; <4> Enable receive mode. The curious thing is the chip has 2 EUSARTS and the second one does not do this, with the identical code. Tom * | __O Thomas C. Sefranek WA1RHP@ARRL.NET |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41MHz PL74.4 ARRL Instructor, Technical Specialist, VE Contact. http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 3/30/2008 12:32 PM --===============1831687300== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --===============1831687300==--