29.01.2013 Views

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TMC03 TMC02 TMC01<br />

CHAPTER 6 16-BIT TIMER/EVENT COUNTER<br />

Figure 6-2. Format of 16-Bit Timer Mode Control Register 0 (TMC0)<br />

Address FF60H After reset: 00H R/W<br />

Symbol<br />

TMC0<br />

7<br />

0<br />

Operating mode<br />

and clear mode selection<br />

Preliminary User’s Manual U13420EJ2V0UM00<br />

TO0 output timing selection Interrupt request generation<br />

0 0 0 Operation stop No change Not generated<br />

0 0 1 (TM0 cleared to 0)<br />

0 1 0 Free running mode Match between TM0 and<br />

CR00 or match between TM0<br />

and CR01<br />

0 1 1 Match between TM0 and<br />

CR00, match between TM0<br />

and CR01 or TI00 valid edge<br />

1 0 0 Clear & start on TI00 valid —<br />

1 0 1 edge<br />

1 1 0 Clear & start on match Match between TM0 and<br />

between TM0 and CR00 CR00 or match between TM0<br />

and CR01<br />

1 1 1 Match between TM0 and<br />

CR00, match between TM0<br />

and CR01 or TI00 valid edge<br />

OVF0 TM0 overflow detection<br />

0 Overflow not detected<br />

1 Overflow detected<br />

6<br />

0<br />

5<br />

0<br />

4<br />

0<br />

Cautions 1. Timer operation must be stopped before writing to bits other than the OVF0 flag.<br />

2. Set the valid edge of the TI00/TO0/P20 pin with prescaler mode register 0 (PRM0).<br />

3. If clear & start mode on match between TM0 and CR00 is selected, when the set value of<br />

CR00 is FFFFH and the TM0 value changes from FFFFH to 0000H, OVF0 flag is set to 1.<br />

Remarks 1. TO0: 16-bit timer/event counter output pin<br />

2. TI00: 16-bit timer/event counter input pin<br />

3. TM0: 16-bit timer/counter 0<br />

4. CR00: Compare register 00<br />

5. CR01: Compare register 01<br />

3<br />

2<br />

TMC03 TMC02 TMC01 OVF0<br />

1<br />

0<br />

Generated on match<br />

between TM0 and CR00, or<br />

match between TM0 and<br />

CR01<br />

109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!