Few reminders when designing an uC-project:
General on inputs:
- Primarily use first all external interrupt and analog pins. Make pads for unused “special” pins, for example external input/analog-pins.
- Do you need to measure pulses? Use external interrupts whenever possible, they are simple to do and really accurate
- If generating pulse out by delay remember that interrupts make the signal jitter.