Click or drag to resize

Counter Class

This class encapsulates an LPC1114 32-bit hardware counter/timer.
Inheritance Hierarchy
SystemObject
  IO.Objects.LPC1114IOP.TimerCounter

Namespace: IO.Objects.LPC1114IOP.Timer
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public class Counter

The Counter type exposes the following members.

Constructors
 NameDescription
Public methodCounter LPC1114 32-bit hardware counter/timer object constructor.
Top
Methods
 NameDescription
Public methodConfigureCapture Configure the LPC1114 32-bit counter/timer capture mode.
Public methodConfigureMatch Configure an LPC1114 32-bit counter/timer match register.
Public methodConfigureMode Configure the LPC1114 32-bit counter/timer counting mode.
Public methodConfigurePrescaler Configure the LPC1114 32-bit counter/timer prescaler.
Public methodGetCapture Retrieve the contents of the capture register.
Public methodGetCaptureDelta Retrieve the difference between the last two capture values.
Public methodGetCounter Retrieve the contents of the counter register.
Top
Remarks

The internal clock of the LPC1114 microcontroller is only accurate to ±1% over the temperature range of -40º C to +85º C.

The timer services provided by this class are very complicated, in order to support all of the features of the LPC1114 32-bit hardware counter/timers. You will need to carefully study the LPC11xx User Manual in order to fully understand how the counter/timers work.

See Also