21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

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> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERTimer Bi register (Note)(b15)(b8)b7 b0 b7 b0• Timer modeCounts the timer's periodSymbol Address When resetTB0 039116, 039016 IndeterminateTB1 039316, 039216 IndeterminateTB2 039516, 039416 IndeterminateTB3 035116, 035016 IndeterminateTB4 035316, 035216 IndeterminateTB5 035516, 035416 IndeterminateFunctionValues that can be set• Event counter modeCounts external pulses input or a timer overflow• Pulse period / pulse width measurement modeMeasures a pulse period or widthNote: Read and write data in 16-bit units.000016 to FFFF16000016 to FFFF16R WCount start flagb7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetTABSR 038016 0016Bit symbol Bit nameFunctionR WTA0S Timer A0 count start flag0 : Stops countingTA1S Timer A1 count start flag1 : Starts countingTA2S Timer A2 count start flagTA3S Timer A3 count start flagTA4S Timer A4 count start flagTB0S Timer B0 count start flagTB1S Timer B1 count start flagTB2S Timer B2 count start flagTimer B3, 4, 5 count start flagb7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetTBSR 034016 000XXXXX2Clock prescaler reset flagb7 b6 b5 b4 b3 b2 b1 b0Bit symbolBit nameSymbol Address When resetCPSRF 038116 0XXXXXXX2FunctionR WNothing is assigned.In an attempt to write to these bits, write “0”. The value, if read, turnsout to be indeterminate.TB3S Timer B3 count start flag 0 : Stops countingTB4S Timer B4 count start flag1 : Starts countingTB5STimer B5 count start flagBit symbol Bit nameFunctionNothing is assigned.In an attempt to write to these bits, write “0”. The value, if read, turnsout to be indeterminate.CPSR Clock prescaler reset flag 0 : No effect1 : Prescaler is reset(When read, the value is “0”)R WFigure 2.3.3. Timer B-related registers (2)315

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

Saved successfully!

Ooh no, something went wrong!