Uno pin connection: Atmega16u2 & ATmega328P
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
On my Uno, I set up the HoodLoader2 (link below) so I can program both the ATMega16u2 and the ATmega328P. I can communicate between the two using the serial port. However, I need the serial port to communicate between the Uno and the PC. Can I communicate between the 328 and 16u2 using a common digital pin? All I need to communicate is a simple yes/no state, preferably in both directions. In other words: can I connect a digital pin (say 12) on the Uno to, say, PB1 pin on the 16u2's ICSP header, set pin 12 value to HIGH on the 328P, then read that state on the 16u2 via PB1? And vice versa, via another pair of pins? There's a Q that's close to what I want (link below) and the user there (@jsotola) seems to have the knowledge, but I can't comment under his comment, as I don't have 50 reputation.
HoodLoader2
Accessing digital pins from the ATMega16u2
arduino-uno pins atmega16u2
add a comment |Â
up vote
1
down vote
favorite
On my Uno, I set up the HoodLoader2 (link below) so I can program both the ATMega16u2 and the ATmega328P. I can communicate between the two using the serial port. However, I need the serial port to communicate between the Uno and the PC. Can I communicate between the 328 and 16u2 using a common digital pin? All I need to communicate is a simple yes/no state, preferably in both directions. In other words: can I connect a digital pin (say 12) on the Uno to, say, PB1 pin on the 16u2's ICSP header, set pin 12 value to HIGH on the 328P, then read that state on the 16u2 via PB1? And vice versa, via another pair of pins? There's a Q that's close to what I want (link below) and the user there (@jsotola) seems to have the knowledge, but I can't comment under his comment, as I don't have 50 reputation.
HoodLoader2
Accessing digital pins from the ATMega16u2
arduino-uno pins atmega16u2
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
On my Uno, I set up the HoodLoader2 (link below) so I can program both the ATMega16u2 and the ATmega328P. I can communicate between the two using the serial port. However, I need the serial port to communicate between the Uno and the PC. Can I communicate between the 328 and 16u2 using a common digital pin? All I need to communicate is a simple yes/no state, preferably in both directions. In other words: can I connect a digital pin (say 12) on the Uno to, say, PB1 pin on the 16u2's ICSP header, set pin 12 value to HIGH on the 328P, then read that state on the 16u2 via PB1? And vice versa, via another pair of pins? There's a Q that's close to what I want (link below) and the user there (@jsotola) seems to have the knowledge, but I can't comment under his comment, as I don't have 50 reputation.
HoodLoader2
Accessing digital pins from the ATMega16u2
arduino-uno pins atmega16u2
On my Uno, I set up the HoodLoader2 (link below) so I can program both the ATMega16u2 and the ATmega328P. I can communicate between the two using the serial port. However, I need the serial port to communicate between the Uno and the PC. Can I communicate between the 328 and 16u2 using a common digital pin? All I need to communicate is a simple yes/no state, preferably in both directions. In other words: can I connect a digital pin (say 12) on the Uno to, say, PB1 pin on the 16u2's ICSP header, set pin 12 value to HIGH on the 328P, then read that state on the 16u2 via PB1? And vice versa, via another pair of pins? There's a Q that's close to what I want (link below) and the user there (@jsotola) seems to have the knowledge, but I can't comment under his comment, as I don't have 50 reputation.
HoodLoader2
Accessing digital pins from the ATMega16u2
arduino-uno pins atmega16u2
arduino-uno pins atmega16u2
asked Aug 15 at 6:48
MrSparkly
344
344
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You could use from PB1 to PB3 from 16u2 (SCK, MOSI, MISO) wich are exposed to its ICSP.
Add a wire from one of them to your atmega328 :)
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
This is the original ATmega pin naming and stands forPort B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦
â mystery
Aug 15 at 8:54
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You could use from PB1 to PB3 from 16u2 (SCK, MOSI, MISO) wich are exposed to its ICSP.
Add a wire from one of them to your atmega328 :)
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
This is the original ATmega pin naming and stands forPort B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦
â mystery
Aug 15 at 8:54
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
add a comment |Â
up vote
3
down vote
accepted
You could use from PB1 to PB3 from 16u2 (SCK, MOSI, MISO) wich are exposed to its ICSP.
Add a wire from one of them to your atmega328 :)
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
This is the original ATmega pin naming and stands forPort B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦
â mystery
Aug 15 at 8:54
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You could use from PB1 to PB3 from 16u2 (SCK, MOSI, MISO) wich are exposed to its ICSP.
Add a wire from one of them to your atmega328 :)
You could use from PB1 to PB3 from 16u2 (SCK, MOSI, MISO) wich are exposed to its ICSP.
Add a wire from one of them to your atmega328 :)
answered Aug 15 at 7:01
Bouc
923
923
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
This is the original ATmega pin naming and stands forPort B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦
â mystery
Aug 15 at 8:54
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
add a comment |Â
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
This is the original ATmega pin naming and stands forPort B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦
â mystery
Aug 15 at 8:54
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
Thanks. What does "PB" stand for? Is this a "normal", digital pin, with HIGH and LOW states?
â MrSparkly
Aug 15 at 7:05
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
It means port B (PB1 physical pin 15 to PB3 pin 17). DonâÂÂt Know how hoddler name the pins :) here youâÂÂll fins the uno schematic arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
â Bouc
Aug 15 at 7:09
This is the original ATmega pin naming and stands for
Port B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦â mystery
Aug 15 at 8:54
This is the original ATmega pin naming and stands for
Port B, pin 1
. all the pins are separated into banks (ports) of 8 pins each. For pin functions, refer to the relevant datasheet: ww1.microchip.com/downloads/en/DeviceDoc/â¦â mystery
Aug 15 at 8:54
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
It seems that SCK MOSI and MISO correspond to D1, D2 and D3 (github.com/NicoHood/HoodLoader2/wiki/â¦) on the 16u2. And yes they are digital « normal ;) » pins
â Bouc
Aug 15 at 12:59
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f55314%2funo-pin-connection-atmega16u2-atmega328p%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password