206CHAPTER 8 16-BIT TIMER/EVENT COUNTERTOC0 110/10/10000TOE0TOC01LVR0OSPT OSPE TOC04 LVS0TO0 Output EnabledInversion of output on match of TM0 and CR00Specified TO0 output F/F initial valueNo inversion of output on match of TM0 and CR01One-shot pulse output disabledCRC0 00/10/100000CRC00CRC01CRC02CR00 set as compare registerTMC0 00/1110000OVF0TMC01TMC02TMC03Clear & start on match of TM0 and CR008.5.6 Square-wave output operationOperates as square wave output with any selected frequency at intervals of the count value preset to the 16-bitcapture/compare register 00 (CR00).The TO0/P30 pin output status is reversed at intervals of the count value preset to CR00 by setting bit 0 (TOE0)and bit 1 (TOC01) of the 16-bit timer output control register (TOC0) to 1. This enables a square wave with any selectedfrequency to be output.Figure 8-29. Control Register Settings in Square-Wave Output Mode(a) 16-bit timer mode control register (TMC0)(b) Capture/compare control register 0 (CRC0)(c) 16-bit timer output control register (TOC0)Remark 0/1: Setting 0 or 1 allows another function to be used simultaneously with square-wave output.See the description of the respective control registers for details.