Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Discussion Groups

Discussion Groups | Piclist | Serial com weirdness

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Serial com weirdness - holopoint.rm - Jul 27 6:03:00 2003


Hey all.
I have a PIC18F452 doing serial comm with my PC via one of it's UARTs.
I wrote a simple test program that outputs a char every second,
and echos serial input. I open up a terminal, chars are coming
in every second, key strokes are echoed, all is well.
Until I try to send a bunch of chars quickly, like pressing
keys very fast. The first 5-8 chars get through (are echoed) and
the rest are ignored, they simple do not arrive at the PIC,
nor does any other key pressed after that. It's like I chocked
the UART and killed it. Only a reset fixes the problem.
Any ideas why this is happening ?





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

RE: Serial com weirdness - Wouter van Ooijen - Jul 27 6:10:00 2003

> It's like I chocked
> the UART and killed it. Only a reset fixes the problem.
> Any ideas why this is happening ?

- are you sure the problem in't on the PC side?
- when sending fast, do you wait for the UART buffer to be empty?

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: www.voti.nl
consultancy, development, PICmicro products





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Serial com weirdness - holopoint.rm - Jul 27 6:41:00 2003

--- In , "Wouter van Ooijen" <wouter@v...>
wrote:
> > It's like I chocked
> > the UART and killed it. Only a reset fixes the problem.
> > Any ideas why this is happening ?
>
> - are you sure the problem in't on the PC side?
> - when sending fast, do you wait for the UART buffer to be empty?
>
> Wouter van Ooijen
>
Aha !
Good point, no, no waiting on the PC side.
Tommorow's headlines,
"buffer overflow kills UART"

Thanks.




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )