FORCE Computers SYS68K/ISCSI-1 — SYS68K/ISCSI-1 User's Manual (EN)

MC68230LS-MC68230L 10 TCR o Timer Enable o Disabled. 1 Enabled. state. (Bits 2, 1, and 0 of the Timer Control Register speCify the state I Write operations to these addresses resdlt In a normal bus cycle but the data IS Ignored Each of the registers is Individually addressable, or the group may be accessed with the MOVEP. L or the MOVEP W instructions. The address one less than the address of CNTR H IS the null register, and IS reserved 5>0 that zeros are read In the upper 8 bits of the destination data register when a MOVEP. L IS used.

Data wntten to thiS address IS Ignored Timer Interrupt Vector Register (TIVR) - The timer inter- rupt vector register contains the 8-bit vector supplied when the timer interrupt acknowledge pin TlACK is asserted. The register is readable and wnteable at all times, and the same value is always obtained from a normal read cycle and a timer Interrupt acknowledge bus cycle (TIACK). When the RESET pin is asserted the value of $OF is automatically loaded into the register Refer to Timer Interrupt Acknowledge Cycle section for more details. Timer Status Register (TSR) - I. 1 : 1 : 1 : 1 : 1 :

1 ·1':5 I Counter Preload Register H, M, L (CPRH-L) 7 6 5 4 3 2 1 0 Bit Bit Bit Bit Bit Bit Bit Bit 23 22 21 20 19 18 17 16 CPRH The Timer Status Register contains one bit from which the zero detect status can be determined The lDS status b,r Iblt Bit Bit Bit Bit Bit Bit Bit Bit 15 14 13 12 11 10 9 8 CPRM 01 IS an edge· sensitive flip flop Ihat IS set to 1 when Ihe 24 bit counter decrements from $()()()(x)1 to $0ClQ000 The lDS status bit IS cleared to 0 follOWing the direct clear operation (similar to that of the portsl, or when the timer IS halted Note also that when the RESET pin IS asserted the tlmpr IS disabled, and thus enters the halt state Bit Bit Bit Bir 8,t Bit Bit Bit 7 6 5 4 3 2 1 0 CPRl rhe Counter Preload Registers are a group of three 8-blt reljlsters used for storing data to be transferred to the counter t:ach llf the registers IS individually addressable, or ThiS register IS always readable Without consequence A wflte access performs a direct clear operation If bit 0 In thc; wlilten data IS 1 FollOWing that.

the l[)S bit IS 0 the (FOUP may be accessed with the MOVEP L or the MOVEP W instructions The address one less than the ad- dress of CPRH IS the null register, and IS reserved so that zeros are read In the upper 8 bits of the destination data register when a MOVEP L IS used Data written to thiS ad- dress IS Ignored - ThiS register IS constructed With a reset dominant S R flliJ flop so that all clearing conditions prevail ovel Ihe posolble zero detect condition Bits 7·1 are unused and are read as 0 The registers are readable and wrneable at all times.

A read cycle proceeds Independently of any transfer to the counter, which may be occunng simultaneously To Insure proper operation of the Pill Timer, a value of TIMER APPLICATIONS SUMMARY ThiS section outlones programming of Ihe l'fTH" C()f\tr()1 Reqlster for several tYPical examples $CXXJOOO may not be stored In the Counter Preload Registers for use With Ihe counter Periodic Interrupt Generator I ti I ':J ~ .\ I '()Ul TIAlj I 0 I l-~j (I" * , " ,-"lnlr(li lr·Jt· J The RESET Pin does not affect the contents of these registers 7 6 5 4 3 2 1 0 Count Register H, M, L (CNTRH-L) - )l .,. ' ..

Bit Bit Bit Bit Bit Bit Bit Bit 23 22 21 20 19 18 17 16 CNTRH In thiS confrguratlon I"e timer genc;'citf'S d pfHI0cJ"~ , ',., rupt The TOUT pin IS connected tn the :nll;" .~)' request Clfcultry and the T lACK pin may he lIseri ilS d" III It·, rupt acknowledge Input to the timer The TIN pin rnd, D,; used as a clock Input Bit Bit Bit Bit Bit Bit Bit Bit 15 14 13 12 11 10 9 8 CNTRM The processor loads the Counter Preloild Registers clf\[j Timer Control Register, and then eflilbles the time' Whf!" the 24 bit counter passes from $()()()(X)1 to SOClQOOO thp IDS status bit IS set and the TOUT I,nter'urt requestl pin 15 asserted At the next clock to Ihe 24 bit counter It IS ilgdll' loaded With the contents of the CPR's, anej thplI-'aftP' decrements In normal operation.

the process()[ must (illect clear the status bit to negate the Interrupt request [see Figure 15). Bit Bit Bit Bit Bit Bit Bit Bit 7 6 5 4 3 2 1 0 CNTRl The count registers are a group of three 8-blt addresses at which the counter can be read. The contents of the counter are not latched during a read bus cycle; thUS, the data read at these addresses IS not guaranteed if the timer is in the run MOTOROLA Semiconductor Products Inc. 28