PCF85063A - TF bit never set

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCF85063A - TF bit never set

Jump to solution
986 Views
alessandromorni
Contributor III

Hi,

I'm using the timer countdown feature supported by RTC PCF85063A.

I'm configuring registers Timer_Mode ad Timer_Value for generating pulse interrupt.

Timer_mode (0x1F)
TCF: 11
TE: 1
TIE: 1
TI_TP: 1


Timer_value (0x1)

Interrupt is generated correctly whenever RTC minute "is toggled". I then read Control_2 register for checking TF flag, but it always remains to '0'.

From datasheet:

"The timer flag (bit TF) is set logic 1 on the first trigger of MI, HMI, or the countdown timer. "

Any suggestions?

Best regards,

Alessandro

0 Kudos
1 Solution
809 Views
alessandromorni
Contributor III

My bad: I was clearing the Control_2 register in another point of code.

Problem solved.

Alessandro

View solution in original post

0 Kudos
1 Reply
810 Views
alessandromorni
Contributor III

My bad: I was clearing the Control_2 register in another point of code.

Problem solved.

Alessandro

0 Kudos