Embedded systems: Memory Mapped I/O Memory mapped I/O is a method - - PowerPoint PPT Presentation

embedded systems memory mapped i o memory mapped i o is a
SMART_READER_LITE
LIVE PREVIEW

Embedded systems: Memory Mapped I/O Memory mapped I/O is a method - - PowerPoint PPT Presentation

Embedded systems: Memory Mapped I/O Memory mapped I/O is a method of performing input/output operations between the central processing unit (CPU) and peripheral devices CPU CPU bus SPI MEMORY Module A Memory mapped I/O uses the same


slide-1
SLIDE 1

Embedded systems: Memory Mapped I/O

slide-2
SLIDE 2

Memory mapped I/O is a method of performing input/output operations between the central processing unit (CPU) and peripheral devices

CPU

MEMORY

SPI

CPU bus

Module A

slide-3
SLIDE 3

Memory mapped I/O uses the same address space to address both memory and I/O devices

CPU

MEMORY

SPI

CPU bus

SPI Memory UART

. . .

Module A Module N 0x00000000 0x00005000 0x00005050 0x00005070 0x0F006000

Module A

4 GB

0xFFFFFFFF

slide-4
SLIDE 4

The Nios II provides memory mapped I/O access

slide-5
SLIDE 5

SPI Memory UART

. . .

PIO Module N 0x00005070

I/O 1 write(addr,reg,data) write(0x5070,0,0x1)

0x00000000 0xFFFFFFFF

Perform I/O operations by writing to memory location

slide-6
SLIDE 6

PIO register map

Source: http://www.altera.com/literature/ug/ug_embedded_ip.pdf

The Nios II CPU controls and communicates with a memory mapped module through a set of 32-bit registers