30.12.2014 Views

TIMER - AN0014 - Application Note - Energy Micro

TIMER - AN0014 - Application Note - Energy Micro

TIMER - AN0014 - Application Note - Energy Micro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

...the world's most energy friendly microcontrollers<br />

Table of Contents<br />

1. Introduction .............................................................................................................................................. 2<br />

2. Clock Sources .......................................................................................................................................... 3<br />

3. Interrupts, PRS and DMA ........................................................................................................................... 4<br />

4. Counting Modes and Timer Setup ................................................................................................................ 5<br />

4.1. Timer Setup ................................................................................................................................... 5<br />

4.2. Up, Down and Up/Down .................................................................................................................. 5<br />

4.3. Quadrature Decoding ...................................................................................................................... 5<br />

4.4. Hardware Count Control .................................................................................................................. 6<br />

4.5. Counter Software Examples .............................................................................................................. 6<br />

5. Capture/Compare ...................................................................................................................................... 8<br />

5.1. Input Capture ................................................................................................................................. 8<br />

5.2. Output Compare ............................................................................................................................. 8<br />

5.3. Pulse-Width Modulation (PWM) ......................................................................................................... 9<br />

5.4. Configuration ................................................................................................................................. 9<br />

5.5. Capture/Compare/PWM Software Examples ....................................................................................... 10<br />

6. Revision History ...................................................................................................................................... 12<br />

6.1. Revision 1.07 ............................................................................................................................... 12<br />

6.2. Revision 1.06 ............................................................................................................................... 12<br />

6.3. Revision 1.05 ............................................................................................................................... 12<br />

6.4. Revision 1.04 ............................................................................................................................... 12<br />

6.5. Revision 1.03 ............................................................................................................................... 12<br />

6.6. Revision 1.02 ............................................................................................................................... 12<br />

6.7. Revision 1.01 ............................................................................................................................... 12<br />

6.8. Revision 1.00 ............................................................................................................................... 12<br />

A. Disclaimer and Trademarks ....................................................................................................................... 14<br />

A.1. Disclaimer ................................................................................................................................... 14<br />

A.2. Trademark Information ................................................................................................................... 14<br />

B. Contact Information ................................................................................................................................. 15<br />

B.1. <strong>Energy</strong> <strong>Micro</strong> Corporate Headquarters .............................................................................................. 15<br />

B.2. Global Contacts ............................................................................................................................ 15<br />

2013-05-08 - an0014_Rev1.07 16 www.energymicro.com

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

Saved successfully!

Ooh no, something went wrong!