⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tb_tc10gp_4m_sdram.mac

📁 UCOS II源码 内含SOURCE 解压后使用
💻 MAC
字号:
; BTriBoard.MAC - startup macro for Tricore with TC10GP processor
; Version 1.00 11/16/99 - Initial version based on old Tricore.mac file
;   	- TB_TC10GP_4M_SDRAM.mac -
; Minimum required: we use reset values for most of the setting.
; 
reset

EBUCON=0x0000FF68

ADDSEL0=0xA0000061	; flash
BUSCON0=0x00420a7c

ADDSEL1=0xB0000051	; SDRAM: 4M
BUSCON1=0x01023000

ADDSEL2=0x1		; I/O (Cirrus), 0xE0000000-0xE0001FFF 
BUSCON2=0x80415FFF

ADDSEL3=0x0		; not used yet
BUSCON3=0x80415FFF

DRMCON1=0x00000023
DRMCON0=0x1F000030
BCUCON=0x4001FFFF

;PLLCLC=0x00070000		; Set PLL clock 20Mhz
;PLLCLC=0x00060000		; Set PLL clock 22Mhz
;PLLCLC=0x00050000		; Set PLL clock 25Mhz
;PLLCLC=0x00040000		; Set PLL clock 33Mhz
;PLLCLC=0x00030000		; Set PLL clock 40Mhz
;PLLCLC=0x00020000		; Set PLL clock 50Mhz
;PLLCLC=0x00010000		; Set PLL clock 66Mhz
;PLLCLC=0x00000000		; Set PLL clock 100Mhz

; make sure, that debugger will know the frequency too ...
; clock 20

WDTCON1=WDTCON1 | 0x8	; Disable watchdog

; define default memory mapping ...
map all none			; it is easier to define places where memory exists

map 0x80000000 0x8002FFFF user  ; LOC_CRAM memory on-chip
map 0x88000000 0x88001FFF user  ; CSRAM memory on-chip
map 0xD0000000 0xD0007FFF user  ; DSRAM memory on-chip
map 0xf0000000 0xffffffff user  ; Memory mapped devices are here ... 

map 0xA0000000 0xA007FFFF user  ; FLASH
map 0xB0000000 0xB00FFFFF user  ; SRAM
map 0xE0000000 0xE0001FFF user  ; IO 
map 0xE0000000 0xE0001FFF volatile ; IO 

map 0xBE000000 0xBE0FFFFF user  ; EMU

map	; display current mapping

; End of file  TB_TC10GP_4M_SDRAM.mac

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -