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 BMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER(1) Timer modeIn this mode, the timer counts an internally generated count source. (See Table 1.17.6.) Figure 1.17.17shows the timer Bi mode register in timer mode.Table 1.17.6. Timer specifications in timer modeItemSpecificationCount sourcef1, f8, f32, fC32Count operation • Counts down• When the timer underflows, it reloads the reload register contents beforecontinuing countingDivide ratio 1/(n+1) n : Set valueCount start condition Count start flag is set (= 1)Count stop condition Count start flag is reset (= 0)Interrupt request generation timing The timer underflowsTBiIN pin function Programmable I/O portRead from timer Count value is read out by reading timer Bi registerWrite to timer• When counting stoppedWhen a value is written to timer Bi register, it is written to both reload register and counter• When counting in progressWhen a value is written to timer Bi register, it is written to only reload register(Transferred to counter at next reload time)Timer Bi mode registerb7 b6 b5 b4 b3 b2 b1 b000Symbol Address When resetTBiMR(i=0 to 5) 039B16 to 039D16 00XX00002035B16 to 035D16 00XX00002Bit symbolTMOD0TMOD1MR0MR1MR2MR3Bit nameOperation mode select bitInvalid in timer modeCan be “0” or “1”b1 b00 0 : Timer modeb7 b6TCK0 Count source select bit0 0 : f10 1 : f8TCK11 0 : f321 1 : fC32Note 1: Timer B0, timer B3.Note 2: Timer B1, timer B2, timer B4, timer B5.Function0 (Fixed to “0” in timer mode ; i = 0, 3)Nothing is assiigned (i = 1, 2, 4, 5).In an attempt to write to this bit, write “0”. The value, if read, turns outto be indeterminate.Invalid in timer mode.In an attempt to write to this bit, write “0”. The value, if read intimer mode, turns out to be indeterminate.RW(Note 1)(Note 2)Figure 1.17.17. Timer Bi mode register in timer mode96

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

Saved successfully!

Ooh no, something went wrong!