Dual MCU - Programming Atmel ICE

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

I'm designing a new PCB that features an ATmega328p and ATtiny80. Both MCUs are SMT and populated by a turnkey manufacturer.

They communicate over I2C with the 328p being the master.

The tiny runs a stepper motor at whatever speed the 328p tells it to.

I am planning to program these using the Atmel ICE and Atmel Studio.

I've never used Atmel ICE, ATtiny, or Multiple MCUs in a single board before so I've very new to these areas.

What would the best way to program these be?

 

Would I just be able to wire both MCUs to the 6 pin programming port and the software is able to detect which MCU to upload to?

This topic has a solution.
Last Edited: Tue. Aug 20, 2019 - 08:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Each MCU needs it's own programming connector, ISP for 328, could not find a tiny80? post a link to the DS please.

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

BTW: I forgot to say: Welcome to AVRFreaks!

By chance is it a Tiny88 or Tiny85? Both of these also use ISP for programming, so you would need two 6 pin ISP connectors (or at least the holes for same) on the PCB.

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, I meant tiny85.

http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2586-AVR-8-bit-Microcontroller-ATtiny25-ATtiny45-ATtiny85_Datasheet.pdf

Section 20.5

What if they both use ISP? Could I specify one ISP 6 pin port in my design and wire it to both MCUs?

Can Atmel Studio detect each MCU using its device ID?

Last Edited: Tue. Aug 20, 2019 - 05:02 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One ISP per mpu

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...