Pages: [1]   Go Down
Author Topic: Hardware Serial Upload during use question  (Read 402 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

All,
Is it to be expected, that if I have a current stream into my Diecimilia on hardware 0/1, uploading a revised sketch will fail?

MHR
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Don't Panic
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, external circuitry driving (or even heavily loading) D0 or D1 will cause sketch upload to fail, these pins are used for communication with the bootloader by the USB interface via 1-10K resistors.
Logged

iDuino - MaxSerial - [url=http://spi

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

okay then, how will I be able to permatize my gps setup and still retain a serial buffer?

Thanks for helping a beginner.

MHR
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 572
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Software Serial to the resue!

http://www.arduino.cc/en/Reference/SoftwareSerial

Also AFsoftserial is popular. Download from here

http://www.ladyada.net/make/eshield/download.html
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This does not lead to data lost?  It was my understanding that only the hardware serial had a buffer, and that the software serial did not.  If I have more than enough code to fill the time it takes to cycle back through for a read, will this not lead to data lost?

I want to be able to record several serial devices, and a buffer seems important to me.


Please, correct me where needed.

MHR
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33304
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The hardware buffer on the serial I/O is only 1 byte. Also you will not be able to use several software serial input lines only one as it takes up all the processor time looking after the one.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Don't Panic
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The hardware buffer on the serial I/O is only 1 byte.
Yes, but it's serviced by an interrupt which fills a 128 byte buffer.
Logged

iDuino - MaxSerial - [url=http://spi

Pages: [1]   Go Up
Jump to: