Pages: [1]   Go Down
Author Topic: Checking on which pins to use for SoftwareSerial library  (Read 236 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 103
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Arduino experts,

I would like to know which are the pins I can use for SoftwareSerial library. I am using Atmega328. Can I use digital pins 10 and 11? Both pins support PCINT interrupt. Am I right to assume that as long as the pins support PCINT, they can be used for SoftwareSerial library? SoftwareSerial uses interrupt.

Thank you.
Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Arduino experts,

I would like to know which are the pins I can use for SoftwareSerial library. I am using Atmega328. Can I use digital pins 10 and 11? Both pins support PCINT interrupt. Am I right to assume that as long as the pins support PCINT, they can be used for SoftwareSerial library? SoftwareSerial uses interrupt.

Thank you.

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

From Idea To Invention

texas
Offline Offline
God Member
*****
Karma: 27
Posts: 862
old, but not dead
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Arduino experts,

I would like to know which are the pins I can use for SoftwareSerial library. I am using Atmega328. Can I use digital pins 10 and 11? Both pins support PCINT interrupt. Am I right to assume that as long as the pins support PCINT, they can be used for SoftwareSerial library? SoftwareSerial uses interrupt.

Thank you.

I recommend using 8 and 9.  It will be easier to switch to AltSoftSerial later on if you have trouble.
Logged

Experience, it's what you get when you were expecting something else.

Offline Offline
Full Member
***
Karma: 1
Posts: 103
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Arduino experts,

I would like to know which are the pins I can use for SoftwareSerial library. I am using Atmega328. Can I use digital pins 10 and 11? Both pins support PCINT interrupt. Am I right to assume that as long as the pins support PCINT, they can be used for SoftwareSerial library? SoftwareSerial uses interrupt.

Thank you.

I recommend using 8 and 9.  It will be easier to switch to AltSoftSerial later on if you have trouble.

Thanks a lot. You probably have saved me a lot of trouble.
Logged

Pages: [1]   Go Up
Jump to: