Reading and writing to serial buffer

Is there one serial buffer (memory block) that is switching between SD card, GSM module and Serial monitor depending on what part of the programm you are in. Or are you dealing with different storage areas (memory blocks).
Thanks mulilo

there are different instances of a driver (object) for each interface. for example, the arduino mega has 4 serial interfaces and there are Serial, Serial1, Serial2 and Serial3. each interface has memory allocated for it

SD cards use a SPI interface, not UART Serial.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.