Go Down

Topic: accessing the serial buffer on arduino uno (Read 108 times) previous topic - next topic

Mujyy

Can the serial buffer be accessed through any digital pins on the Arduino uno, or is it only accessed via the UART(pins 0 and 1)? For example, this article says the following:

Quote
Get the number of bytes (characters) available for reading from the serial port. This is data that's already arrived and stored in the serial receive buffer (which holds 64 bytes). available() inherits from the Stream utility class.
https://www.arduino.cc/en/Serial/Available


Robin2

You can't "access" the serial buffer through any pins. Pins 0 and 1 are connected to the USART that receives and transmits data. But the data has already passed through the USART by the time it is stored in the input buffer.

The usual way to get data from the input buffer is Serial.read().

Have a look at Serial Input Basics

If you explain what you want to do we may be able to give a more useful answer.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy