If your code and sample output are correct then you are missing both a CR and an LF. It's been many years since I worked with ascii but I vaguely remember that a character or two delay is needed after an FF. I know it shouldn't matter these days but ... Jim > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Dan Devine > Sent: Sunday, December 21, 2003 3:55 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC:] Serial / Hyperterminal glitch > > > Thanks for the reply John, > > here's my code for you (and anyone else) to take a look at. > > I'm sure that it's pretty easy to spot, I'm just having a "brain-fade" > moment now....I'm really frustrated with with something that should be > easy to do. > > Why does Hyperterminal ignore the CR?....I can get it to look alright if > I select "add cr/lf at end of line" within Hyperterminal, but I'm > EXPLICITLY SENDING THEM, I shouldn't HAVE to select that!!!! Why are > they getting stripped out in the first place? > > > > #include /* for TRISB and PORTB declarations */ > #include > #include > #include > > #define BS 0x08 // Backspace > #define HT 0x09 // Horizontal tab > #define LF 0x0A // Linefeed > #define VT 0x0B // Vertical tab > #define FF 0x0C // formfeed > #define CR 0x0D // carrage return > > > > void main (void) > { > OpenUSART (USART_TX_INT_OFF & > USART_RX_INT_OFF & > USART_ASYNCH_MODE & > USART_EIGHT_BIT & > USART_CONT_RX & > USART_BRGH_HIGH, > 0x40); > > OpenTimer0 (TIMER_INT_ON & > T0_16BIT & > T0_SOURCE_INT & > T0_EDGE_RISE & > T0_PS_1_64); > WriteTimer0(56); > INTCONbits.GIEH = 0; //enable interrupts > TRISC = 0x00; > counter = 0; > > > while (1) > { > putcUSART (FF); > putcUSART (LF); > putcUSART (CR); > putcUSART (LF); > > putrsUSART ("Hello1"); > > putcUSART (LF); > putcUSART (CR); > putcUSART (LF); > > > putrsUSART ("Hello2"); > > putcUSART (LF); > putcUSART (CR); > putcUSART (LF); > > itoa (counter,buffer); > putsUSART (buffer); > > putcUSART (LF); > putcUSART (CR); > putcUSART (LF); > > > putsUSART (buffer2); > counter++; > > Delay10KTCYx(0xff); > } > } > > > > On Sat, 2003-12-20 at 23:38, John De Villiers wrote: > > On Sun, 2003-12-21 at 01:50, Dan Devine wrote: > > > Hello... > > > 12345 > > > Hello again.... > > > > > i think you gotta escape your cr+lf with a a ^[ ( char d'27' ) first. > > > > John > > > > -- > > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body