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.

Under development<br />

8.4 Description of Operations for Each Mode<br />

8.4.1 16-bit Interval Timer Mode<br />

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

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

-Generating interrupts at periodic cycles<br />

To generate the INTTB0 interrupt, specify a time interval in the TB0RG1 timer register.<br />

8.4.2 16-bit Event Counter Mode<br />

It is possible to make it the event counter by using an input clock as an external clock<br />

(TB0IN0 pin input).<br />

The up-counter counts up on the rising edge of TB0IN0 pin input. It is possible to read the<br />

count value by capturing value using software and reading the captured value.<br />

To use it as an event counter, put the prescaler in a “RUN” state (TB0RUN =<br />

“1”).<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!