Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
memory_map [2021/09/23 22:48] – [UART] pulkomandymemory_map [2023/04/16 10:15] (current) – [External bus configuration] pulkomandy
Line 31: Line 31:
 The direction register is 0 for input pins, 1 for output pins. The direction register is 0 for input pins, 1 for output pins.
  
 +===== Global configuration register =====
 +
 +  * Bit 0: IOA special functions select
 +  * Bit 1: IOB special functions select
 +
 +These two bits allow to select one of two special functions for the IOA and IOB registers. Then each pin in that IO register can be switched between normal GPIO and special function using the MASK register.
 +
 +For IOA, special = 0 selects the TFT display interface, special = 1 selects the STN LCD interface and I2S audio output.
 +
 +For IOB, only special = 0 is documented and it selects the CSB0, CSB1, CSB2 chip select pins for external memory (further configured by port 3D23)
 +
 +  * Bit 2: IOA Wakeup enable
 +  * Bit 3: IOB Wakeup enable
 +  * Bit 4: IOC Wakeup enable
 +
 +These bits enable system wakeup from sleep mode from activity on the corresponding IO ports. A typical setup on the V.Smile is to enable wakeup on port B to detect when the ON button is pressed.
 ===== Input pins configuration ===== ===== Input pins configuration =====
  
Line 198: Line 214:
      * 00 - Map entire range to ROMCSB       * 00 - Map entire range to ROMCSB 
      * 01 - Map ''0x4000 - 0x1fffff'' to ROMCSB, ''0x200000 - 0x3fffff'' to CSB1      * 01 - Map ''0x4000 - 0x1fffff'' to ROMCSB, ''0x200000 - 0x3fffff'' to CSB1
-     * 1x - Map ''0x4000 - 0x0fffff'' to ROMCSB, ''0x100000 - 0x1fffff'' to CSB1, ''0x200000 - 0x2fffff'' to CSB2, ''0x300000 - 0x3fffff'' to CSB1+     * 1x - Map ''0x4000 - 0x0fffff'' to ROMCSB, ''0x100000 - 0x1fffff'' to CSB1, ''0x200000 - 0x2fffff'' to CSB2, ''0x300000 - 0x3fffff'' to CSB3
    * Bits 5-3: Bus arbitration priority control    * Bits 5-3: Bus arbitration priority control
      * 101 - 1. Audio, 2. PPU, 3. CPU      * 101 - 1. Audio, 2. PPU, 3. CPU
Line 206: Line 222:
  
 External RAM mapping overrides any ROM mapping. External RAM mapping overrides any ROM mapping.
 +
 +On the V.Smile, both ROMCSB and CSB1 allow to access the cartridge ROM. This means bit 6 is not very useful.
 +
 +CSB2 is the cartridge RAM, and CSB3 is the system ROM. They are both enabled at the same time by using bit 7.
  
 ==== ADC ==== ==== ADC ====
memory_map.1632430104.txt.gz · Last modified: 2021/09/23 22:48 by pulkomandy
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0