Download ECED 3204. Microprocessors - Myweb.dal.ca
Transcript
ECED 3204. Microprocessors M68HC11 Microcontroller ; Labels shared with other module(s) public DBUFR ; Variable label other module(s) ; can have access to extern HtoD ; Subroutine label defined in other module equ equ equ equ equ equ $102B $102C $102E $102F $4000 $DFFF ; Address for the SCI line speed register ; Address for the SCI control register 1 ; Address for the SCI status register ; Address for the SCI data register ; FlipFlop Address ; Address of top-of-stack equ equ equ equ $7E $88 $80 !10667 ; OpCode for JMP instruction ; Control byte for SCCR2, flags TE = 1, TIE = 1 ; TDRE bit mask for SCSR ; Value used to create a 32ms delay, ; Addresses BAUD SCCR1 SCSR SCDR FFLOP STK_TOP ; Constants JMPOpCode TIE_TE TDRE DELAY Main Program Example (Part 1) Dalhousie University 69 Jose A. Gonzalez-Cueto