I have a custom made PCB, which is designed to be able to shut itself down.
This is done via a FET thats temporarily powered by a momentary push button, then the code activates a GPIO to power the FET, user can release the button, Arduino stays powered.
Thats the plan, however, the pin chosen to activate the FET turns out the be pd6 on the 2560, and not mapped in the arduino core as a GPIO.
Can I control it in some other way? some direct control over the pin? Will this cause me any other issues? I see it labelled as T1. Timer 1? is there a chance that I will mess up some other functionality if using it as a GPIO ?
You can use direct port manipulation to control the pin.
I'm not the specialist regarding hardware timers but below is my view regarding T1. T1 is the external clock source for time/counter 1; see the datasheet. Timer/counter 1 is configured by the Arduino core and does not use the external clock source (unless your code has modified it).
from what ive seen by googling it, timer 1 is used in the servo.h library. and for pwm on D9 and D10.
There may be other libraries that I havent discovered that use it, and I will need to have a constant HIGH signal to keep the PCB running.
I guess you missed what I tried to say. T1 is the external clock source for time/counter1 and is not used. Timer/counter1 is used, but with an internal clock source.