TOSHIBA SP-900-011 Manual

This is a sample program for measuring the pulse width of a 16-bit timer.


TOSHIBA SP-900-011 Manual - cover page
Brand
Toshiba
Category
Other device
Document type
Application Note
Language
English
Pages
3
File format
PDF
File size
58 KB
Published
09 May, 2012
Updated
30 September, 2023
MD5 checksum
E77ABDB249B038D304017A0C00DA1238

About this manual

The document provides a sample program for the TLCS-900/H microcontroller series that measures the high‑level width of an external pulse. It explains how to configure the 16‑bit timer in event‑counter mode, capture timer values on the TI8 pin, and calculate pulse width.

The program uses capture registers CAP1 and CAP2, the INTS5 interrupt handler, and an internal clock period of 0.8 µs. It includes example data variables and interrupt timing details for developers integrating the routine into their designs.

What's inside

  • Target MCU
  • Overview
  • Description
  • Passing Data
  • Interrupts

Specifications

Timer type16‑bit timer in event counter mode
Capture registersCAP1, CAP2
Interrupt usedINTS5
Edge detection pinTI8
Cycle time example16 µs

Frequently asked questions

What does the sample program measure?

It measures the high‑level width of an external pulse using a 16‑bit timer.

Which MCU series is the program targeted for?

The program is created for the TLCS‑900H series of microcontrollers.

How is the pulse width calculated?

The program captures timer values at rising and falling edges, computes the difference between CAP1 and CAP2, and multiplies it by the internal clock period.

Which pin is used for pulse capture?

The TI8 pin is used to trigger capture on rising and falling edges of the external pulse.

Download PDF (58 KB)

More Toshiba Manuals


View all Toshiba manuals →