[an error occurred while processing this directive] [an error occurred while processing this directive]
поправка: файл наз-ся startup.asm, внутри него есть раздел (+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Алексей Мусин 26 апреля 2002 г. 07:21
В ответ на: Ответ: отправлено wladimir.. 25 апреля 2002 г. 18:32

;====================================================================
; 4.8 External Bus Interface
;====================================================================

#set SINGLE_CHIP 0 ; all internal
#set INTROM_EXTBUS 1 ; mask ROM, FLASH, or OTP ROM used
#set EXTROM_EXTBUS 2 ; full external bus (INROM not used)

#set BUSMODE INTROM_EXTBUS ; <<< set bus mode (see mode pins)

#set ROMMIRROR OFF ; <<< ROM mirror function ON/OFF
; MB90500/400 family only

; In Internal ROM / External Bus mode one can select whether to mirror
; area FF4000..FFFFFF to 004000..00FFFF. This is necessary to get the
; compiler ROMCONST option working. However, if ROMCONST is not used,
; this area might be used to access external memory. This is intended
; to increase performance, if a lot of dynamic data have to be accessed.
; In SMALL and MEDIUM model these data can be accessed within bank 0,
; which allows to use near addressing.
; These controller without the ROMM-control register always have the
; mirror function on in INROM mode.

; If BUSMODE is "SINGLE_CHIP", ignore remaining bus settings.

#set WIDTH_8 0 ; 8 Bit external bus
#set WIDTH_16 1 ; 16 Bit external bus

#set AUTOWAIT_IO 0 ; <<< 0..3 waitstates for IO area
#set AUTOWAIT_LO 0 ; <<< 0..3 for lower external area
#set AUTOWAIT_HI 0 ; <<< 0..3 for higher external area

#set ADDR_PINS B'11111000 ; <<< select used address lines
; A23..A16 to be output.
; This is the value to be set in HACR-register. "1" means: pin used as
; IO-port. (B'10000000 => A23 not used, B'00000001 => A16 not used)

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru