178/317
6 - STMicroelectronics Programming Tools
EXTERN padr
; port A data register
EXTERN paddr
; port A data direction register
EXTERN paor
; port A option register
EXTERN pbdr
; port B data register
EXTERN pbddr
; port B data direction register
EXTERN pbor
; port B option register
EXTERN pcdr
; port C data register
EXTERN pcddr
; port C data direction register
EXTERN pcor
; port C option register
;*************************************************************
;
SPI
registers
;*************************************************************
EXTERN spidr
; SPI data register
EXTERN spicr
; SPI control register
EXTERN spisr
; SPI status register
; bits names of spicr :
SPIE
equ 7
; serial peripheral interrupt enable
SPE
equ 6
; serial peripheral output enable
MSTR
equ 4
; master
CPOL
equ 3
; clock polarity
CPHA
equ 2
; clock phase
SPR1
equ 1
; serial peripheral rate bit1
SPR0
equ 0
; serial peripheral rate bit0
; bit names of spisr :
SPIF
equ 7
; serial peripheral data transfert flag
WCOL
equ 6
; write collision status bit
MODF
equ 4
; mode fault flag
(to be continued)
In addition to the external declarations, this file provides the E QU definitions of some con-
stants that allow you to name the bits within the bytes using mnemonics. This improves the
legibility of the source text.
6.4.3.4 The
MAP72251.ASM
file
This file contains only absolute segment declarations. These declarations tell the linker where
the ROM, the RAM and the stack are. Here is the text of the file:
ST7/
;*************************************************************
;*
ST72251 memory mapping
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...