#define portCLEAR_COUNTER_ON_MATCH ( 1<<COM1A1 )
#define portPRESCALE_1024 ( (1<<CS12) | (1<<CS10) )
#define portPRESCALE_256 ( 1<<CS12 )
#define portPRESCALE_64 ( (1<<CS11) | (1<<CS10) )
#define portCLOCK_PRESCALER ( 64 )
#define portCOMPARE_MATCH_A_INTERRUPT_ENABLE ( 1<<OCIE1A )
#define TIMSK TIMSK1
Show I use TIMSK0 or TIMSK2 instead? And the portCOMPARE_MATCH_A_INTERRUPT_ENABLE is correct?
Thanks in advance!Paulo