r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 370

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
18.2.14 Timer RE2 Clock Error Correction Register (TREADJ)
TRECR register
RTCRST bit in
Bits MINUS and PLUS (Correction counter bits)
After reset by
Bit
b0
b1
b2
b3
b4
b5
b6
b7
After Reset
The TREADJ register is used in real-time clock mode. This register is used to set the clock error correction
direction and the correction amount. Write to the TREADJ register while the CS3 bit in the TRECSR register is
1. Change the TREADJ register when the BSY bit in the TRESEC register and the TADJSF bit in the TREIFR
register are both 0.
The one-second counter is changed depending on the values of bits ADJ0 to ADJ5.
When the PLUS bit is set to 0 and the MINUS bit is set to 1, the internal counter is corrected to the minus side.
The clock can be set backward when it gains time.
When the PLUS bit is set to 1 and the MINUS bit is set to 0, the internal counter is corrected to the plus side.
The clock can be set forward when it loses time.
The interval for correction differs depending on the AADJE bit in the TRECR register.
When the AADJE bit is 0 (automatic correction function disabled (correction by software enabled)), correction
is performed when writing to the TREADJ register. When the AADJE bit is 1 (automatic correction function
enabled (correction by software disabled)), correction is performed for the interval set by the AADJM bit in the
TRECSR register.
For details on the setting method of the TREADJ register, refer to 18.3.4 Clock Error Correction Function.
Address 00179h
Symbol
Symbol
MINUS
PLUS
ADJ0
ADJ1
ADJ2
ADJ3
ADJ4
ADJ5
Bit
Preliminary document
Specifications in this document are tentative and subject to change.
PLUS
Correction value setting bits
Correction counter bits
b7
0
0
MINUS
b6
0
0
Bit Name
ADJ5
b5
0
0
ADJ4
b4
0
0
Setting range: 00h to 3Fh (00 to 63)
b7 b6
0 0: Not corrected
0 1: Subtraction correction
1 0: Addition correction
1 1: Do not set.
ADJ3
b3
0
0
ADJ2
b2
0
0
Function
ADJ1
b1
0
0
ADJ0
b0
0
0
Page 339 of 725
18. Timer RE2
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W

Related parts for r5f21368sdfp