1 What is the Timer/Counter Type B?

The capabilities of the 16-bit Timer/Counter type B (TCB) include frequency and waveform generation and input capture on event with time and frequency measurement of digital signals. The TCB consists of a base counter and control logic that can be set in one of eight different modes, each mode providing unique functionality. The base counter is clocked by the peripheral clock with optional prescaling.

Features:

  • 16-bit Counter Operation Modes:
    • Periodic interrupt
    • Time-out check
    • Input capture
      • On event
      • Frequency measurement
      • Pulse-width measurement
      • Frequency and pulse-width measurement
      • 32-bit capture
    • Single-Shot
    • 8-bit Pulse-Width Modulation (PWM)
  • Noise Canceler on Event Input
  • Synchronize Operation with TCEn