diff options
Diffstat (limited to 'nuttx/arch/hc/src/mc9s12ne64/chip.h')
-rwxr-xr-x | nuttx/arch/hc/src/mc9s12ne64/chip.h | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/nuttx/arch/hc/src/mc9s12ne64/chip.h b/nuttx/arch/hc/src/mc9s12ne64/chip.h index f8f8b0e21..cb8df40d8 100755 --- a/nuttx/arch/hc/src/mc9s12ne64/chip.h +++ b/nuttx/arch/hc/src/mc9s12ne64/chip.h @@ -47,7 +47,46 @@ * Definitions ************************************************************************************/ -#define HCS12_MODULE_BASE 0x0000 +/* Memory Map. + * + * At reset: + * 0x0000–0x03ff: register space + * 0x0000–0x1fff: 7K RAM (1K RAM hidden behind register space) + */ + +#define HCS12_REG_BASE 0x0000 /* 0x0000-0x03ff: Mapped Register base address */ +#define HCS12_EEPROM_BASE 0x0800 /* 0x0800: Mapped EEPROM base address */ +#define HCS12_SRAM_BASE 0x2000 /* 0x2000-0x3fff: Mapped SRAM base address */ +#define HCS12_FFLASH1_BASE 0x4000 /* 0x4000-0x7fff: 16Kb Fixed FLASH EEPROM */ +#define HCS12_PPAGE_BASE 0x8000 /* 0x8000-0xbfff: 16Kb Page window */ +#define HCS12_FFLASH2_BASE 0xc000 /* 0xc000-0xffff: 16Kb Fixed FLASH EEPROM */ + +/* Device Register Map Overview (all relatvie to HCS12_REG_BASE) */ + +#define HCS12_CORE1_BASE 0x0000 /* 0x0000–0x0017: Ports A, B, E, Modes, Inits (MMC, INT, MEBI) */ + /* 0x0018–0x0019: Reserved */ +#define HCS12_DEVID_BASE 0x001a /* 0x001a-0x001b: Device ID register (PARTID) */ +#define HCS12_CORE2_BASE 0x001C /* 0x001c–0x001f: MEMSIZ, IRQ, HPRIO (INT, MMC) */ +#define HCS12_CORE3_BASE 0x0020 /* 0x0020-0x002f: DBG */ +#define HCS12_CORE4_BASE 0x0030 /* 0x0030–0x0033: PPAGE, Port K (MEBI, MMC) */ +#define HCS12_CRG_BASE 0x0034 /* 0x0034–0x003f: Clock and Reset Generator (PLL, RTI, COP) */ +#define HCS12_TIM_BASE 0x0040 /* 0x0040–0x006f: Standard Timer 16-bit 4 channels (TIM) */ + /* 0x0070–0x007f: Reserved */ +#define HCS12_ATD_BASE 0x0080 /* 0x0080–0x009f: Analog-to-Digital Converter 10-bit, 8-channel (ATD) */ + /* 0x00a0–0x00c7: Reserved */ +#define HCS12_SCI0_BASE 0x00c8 /* 0x00c8–0x00cf: Serial Communications Interface 0 (SCI0) */ +#define HCS12_SCI1_BASE 0x00d0 /* 0x00d0–0x00d7: Serial Communications Interface 1 (SCI1) */ +#define HCS12_SPI_BASE 0x00d8 /* 0x00d8–0x00df: Serial Peripheral Interface (SPI) */ +#define HCS12_IIC_BASE 0x00e0 /* 0x00e0–0x00e7: Inter IC Bus (IIC) */ + /* 0x00e8–0x00ff: Reserved */ +#define HCS12_FLASH_BASE 0x0100 /* 0x0100–0x010f: FLASH Control Register */ + /* 0x0110–0x011f: Reserved */ +#define HCS12_EPHY_BASE 0x0120 /* 0x0120–0x0123: Ethernet Physical Interface (EPHY) */ + /* 0x0124–0x013f: Reserved */ +#define HCS12_EMAC_BASE 0x0140 /* 0x0140–0x016f: Ethernet Media Access Controller (EMAC) */ + /* 0x0170–0x023f: Reserved */ +#define HCS12_PIM_BASE 0x0240 /* 0x0240–0x026f: Port Integration Module (PIM) */ + /* 0x0270–0x03ff: Reserved */ /************************************************************************************ * Public Types |