Examples of Buffering: Figure 10-49 shows an example in which GRA is set to function as an
output compare register buffered by BRA, TCNT is set to operate as a periodic counter cleared by
GRB compare match, and TIOCA and TIOCB are set to toggle at compare match A and B.
Because of the buffer setting, when TIOCA toggles at compare match A, the BRA value is
simultaneously transferred to GRA. This operation is repeated each time compare match A occurs.
Figure 10-50 shows the transfer timing.
Figure 10-49 Register Buffering (Example 1: Buffering of Output Compare Register)
GRB
H'0250
H'0200
H'0100
H'0000
BRA
GRA
TIOCB
TIOCA
TCNT value
Counter cleared by compare match B
Time
Toggle
output
Toggle
output
Compare match A
H'0200
H'0250
H'0100
H'0200
H'0100
H'0200
H'0200
369
www.DataSheet4U.com