ATmega328PB

Hi,

I have 2 questions about this micro. First, how I can use SPI0 for upload program and the second SPI1 for MCP2515 Can module or the opposite (SPI1 for upload and SPI0 for mcp).

Second, If the first is possible, I can remove the CH340 for serial upload (and don't use bootloader) ?

Thank you !

  1. Only SPI0 can be used for uploading
  2. Yes, you can use SPI1 to communicate with another device. MiniCore includes an SPI1 library.
  3. Yes, you can eliminate the serial adapter. Using MiniCore, you would just choose "No" from the Tools -> bootloader submenu, and "burn bootloader" to fully utilize the added flash from not using a bootloader (and you would need to be sure that was selected while uploading too, otherwise upload would try to use a bootloader that wasn't there)

You definitely want to be using MiniCore if you're running a '328pb (I use the MCUdude cores for plain old '328p's too - I bootload my nanos/pro minis with MiniCore) GitHub - MCUdude/MiniCore: Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB

Great ! Thanks !

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