Trouble understanding physical pin numbers vs pin names


hello,

i'm new , can't find explanation understanding relationship between physical pin numbers , actual pin names.

for example, i'm looking @ leonardo schematic, physical pin 32 shows pin modes "(icp3/clk0/oc4a)pc7" given pin name of "io13*". can't life of me figure out why calling pin "io13*" makes sense , correlation made. confuses me see pinmode(13,output); that's referring io13* not actual 13th pin.

furthermore, lets want use physical pin 9, named "sclk" in leonardo schematic, digital output. i'm not sure how relate pin 9 being digital io can pass function pinmode();

thank help!

here's link leonardo schematic reference.
http://arduino.cc/en/uploads/main/arduino-leonardo-schematic_3b.pdf

look @ pins_arduino.h mapping port software name.
there 3 arrays define stuff - first list order of ports, 2nd lists bits within port.
then there datasheet maps port/bit physical pin.

there several guides/pictures show mapping, chart linked on products/leonardo page
http://arduino.cc/en/hacking/pinmapping32u4


Arduino Forum > Using Arduino > Programming Questions > Trouble understanding physical pin numbers vs pin names


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support