Download Print this page

Advertisement

Quick Links

Interfacing the MC68HC11 to the HCTL-2020
Application Brief M-023
Introduction
This application brief describes two interfaces for the
HCTL-2020 to the MC68HC. One is a port interface and
the other is a bus interface.
;******************************************************************************
;THIS SUBROUTINE IS USED TO READ DATA FROM THE HCTL-2020 ;FOR THE PORT
INTERFACE.
;THE SUBROUTINE RETURNS THE 6 BIT DATA FROM THE HCTL-;2020 IN REGISTER IX.
;* DENOTES ACTIVE LOW SIGNALS.
;******************************************************************************
RD2020:
PSHA
PSHB
LDAA#00
STAA$007
LDAA#0FA
STAA$004
LDAA$003
LDAB#0FB
STAB$004
LDAB$003
XGDX
;THE HCTL-2020
LDAA#0FF
STAA$004
PULB
PULA
RTS
;******************************************************************************
;THIS SUBROUTINE IS USED TO RESET THE HCTL-2020 IN THE ;PORT INTERFACE.
;******************************************************************************
RST2020:
PSHA
LDAA#0EF
STAA$004
LDAA#0FF
STAA$004
PULA
RTS

;SAVE REG A ON STACK.
;PUT PORT C IN INPUT MODE.
;SEL LO AND OE* LO.
;HIGH BYTE OF DATA IN REG. A.
;SEL HI AND OE* LO.
;LO BYTE IN REG. B.
;REGISTER IX HAS THE 6 BIT VALUE FROM
;SEL HI AND OE* HI.
;RESTORE REG B FROM STACK.
;RESTORE REG A FROM STACK.
;RST*LO.
;RST*HI.
Port Interface
The connections are shown in Figure , the schematic
titled "Port Interface". Port C is used to read the data in
and 3 pins on port B are used for the control signals to
the HCTL-2020. The E clock from the 68HCE9 is used to
clock the HCTL-2020. In this interface it is assumed that
the 68HCE9 is in the single chip mode.
The subroutines to read from the HCTL-2020 and to reset
the HCTL-2020 follow.

Advertisement

loading
Need help?

Need help?

Do you have a question about the MC68HC11 and is the answer not in the manual?

Questions and answers

Summary of Contents for Avago MC68HC11

  • Page 1 Interfacing the MC68HC11 to the HCTL-2020 Application Brief M-023 Introduction Port Interface This application brief describes two interfaces for the The connections are shown in Figure , the schematic HCTL-2020 to the MC68HC. One is a port interface and titled “Port Interface”. Port C is used to read the data in the other is a bus interface.
  • Page 2 RESET XIRQ MODB V cc CNTDCDR CNTCAS HCTL-2020 MODA 68HC11E9 NOTE: 68HC11E9 IS IN THE SINGLE CHIP MODE. REFER TO THE 68HC11E9 REFERENCE MANUAL FOR DETAILS. Figure 1. Port Interface Schematic. 5563-1...
  • Page 3 Bus Interface In applications where the expanded-mode is already be- ing used, it is convenient to use the bus interface to the HCTL-2020. Figure 2, “Bus Interface Control Signals”, is the schematic diagram to generate the control signals in the expanded mode.
  • Page 4 For product information and a complete list of distributors, please go to our web site: Avago, Avago Technologies, and the A logo are trademarks of Avago Technologies, Limited in the United States and other countries. Data subject to change. Copyright © 2007 Avago Technologies Limited. All rights reserved.