20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Timer AMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTERTimer Ai mode register(When not using two-phase pulse signal processing)b7 b6 b5 b4 b3 b2 b1 b000 1Symbol Address When resetTAiMR(i = 2 to 4) 039816 to 039A16 0016Bit symbol Bit name Function R WTMOD0b1 b0Operation mode select bitTMOD10 1 : Event counter modeMR0MR1MR2MR3TCK0TCK1Pulse output functionselect bitCount polarityselect bit (Note 2)Up/down switchingcause select bit0 : Pulse is not output(TAiOUT pin is a normal port pin)1 : Pulse is output (Note 1)(TAiOUT pin is a pulse output pin)0 : (Must always be “0” in event counter mode)Count operation typeselect bitTwo-phase pulse signalprocessing operationselect bit (Note 4)(Note 5)0 : Counts external signal's falling edges1 : Counts external signal's rising edges0 : Up/down flag's content1 : TAiOUT pin's input signal (Note 3)0 : Reload type1 : Free-run type0 : Normal processing operation1 : Multiply-by-4 processing operationNote 1: The settings of the corresponding port register and port direction register are invalid.Note 2: This bit is valid when only counting an external signal.Note 3: Set the corresponding port direction register to “0”.Note 4: This bit is valid for the timer A3 mode register.For timer A2 and A4 mode registers, this bit can be “0 ”or “1”.Note 5: When performing two-phase pulse signal processing, make sure the two-phase pulsesignal processing operation select bit (address 038416) is set to “1”. Also, always besure to set the event/trigger select bit (addresses 038216 and 038316) to “00”.Timer Ai mode register(When using two-phase pulse signal processing)b7 b6 b5 b4 b3 b2 b1 b00 1 0 0 0 1Symbol Address When resetTAiMR(i = 2 to 4) 039816 to 039A16 0016Bit symbol Bit name Function R WTMOD0TMOD1MR0MR1MR2MR3TCK0TCK1Operation mode select bitb1 b00 1 : Event counter mode0 (Must always be “0” when using two-phase pulse signalprocessing)0 (Must always be “0” when using two-phase pulse signalprocessing)1 (Must always be “1” when using two-phase pulse signalprocessing)0 (Must always be “0” when using two-phase pulse signalprocessing)Count operation typeselect bitTwo-phase pulseprocessing operationselect bit (Note 1)(Note 2)0 : Reload type1 : Free-run type0 : Normal processing operation1 : Multiply-by-4 processing operationNote 1: This bit is valid for timer A3 mode register.For timer A2 and A4 mode registers, this bit can be “0” or “1”.Note 2: When performing two-phase pulse signal processing, make sure the two-phase pulsesignal processing operation select bit (address 038416) is set to “1”. Also, always besure to set the event/trigger select bit (addresses 038216 and 038316) to “00”.Figure 1.17.9. Timer Ai mode register in event counter mode90

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

Saved successfully!

Ooh no, something went wrong!