Correlating Micro and Uno pins

I have a program written for the Uno and I want to put it on a Micro. Is there a map that will tell me which pins on the Uno that correspond to the ones I am using on the Micro? Or do I just assign them?

These are the pins I am using:
clockpin
enablepin
latchpin
datapin

Thanks.
China Blue

There's a pinout available here:

The four pins you use, they are driving some shift register? You can use the same pins on Micro to drive them. No need to change pins. If you use any communication pins such as SPI or I2C, then Micro has THESE pins located at different locations than UNO. histo provided the link.

Liudr:
How did you guess. I am driving an Octobrite. Below are the definitions. You are saying I can just match the same pin #s?
China Blue

#define clockpin 13 // CL
#define enablepin 10 // BL
#define latchpin 9 // XL
#define datapin 11 // SI

// Defines for direct port access
#define CLKPORT PORTB
#define ENAPORT PORTB
#define LATPORT PORTB
#define DATPORT PORTB
#define CLKPIN 5
#define ENAPIN 2
#define LATPIN 1
#define DATPIN 3

OK, are you using any direct port manipulation commands? If you are just doing say pulseOut(), it makes no difference among any Arduino boards. If you are doing port manipulation, that's different. I recommend not using port manipulation. It won't make your display any faster and makes your code impossible to port to other boards.

This post has a diagram for mapping. It's fairly new diagram (unofficial) so expect some mistakes.

http://forum.arduino.cc/index.php/topic,148734.0.html

Seems like pin 13 is on port c and 9-11 are port b but different pin numbers than on uno.

So that means then I will be connecting most of my pins on the ICSP. Yet, I don't understand the nomenclature of the pins so is this correct alignment?
with clockpin 13 going to - reset on port b or main board reset (#13 is in both locations)
enablepin 10 is going to a - MOSI pin
latchpin 9 is going to - the Serial SCK
datapin 11 is going to - the Serial MISO

Does that work?
Thanks a lot!
China Blue

PS no direct port data manipulation.

OK, if you are NOT using port manipulation, arduino IDE helps you map the pins, on micro you will still use:

#define clockpin 13 // CL
#define enablepin 10 // BL
#define latchpin 9 // XL
#define datapin 11 // SI

On UNO pin 13 is also the SCK but on micro pin 13 is just an I/o pin. Your OctoBrite is a shift register. Any I/O pin can handle it. So just use pin 13. It is only available at the pin 13 hole, not on the ICSP socket.

liudr,
This is awesome! Thanks so much for explaining the pin assignment! I want to give you karma points. Can I do that?
You have been tremendously helpful.
China Blue

You are welcome. Just click the + next to karma.
An advantage of arduino is you dont have to do port mapping yourself for many tasks.

another karma point for you!
good to know about port mapping.
China Blue