📄 sam9261.s
字号:
SMC_PULSE4_OFS # 0x04 ; CS4 Pulse Register Address Offset
SMC_CYCLE4_OFS # 0x04 ; CS4 Cycle Register Address Offset
SMC_MODE4_OFS # 0x04 ; CS4 Mode Register Address Offset
SMC_SETUP5_OFS # 0x04 ; CS5 Setup Register Address Offset
SMC_PULSE5_OFS # 0x04 ; CS5 Pulse Register Address Offset
SMC_CYCLE5_OFS # 0x04 ; CS5 Cycle Register Address Offset
SMC_MODE5_OFS # 0x04 ; CS5 Mode Register Address Offset
SMC_SETUP6_OFS # 0x04 ; CS6 Setup Register Address Offset
SMC_PULSE6_OFS # 0x04 ; CS6 Pulse Register Address Offset
SMC_CYCLE6_OFS # 0x04 ; CS6 Cycle Register Address Offset
SMC_MODE6_OFS # 0x04 ; CS6 Mode Register Address Offset
SMC_SETUP7_OFS # 0x04 ; CS7 Setup Register Address Offset
SMC_PULSE7_OFS # 0x04 ; CS7 Pulse Register Address Offset
SMC_CYCLE7_OFS # 0x04 ; CS7 Cycle Register Address Offset
SMC_MODE7_OFS # 0x04 ; CS7 Mode Register Address Offset
;// <e> Static Memory Controller (SMC)
SMC_SETUP EQU 0
;// <e> SMC Chip Select 0 Configuration
;// <h> Chip Select 0 Setup Register (SMC_SETUP0)
;// <o1.0..5> NWE_SETUP: NWE Setup Length <0-31>
;// <i> NWE setup length = (128*NWE_SETUP[5]+NWE_SETUP[4..0]) clock cycles
;// <o1.8..13> NCS_WR_SETUP: NCS Setup Length in WRITE Access <0-31>
;// <i> NCS setup length = (128*NCS_WR_SETUP[5]+NCS_WR_SETUP[4..0]) clock cycles
;// <o1.16..21> NRD_SETUP: NRD Setup Length <0-31>
;// <i> NRD setup length = (128*NRD_SETUP[5]+NRD_SETUP[4..0]) clock cycles
;// <o1.24..29> NCS_RD_SETUP: NCS Setup Length in READ Access <0-31>
;// <i> NCS setup length = (128*NCS_RD_SETUP[5]+NCS_RD_SETUP[4..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 0 Pulse Register (SMC_PULSE0)
;// <o2.0..6> NWE_PULSE: NWE Pulse Length <0-63>
;// <i> NWE pulse length = (128*NWE_PULSE[6]+NWE_PULSE[5..0]) clock cycles
;// <o2.8..14> NCS_WR_PULSE: NCS Pulse Length in WRITE Access <0-63>
;// <i> NCS pulse length = (128*NCS_WR_PULSE[6]+NCS_WR_PULSE[5..0]) clock cycles
;// <o2.16..22> NRD_PULSE: NRD Pulse Length <0-63>
;// <i> NRD pulse length = (128*NRD_PULSE[6]+NRD_PULSE[5..0]) clock cycles
;// <o2.24..30> NCS_RD_PULSE: NCS Pulse Length in READ Access <0-63>
;// <i> NCS pulse length = (128*NCS_RD_PULSE[6]+NCS_RD_PULSE[5..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 0 Cycle Register (SMC_CYCLE0)
;// <o3.0..8> NWE_CYCLE: Total Write Cycle Length <0-511>
;// <i> Write cycle length = (NWE_CYCLE[8..7]*256+NWE_CYCLE[6..0]) clock cycle
;// <o3.16..24> NRD_CYCLE: Total Read Cycle Length <0-511>
;// <i> Read cycle length = (NRD_CYCLE[8..7]*256+NRD_CYCLE[6..0]) clock cycle
;// </h>
;//
;// <h> Chip Select 0 Mode Register (SMC_MODE0)
;// <o4.0> READ_MODE:
;// <0=> The read operation is controlled by the NCS signal
;// <1=> The read operation is controlled by the NRD signal
;// <o4.1> WRITE_MODE:
;// <0=> The write operation is controlled by the NCS signal
;// <1=> The write operation is controlled by the NWE signal
;// <o4.4..5> EXNW_MODE: NWAIT Mode
;// <0=> Disabled
;// <2=> Frozen Mode
;// <3=> Ready Mode
;// <o4.8> BAT: Byte Access Type
;// <0=> 0
;// <1=> 1
;// <i> 0: - Write operation is controlled using: NCS, NWE, NBS0, NBS1, NBS2, NBS3
;// <i> - Read operation is controlled using: NCS, NRD, NBS0, NBS1, NBS2, NBS3
;// <i> 1: - Write operation is controlled using: NCS, NWR0, NWR1, NWR2, NWR3
;// <i> - Read operation is controlled using: NCS, NRD
;// <o4.12..13> DBW: Data Bus Width
;// <0=> 8-bit bus
;// <1=> 16-bit bus
;// <2=> 32-bit bus
;// <o4.16..19> TDF_CYCLES: Data Float Time <0-15>
;// <o4.20> TDF_MODE: TDF Optimization Enabled
;// <o4.24> PMEN: Page Mode Enabled
;// <o4.28..29> PS: Page Size
;// <0=> 4-byte page
;// <1=> 8-byte page
;// <2=> 16-byte page
;// <3=> 32-byte page
;// </h>
;// </e>
SMC_CS0_SETUP EQU 0x00000000
SMC_SETUP0_Val EQU 0x00000000
SMC_PULSE0_Val EQU 0x01010101
SMC_CYCLE0_Val EQU 0x00010001
SMC_MODE0_Val EQU 0x10001000
;// <e> SMC Chip Select 1 Configuration
;// <h> Chip Select 1 Setup Register (SMC_SETUP1)
;// <o1.0..5> NWE_SETUP: NWE Setup Length <0-31>
;// <i> NWE setup length = (128*NWE_SETUP[5]+NWE_SETUP[4..0]) clock cycles
;// <o1.8..13> NCS_WR_SETUP: NCS Setup Length in WRITE Access <0-31>
;// <i> NCS setup length = (128*NCS_WR_SETUP[5]+NCS_WR_SETUP[4..0]) clock cycles
;// <o1.16..21> NRD_SETUP: NRD Setup Length <0-31>
;// <i> NRD setup length = (128*NRD_SETUP[5]+NRD_SETUP[4..0]) clock cycles
;// <o1.24..29> NCS_RD_SETUP: NCS Setup Length in READ Access <0-31>
;// <i> NCS setup length = (128*NCS_RD_SETUP[5]+NCS_RD_SETUP[4..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 1 Pulse Register (SMC_PULSE1)
;// <o2.0..6> NWE_PULSE: NWE Pulse Length <0-63>
;// <i> NWE pulse length = (128*NWE_PULSE[6]+NWE_PULSE[5..0]) clock cycles
;// <o2.8..14> NCS_WR_PULSE: NCS Pulse Length in WRITE Access <0-63>
;// <i> NCS pulse length = (128*NCS_WR_PULSE[6]+NCS_WR_PULSE[5..0]) clock cycles
;// <o2.16..22> NRD_PULSE: NRD Pulse Length <0-63>
;// <i> NRD pulse length = (128*NRD_PULSE[6]+NRD_PULSE[5..0]) clock cycles
;// <o2.24..30> NCS_RD_PULSE: NCS Pulse Length in READ Access <0-63>
;// <i> NCS pulse length = (128*NCS_RD_PULSE[6]+NCS_RD_PULSE[5..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 1 Cycle Register (SMC_CYCLE1)
;// <o3.0..8> NWE_CYCLE: Total Write Cycle Length <0-511>
;// <i> Write cycle length = (NWE_CYCLE[8..7]*256+NWE_CYCLE[6..0]) clock cycle
;// <o3.16..24> NRD_CYCLE: Total Read Cycle Length <0-511>
;// <i> Read cycle length = (NRD_CYCLE[8..7]*256+NRD_CYCLE[6..0]) clock cycle
;// </h>
;//
;// <h> Chip Select 1 Mode Register (SMC_MODE1)
;// <o4.0> READ_MODE:
;// <0=> The read operation is controlled by the NCS signal
;// <1=> The read operation is controlled by the NRD signal
;// <o4.1> WRITE_MODE:
;// <0=> The write operation is controlled by the NCS signal
;// <1=> The write operation is controlled by the NWE signal
;// <o4.4..5> EXNW_MODE: NWAIT Mode
;// <0=> Disabled
;// <2=> Frozen Mode
;// <3=> Ready Mode
;// <o4.8> BAT: Byte Access Type
;// <0=> 0
;// <1=> 1
;// <i> 0: - Write operation is controlled using: NCS, NWE, NBS0, NBS1, NBS2, NBS3
;// <i> - Read operation is controlled using: NCS, NRD, NBS0, NBS1, NBS2, NBS3
;// <i> 1: - Write operation is controlled using: NCS, NWR0, NWR1, NWR2, NWR3
;// <i> - Read operation is controlled using: NCS, NRD
;// <o4.12..13> DBW: Data Bus Width
;// <0=> 8-bit bus
;// <1=> 16-bit bus
;// <2=> 32-bit bus
;// <o4.16..19> TDF_CYCLES: Data Float Time <0-15>
;// <o4.20> TDF_MODE: TDF Optimization Enabled
;// <o4.24> PMEN: Page Mode Enabled
;// <o4.28..29> PS: Page Size
;// <0=> 4-byte page
;// <1=> 8-byte page
;// <2=> 16-byte page
;// <3=> 32-byte page
;// </h>
;// </e>
SMC_CS1_SETUP EQU 0x00000000
SMC_SETUP1_Val EQU 0x00000000
SMC_PULSE1_Val EQU 0x01010101
SMC_CYCLE1_Val EQU 0x00010001
SMC_MODE1_Val EQU 0x10001000
;// <e> SMC Chip Select 2 Configuration
;// <h> Chip Select 2 Setup Register (SMC_SETUP2)
;// <o1.0..5> NWE_SETUP: NWE Setup Length <0-31>
;// <i> NWE setup length = (128*NWE_SETUP[5]+NWE_SETUP[4..0]) clock cycles
;// <o1.8..13> NCS_WR_SETUP: NCS Setup Length in WRITE Access <0-31>
;// <i> NCS setup length = (128*NCS_WR_SETUP[5]+NCS_WR_SETUP[4..0]) clock cycles
;// <o1.16..21> NRD_SETUP: NRD Setup Length <0-31>
;// <i> NRD setup length = (128*NRD_SETUP[5]+NRD_SETUP[4..0]) clock cycles
;// <o1.24..29> NCS_RD_SETUP: NCS Setup Length in READ Access <0-31>
;// <i> NCS setup length = (128*NCS_RD_SETUP[5]+NCS_RD_SETUP[4..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 2 Pulse Register (SMC_PULSE2)
;// <o2.0..6> NWE_PULSE: NWE Pulse Length <0-63>
;// <i> NWE pulse length = (128*NWE_PULSE[6]+NWE_PULSE[5..0]) clock cycles
;// <o2.8..14> NCS_WR_PULSE: NCS Pulse Length in WRITE Access <0-63>
;// <i> NCS pulse length = (128*NCS_WR_PULSE[6]+NCS_WR_PULSE[5..0]) clock cycles
;// <o2.16..22> NRD_PULSE: NRD Pulse Length <0-63>
;// <i> NRD pulse length = (128*NRD_PULSE[6]+NRD_PULSE[5..0]) clock cycles
;// <o2.24..30> NCS_RD_PULSE: NCS Pulse Length in READ Access <0-63>
;// <i> NCS pulse length = (128*NCS_RD_PULSE[6]+NCS_RD_PULSE[5..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 2 Cycle Register (SMC_CYCLE2)
;// <o3.0..8> NWE_CYCLE: Total Write Cycle Length <0-511>
;// <i> Write cycle length = (NWE_CYCLE[8..7]*256+NWE_CYCLE[6..0]) clock cycle
;// <o3.16..24> NRD_CYCLE: Total Read Cycle Length <0-511>
;// <i> Read cycle length = (NRD_CYCLE[8..7]*256+NRD_CYCLE[6..0]) clock cycle
;// </h>
;//
;// <h> Chip Select 2 Mode Register (SMC_MODE2)
;// <o4.0> READ_MODE:
;// <0=> The read operation is controlled by the NCS signal
;// <1=> The read operation is controlled by the NRD signal
;// <o4.1> WRITE_MODE:
;// <0=> The write operation is controlled by the NCS signal
;// <1=> The write operation is controlled by the NWE signal
;// <o4.4..5> EXNW_MODE: NWAIT Mode
;// <0=> Disabled
;// <2=> Frozen Mode
;// <3=> Ready Mode
;// <o4.8> BAT: Byte Access Type
;// <0=> 0
;// <1=> 1
;// <i> 0: - Write operation is controlled using: NCS, NWE, NBS0, NBS1, NBS2, NBS3
;// <i> - Read operation is controlled using: NCS, NRD, NBS0, NBS1, NBS2, NBS3
;// <i> 1: - Write operation is controlled using: NCS, NWR0, NWR1, NWR2, NWR3
;// <i> - Read operation is controlled using: NCS, NRD
;// <o4.12..13> DBW: Data Bus Width
;// <0=> 8-bit bus
;// <1=> 16-bit bus
;// <2=> 32-bit bus
;// <o4.16..19> TDF_CYCLES: Data Float Time <0-15>
;// <o4.20> TDF_MODE: TDF Optimization Enabled
;// <o4.24> PMEN: Page Mode Enabled
;// <o4.28..29> PS: Page Size
;// <0=> 4-byte page
;// <1=> 8-byte page
;// <2=> 16-byte page
;// <3=> 32-byte page
;// </h>
;// </e>
SMC_CS2_SETUP EQU 0x00000000
SMC_SETUP2_Val EQU 0x00000000
SMC_PULSE2_Val EQU 0x01010101
SMC_CYCLE2_Val EQU 0x00010001
SMC_MODE2_Val EQU 0x10001000
;// <e> SMC Chip Select 3 Configuration
;// <h> Chip Select 3 Setup Register (SMC_SETUP3)
;// <o1.0..5> NWE_SETUP: NWE Setup Length <0-31>
;// <i> NWE setup length = (128*NWE_SETUP[5]+NWE_SETUP[4..0]) clock cycles
;// <o1.8..13> NCS_WR_SETUP: NCS Setup Length in WRITE Access <0-31>
;// <i> NCS setup length = (128*NCS_WR_SETUP[5]+NCS_WR_SETUP[4..0]) clock cycles
;// <o1.16..21> NRD_SETUP: NRD Setup Length <0-31>
;// <i> NRD setup length = (128*NRD_SETUP[5]+NRD_SETUP[4..0]) clock cycles
;// <o1.24..29> NCS_RD_SETUP: NCS Setup Length in READ Access <0-31>
;// <i> NCS setup length = (128*NCS_RD_SETUP[5]+NCS_RD_SETUP[4..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 3 Pulse Register (SMC_PULSE3)
;// <o2.0..6> NWE_PULSE: NWE Pulse Length <0-63>
;// <i> NWE pulse length = (128*NWE_PULSE[6]+NWE_PULSE[5..0]) clock cycles
;// <o2.8..14> NCS_WR_PULSE: NCS Pulse Length in WRITE Access <0-63>
;// <i> NCS pulse length = (128*NCS_WR_PULSE[6]+NCS_WR_PULSE[5..0]) clock cycles
;// <o2.16..22> NRD_PULSE: NRD Pulse Length <0-63>
;// <i> NRD pulse length = (128*NRD_PULSE[6]+NRD_PULSE[5..0]) clock cycles
;// <o2.24..30> NCS_RD_PULSE: NCS Pulse Length in READ Access <0-63>
;// <i> NCS pulse length = (128*NCS_RD_PULSE[6]+NCS_RD_PULSE[5..0]) clock cycles
;// </h>
;//
;// <h> Chip Select 3 Cycle Register (SMC_CYCLE3)
;// <o3.0..8> NWE_CYCLE: Total Write Cycle Length <0-511>
;// <i> Write cycle length = (NWE_CYCLE[8..7]*256+NWE_CYCLE[6..0]) clock cycle
;// <o3.16..24> NRD_CYCLE: Total Read Cycle Length <0-511>
;// <i> Read cycle length = (NRD_CYCLE[8..7]*256+NRD_CYCLE[6..0]) clock cycle
;// </h>
;//
;// <h> Chip Select 3 Mode Register (SMC_MODE3)
;// <o4.0> READ_MODE:
;// <0=> The read operation is controlled by the NCS signal
;// <1=> The read operation is controlled by the NRD signal
;// <o4.1> WRITE_MODE:
;// <0=> The write operation is controlled by the NCS signal
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -