w65c22 Western Design Center, Inc., w65c22 Datasheet - Page 17

no-image

w65c22

Manufacturer Part Number
w65c22
Description
W65c22n And W65c22s Versatile Interface Adapter Via Datasheet
Manufacturer
Western Design Center, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
w65c22N6TPG-14
Manufacturer:
WDC
Quantity:
20 000
Company:
Part Number:
w65c22N6TPG-14
Quantity:
10
It should be noted that the microprocessor does not write directly into the T1 low order counter. Instead, this
half of the counter is loaded automatically from the low order register when the microprocessor writes into
the high order register and counter. In fact, it may not be necessary to write to the low order register in
some applications since the timing operation is triggered by writing to the high order register and counter.
2.6
Timer 1 One-Shot Mode
Interval Timer T1 may operate in the One-Shot Mode that allows the generation of a single Interrupt Flag
each time the Timer is loaded. The Timer can also be programmed to produce a single negative pulse on
Data Port line PB7.
To generate a single interrupt, it is required that bits 6 and 7 of the ACR be a Logic 0. The low order T1
counter or the low order T1 latch must then be loaded with the low order count value. Note that a load to a
low order T1 counter is effectively a load to a low order T1 latch. Next, the high order count value must be
loaded into the high order T1 counter, at which time the value is simultaneously loaded into the high order
T1 latch. During this load sequence, the contents of low order T1 latch is transferred to low order T1
counter. The counter will start counting down on the next PHI2 clock following the load sequence into high
order T1 counter, and will decrement at the PHI2 clock rate. Once the T1 counter reaches a zero count, the
Interrupt Flag is set. To generate a negative pulse on PB7, the sequence is identical to the above except
ACR7 must be a Logic 1. PB7 will then go to a Logic 0 following the load to high order T1 counter, and will
go to a Logic 1 again when the counter reaches a zero count. Once set, IFR6 the T1 Interrupt Flag is reset
by either writing high order T1 latch, or by reading low order T1 counter, see Figure 2-3.
Figure 2-3 One-Shot Mode (Timer 1 and Timer 2)
17

Related parts for w65c22