23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

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.

TBnCR<br />

(0x4001_0xx8)<br />

8.5 Timer synchronous mode<br />

Under development<br />

This mode enables the timers to start synchronously.<br />

If the mode is used with PPG output, the output can be applied to drive a motor.<br />

<strong>TMPM330</strong> (rev 0.4)8-29<br />

<strong>TMPM330</strong><br />

Use of the timer synchronous mode is specified in TBnCR.<br />

=“0”: Timers operates individually.<br />

=“1”: Timers operate synchronously.<br />

The channels are in two segments: channels TMRB0 through 3 and channels TMRB4 through 7.<br />

If =“1” is set, the start timing is synchronized with TMRB0 and TMRB4. The start<br />

timing of each channel, TBmRUN =”1,1”, is ignored.<br />

(Note 1) The channels designated for synchronous output must be started by<br />

TBmRUN=”1,1” before the start triggered by TMRB0 and TMRB4.<br />

(Note 2) Set TBnCR to “0” unless the timer synchronous mode is used. The timer<br />

synchronous mode keeps the other channels operation waiting until TMRB0, TMRB4 and<br />

TMRB8 start operation.<br />

(Note 3) TMRB0 and TMRB4 are the master clocks of the timer synchronous mode. Therefore,<br />

their TBnSYNC bit must be set to “0”.<br />

(Note 4) This mode cannot be applied to TMRB8 and TMRB9.<br />

7 6 5 4 3 2 1 0<br />

bit Symbol TBnWBF TBnSYNC I2TBn<br />

Read/Write R/W R/W R/W R R/W R R R<br />

After reset 0 0 0 0 0 0 0 0<br />

Double Write “0”. Timer “0” is read. IDLE “0” is read. “0” is read. “0” is read.<br />

Buffer<br />

operation<br />

0:Stop<br />

Function 0:Disabled<br />

0:Individu<br />

1:Operatio<br />

1:Enabled<br />

al<br />

n<br />

Set the TBnSYNC bit of the timers, which are used as the slave clocks, to “1”.<br />

TBnCR<br />

(0x4001_0xx8)<br />

7 6 5 4 3 2 1 0<br />

bit Symbol TBnWBF TBnSYNC I2TBn<br />

Read/Write R/W R/W R/W R R/W R R R<br />

After reset 0 0 0 0 0 0 0 0<br />

Double Write “0”. Timer “0” is read. IDLE “0” is read. “0” is read. “0” is read.<br />

Function<br />

Buffer<br />

0:Disabled<br />

operation<br />

1:Synchro<br />

0:Stop<br />

1:Operatio<br />

1:Enabled<br />

nous<br />

n<br />

16-bit Timer/<br />

Event Counters (TMRBs)

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

Saved successfully!

Ooh no, something went wrong!