There are lots of pictures for the pin mapping versions of ATMEGA644PA in the internet. I need to make some modifications on my motor driver's .cpp file to work it with arduino to control my motors via ATMEGA644PA microchip, and I want to use the NRF24 radio module for wireless communication to use on my project.
I am not so sure which pin mapping is correct for ATMEGA644PA; so would you tell me and share a correct pin mapping picture for the ATMEGA644PA please ? thank you very much
Note:
Because I am not so sure right now which pins are PWM pins (probably only 6 pwm pins are available in the ATMEGA644PA) and including which pins are the MOSI, MISO, SCK in the ATMEGA644PA.
I really look forward your reply to this thread, thank you very much for helping to solve this issue.
Unfortunately, there are many different pin mappings used for the family of microcontrollers that include the ATmega644, though the ATmega1284P is the more commonly used part for most of those pin mappings.
As for which is correct, that depends on which hardware package you're using to add ATmega644PA support to the Arduino IDE. If you don't already have one, I recommend the excellent MightyCore:
That gives you the option of 3 different pin mappings, selectable from the Tools > Pinout menu: Standard, Bobuino, Sanguino. You can find the documentation of each here: