Mitsubishi DS5000TK Guida Utente Pagina 105

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 174
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 104
USER’S GUIDE
050396 104/173
105
SECTION 13: PROGRAMMABLE TIMERS
FUNCTIONAL DESCRIPTION
The Secure Microcontroller incorporates two 16–bit tim-
ers called Timer 0 and Timer 1. Both can be used to gen-
erate precise time intervals, measure external pulse
widths, or count externally applied pulses.
Each programmable timer operates either as a “timer”
in which time periodic interrupts may be generated or as
a “counter”, in which the timer register is incremented
when transitions are detected on an external input pin.
When a programmable timer is operating as a “timer”,
the least–significant timer register is incremented once
every machine cycle or at 1/12 the frequency of the
clock oscillator. When a 12 MHz crystal is used, the reg-
ister will be incremented once every 1 µs.
When “counter” operation is selected, the least–signifi-
cant timer register is incremented each time that a
1–to–0 transition is detected on the corresponding input
pin that may be assigned for the timer (T0 for Timer 0, T1
for Timer 1). These pins are the optional function of P3.4
and P3.5 respectively. The timing of the “counter” mode
is internally synchronized to the machine cycles. During
S5P2 of every machine cycle, the external input pin is
sampled. A 1–to–0 transition is defined as a 1 detected
during a machine cycle followed by a 0 detected in the
S5P2 clock phase of the next machine cycle. The new
count value in the timer register will be present during
clock phase S3P1 of the next successive (or third) ma-
chine cycle. See the section on timing for details.
The TMOD and TCON Special Function registers are
used to control the initialization of the two program-
mable timers. A summary of the bits contained in TMOD
is shown in Figure 13–1. The relevant TCON register
bits are depicted in Figure 13–2. Each Timer has four
control bits associated with it including C/T
, GATE, M1,
and M0. C/T=1 selects counter operation and C/T=0 se-
lects timer operation.
A separate GATE bit in the TMOD register is provided
for each timer. These bits enable an associated external
interrupt input pin as a gating control for the timer or
counter function. The P3.2 (INT0
) pin operates in con-
junction with Timer 0 while the P3.3 (INT1) pin operates
with Timer 1. When the Timer Run bit (TRn) and GATE
are both set to a 1, the timer or counter function will be
enabled only during the times that the associated inter-
rupt input pin is at a 1 level. When the Timer function is
selected, the GATE bit provides a means of measuring
the widths of logic 1 pulses applied to the interrupt pin in
units of machine cycles. When the counter function is
selected, the pulse is measured in units of 1–to–0 transi-
tions detected on the external counter input pin.
Both of the programmable timers have M1,M0 control
bits in the TMOD register which are used to select one of
the four operating modes described below.
TMOD REGISTER CONTROL BIT SUMMARY Figure 13–1
Bit Description
TMOD.7 (Timer 1);
TMOD.3 (Timer 0): GATE
“Gate Control”: When set to 1 with TRns=1, timer/counter’s input count pulses will only be
delivered while a 1 is present on the INT
pin. When cleared to 0, counter
pulses will always be received by the timer/counter as long as TRn=1.
Initialization: Cleared to 0 on any reset.
TMOD.6 (Timer 1);
TMOD.2 (Timer 0): C/T
“Counter/Timer Select”: When set to a 1, the counter function is selected for the associated program-
mable timer; when cleared to 0, the timer function is selected.
Initialization: Cleared to 0 on any reset.
Vedere la pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 173 174

Commenti su questo manuale

Nessun commento

Alpine CDE-125BT manuels

Manuels d'utilisation et guides de l'utilisateur pour Systèmes vidéo pour voitures Alpine CDE-125BT.
Nous fournissons des manuels en pdf 7 Alpine CDE-125BT à télécharger gratuitement par type de document : Manuel de l'utilisateur, Manuel du propriétaire


Alpine CDE-125BT Manuel de l'utilisateur (5 pages)


marque: Alpine | Catégorie: Car video systems | Taille: 0.03 MB |

 

Table des matières





Plus de produits et de manuels pour Systèmes vidéo pour voitures Alpine

Modèles Type de document
KTX-SNA Manuel de l'utilisateur   Mobile Media Solutions Introduction ·, 4 pages
IVA-D105 Manuel du propriétaire   Alpine IVA-D105 Owner`s manual, 30 pages
IVE-W530 Manuel du propriétaire       Alpine IVE-W530 Owner`s manual, 53 pages
TMX-R1100E Manuel de l'utilisateur   2011 SYSTEM SOLUTIONS [en] , 28 pages
TME-M710 Manuel de l'utilisateur TME-M710 - Diagramasde.com - Diagramas electronicos y, 36 pages
INA-W900BT Manuel d'installation    Alpine INA-W900BT Installation manual [en] , 202 pages
CDE-135BT Manuel de l'utilisateur   CDE-135BT, 53 pages
IVE-W585BT Manuel de l'utilisateur   IVE-W585BT - Alpine Europe, 95 pages
PKG-RSE3DVD Manuel de l'utilisateur   PRODUCT GUIDE - Gentec International, 48 pages
HCE-C300R Manuel du propriétaire    Alpine HCE-C300R Owner`s manual, 198 pages
CDE-131R Manuel de l'utilisateur   Alpine - CD styreenheder - CDE-131R, 3 pages
IVA-D106 Manuel de l'utilisateur   Alpine IVA-D106 - Fischer HiFi AG, 3 pages
IVA-W205R Manuel de l'utilisateur   Головное устройство пассажира [en] , 121 pages
CDE-133BT Manuel du propriétaire     Alpine CDE-133BT Owner`s manual, 32 pages
CDE-135BT Manuel de l'utilisateur   Guide to vTuner on CDE [en] , 3 pages
HCE-C300R Manuel de l'utilisateur   Alpine - Mobile Media Enheder - IVA-D800R [en] , 5 pages
CDE-136BT Manuel de l'utilisateur   CDE-136BT - Alpine Europe, 49 pages
TME-M710 Manuel du propriétaire    Alpine TME-M710 Owner`s manual, 25 pages
PKG-1000 Manuel du propriétaire   Alpine PKG-1000 Owner`s manual, 20 pages
TMX-R680A Manuel de l'utilisateur   KTC-221GY 50-0387A-002 KTC-221TN 50-0387A-014 [en] , 7 pages