ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
PackagePins.h

Purpose: Physical terminal and ball mappings for 100-terminal packages.

Namespace: atmega2560::package.

TQFP terminals are numbered 1–100. CBGA locations use row (A–K, skipping I) and column (1–10); cbga100::PB0 and cbga100::F4 both denote the F4 position by an ordinal (54), not a numbered package lead. See datasheet Figures 1-1 and 1-2, Table 1-1.

namespace mcu = atmega2560;
static_assert(mcu::package::tqfp100::PB0 == 19 && mcu::package::cbga100::PB0 == 54, "ATmega2560 PackagePins definition");
Physical terminal and ball mappings for 100-terminal packages.
ATmega2560 hardware definitions.
Definition ADC.h:15

Physical mapping

package::tqfp100::PB0 == 19: terminal number on the 100-lead TQFP.

package::cbga100::PB0 == 54: row F, column 4 in the 100-ball CBGA top view; this is an internal ordinal representation, not lead number 54.

package::cbga100::F4 == 54 uses the same ordinal by ball position. See datasheet Figures 1-1 and 1-2.

These are hardware definitions, not runtime register access or initialization.

Source: ATmega2560 datasheet (DS40002211A).