NetBurner 3.5.0
PDF Version
 
Timer Waveform Output

Supported Platforms: MODM7AE70 SBE70LC

Timer Counter Waveform Output Example

This example will generate a pulse waveform on Timer 11. The timer 11 output is on P2[28] on the MODM7AE70, and J1[4] on the SBE70LC

See also: Timer Waveform Capture example.

This is a good example to demonstrate how to:

  • Learn the structure of the SAME70 Timer Counter peripheral
  • Produce a pulse output waveform of various frequencies and duty cycles

SAME70 Timer Architecture

  • There are a total of 12 16-bit timers, numbered 0 - 11.
  • They are divided up into 4 blocks. Each block is called a Timer Counter: TC0, TC1, TC2, TC3.
  • Each timer within a Timer Counter block is called a Timer Counter Channel. While the timers number from 0 to 11, each Timer Counter Channel within a Timer Counter block is numbered from 0 to 2. For example, Timer Counter Channel 11 is in Timer Counter group TC3, with Timer Counter Channel number 2.
  • While all Timer Counter Channels can be used, not all signal pins are brought out to the headers on the MODM7AE70. The table below describes the header pinout.
  • The diagrams in the Timer Counter (TC) section of the SAME70 Reference Manual describe the structure of the Timer Counters.