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.

Timers’ functions for three-phase motor controlMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTERThree-phase motor driving waveform output mode (three-phase waveform mode)Setting “1” in the mode select bit (bit 2 at 034816) shown in Figure 1.18.1 - causes three-phase waveformmode that uses four timers A1, A2, A4, and B2 to be selected. As shown in Figure 1.18.4, set timers A1,A2, and A4 in one-shot timer mode, set the trigger in timer B2, and set timer B2 in timer mode using therespective timer mode registers.Timer Ai mode registerb7 b6 b5 b4 b3 b2 b1 b0011 0Symbol Address When resetTA1MR 039716 0016TA2MR 039816 0016TA3MR 039A16 0016Bit symbolTMOD0TMOD1MR0MR1MR2MR3TCK0TCK1Bit nameOperation modeselect bitPulse output functionselect bitExternal trigger selectbitTrigger select bitFunctionb1 b01 0 : One-shot timer mode0 (Must always be “0” in one-shot timer mode)Count source select bit0 (Must always be “0” in three-phase PWMoutput mode)Invalid in three-phase PWM output mode1 : Selected by event/trigger selectregisterb7 b60 0 : f10 1 : f81 0 : f321 1 : fC32R W Timer B2 mode register 0b7 b6 b5 b4 b3 b2 b1 b000Symbol Address When resetTB2MR 039D16 00XX00002Bit symbolTMOD0TMOD1MR0MR1MR2MR3TCK0TCK1Bit nameOperation mode select bitInvalid in timer modeCan be “0” or “1”0 (Fixed to “0” in timer mode ; i = 0)Count source select bitFunctionb1 b00 0 : Timer modeInvalid in timer mode.This bit can neither be set nor reset. When read in timer mode,its content is indeterminate.b7 b60 0 : f10 1 : f81 0 : f321 1 : fC32R W Figure 1.18.4. Timer mode registers in three-phase waveform mode103

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

Saved successfully!

Ooh no, something went wrong!