20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Timer AMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTERTimer Ai register (Note)(b15)(b8)b7 b0 b7 b0Symbol Address When resetTA0 038716,038616 IndeterminateTA1 038916,038816 IndeterminateTA2 038B16,038A16 IndeterminateTA3 038D16,038C16 IndeterminateTA4 038F16,038E16 IndeterminateFunction• Timer modeCounts an internal count source• Event counter modeCounts pulses from an external source or timer overflow• One-shot timer modeCounts a one shot widthValues that can be set R W000016 to FFFF16 000016 to FFFF16000016 to FFFF16• Pulse width modulation mode (16-bit PWM)Functions as a 16-bit pulse width modulator• Pulse width modulation mode (8-bit PWM)Timer low-order address functions as an 8-bitprescaler and high-order address functions as an 8-bitpulse width modulatorNote: Read and write data in 16-bit units.000016 to FFFE160016 to FE16(Both high-orderand low-orderaddresses)Count start flagb7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetTABSR 038016 0016Up/down flagb7 b6 b5 b4 b3 b2 b1 b0Bit symbolTA0SBit nameTimer A0 count start flagSymbol Address When resetUDF 038416 0016FunctionR W0 : 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 flagBit symbolTA0UDTA1UDTA2UDTA3UDTA4UDTA2PTA3PTA4PFigure 1.17.5. Timer A-related registers (2)Bit nameTimer A0 up/down flagTimer A1 up/down flagTimer A2 up/down flagTimer A3 up/down flagTimer A4 up/down flagTimer A2 two-phase pulsesignal processing select bitTimer A3 two-phase pulsesignal processing select bitTimer A4 two-phase pulsesignal processing select bit0 : Down count1 : Up countFunctionThis specification becomes validwhen the up/down flag content isselected for up/down switchingcause0 : two-phase pulse signalprocessing disabled1 : two-phase pulse signalprocessing enabledWhen not using the two-phasepulse signal processing function,set the select bit to “0”R W 85

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

Saved successfully!

Ooh no, something went wrong!