Motorola MC68340 User Manual page 375

Integrated processor with dma
Hide thumbs Also See for MC68340:
Table of Contents

Advertisement

MOVE.W
#$8A10,CR1(A0)
* If SR TG bit=0, continue looping TGATE is asserted,
* else TG=1 indicating TGATE was negated. When TG=1, counting is stopped.
LOOP3
BTST.B
BEQ.B
LOOP3
* Counting is complete. To determine the number of cycles counted, the value
* in CNTR1 must be read, inverted, and incremented by 1.
MOVE.W
CNTR1(A0),D0
NOT.W
D0
ADDQ.W
#$1,DO
* D0 contains the number of cycles counted.
***************************************************************************
END
***************************************************************************
MOTOROLA
Freescale Semiconductor, Inc.
#$5,SR1(A0)
MC68340 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
8- 31

Advertisement

Table of Contents
loading

Table of Contents