MOTOROLA
43
6.5
TIMER BEHAVIOR DURING WAIT and STOP
During the execution of the WAIT instruction, the timer clocks are active and the timer ac-
tivity continues undisturbed. If the timer interrupt is enabled when the final event occurs,
an interrupt will be generated and serviced.
It is recommended that the timer be disabled before executing the STOP instruction be-
cause, during the execution of the STOP instruction, the timer clocks are disabled and the
timer activity will be stopped. If, for example, the TIO pin is used as input, the changes
that occur while the chip is in STOP mode will be ignored.
6.6
OPERATING CONSIDERATIONS
The value 0 for the Timer Count Register (TCR) is considered a boundary case and af-
fects the behavior of the timer under the following conditions:
•
If the TCR is loaded with 0, and the counter contained a non-zero value before the
TCR was loaded, then after the timer is enabled, it will count 2
32
events, generate an
interrupt, and then generate an interrupt for every new event.
•
If the TCR is loaded with 0, and the counter contained a zero value prior to loading,
then after the timer is enabled, it will generate an interrupt for every event.
•
If the TCR is loaded with 0 after the timer has been enabled, the timer will be loaded
with 0 when the current count is completed and then generate an interrupt for every
new event.
6.7
SOFTWARE EXAMPLES
6.7.1
General purpose IO input
The following routine can be used to read the TIO0 input pin:
movep #$02000000,X:TCSR0
;clear TC2-TC0, set GPIO
;and clear INV for GPIO input
here
jset #22,x:TCSR0,here
; spin here until TIO0 is set
......
Summary of Contents for DSP96002
Page 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Page 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Page 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Page 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Page 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Page 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Page 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Page 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Page 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Page 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Page 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Page 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Page 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Page 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Page 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Page 888: ...MOTOROLA INDEX 1 INDEX ...
Page 889: ......