So this is my second question.
Actually I use delay(x)
to send an (electrical) command like relay.
The problem is that ... I have to wait
I would like to use a timer to do so but I don't understand how to prepare timer.
My PIC is a PIC18F4450 with a 16Mhz clock.
I would like to do something like that:
1) send a on
command to pin and set a timer to 2 or 3 seconds
2) when timer arrive to zero, some pins reseted to zero.
I just need to understand how I can use timer.