B.4.5. Cortex-R4 peripheral register mapping

Table B.20 shows the peripheral register mapping for the Cortex-R4 model (see Figure B.4). The functional peripherals are two UARTs, one Timer, a Watchdog, RTC, System Control, NVIC, TrustZone Interrupt Controller (TZIC), and General Interrupt Controller (GIC). These peripherals are described in the following sections. All other peripherals are represented by a basic register array in the memory map regions 0x1nnnnnnn and 0xCnnnnnnn.

Note

Peripheral locations are accessible only when the MPU is enabled.

To access the peripheral registers, select the corresponding tab in the Registers view.

Table B.20. Cortex-R4 peripheral register mapping

Base AddressPeripheral
0x10009000UART0 (Feature restricted)
0x1000A000UART1
0x10011000Timer
0x10010000WDOG (Watchdog)
0x10017000RTC (Real-Time Clock)
0x10001000System Control (clock control for timers, configuration options, and remap signal)
Not applicableNVIC (Nested Vectored Interrupt Controller)
0x10040000TZIC (TrustZone Interrupt Controller)
0x10050000GIC (General Interrupt Controller)

Primary Interrupt Controller

Table B.21 shows the PIC registers of the Cortex-R4 model.

Table B.21. Cortex-R4 PIC registers

OffsetRegister
0x00PIC_IRQ_STATUS
0x04PIC_IRQ_RAWSTAT
0x08PIC_IRQ_ENABLE
0x10PIC_INT_SOFTSET
0x14PIC_INT_SOFTCLR
0x20PIC_FIQ_STATUS
0x24PIC_FIQ_RAWSTAT
0x28PIC_FIQ_ENABLE

Timers

Table B.22 shows the Timer registers of the Cortex-R4 model.

Table B.22. Cortex-R4 Timer registers

OffsetRegister
0x000Timer0Load
0x018Timer0BGLoad
0x004Timer0Value
0x008Timer0Control
0x00CTimer0IntClr
0x010Timer0RIS
0x014Timer0MIS
0x100Timer1Load
0x118Timer1BGLoad
0x104Timer1Value
0x108Timer1Control
0x10CTimer1IntClr
0x110Timer1RIS
0x114Timer1MIS
0x200Timer2Load
0x218Timer2BGLoad
0x204Timer2Value
0x208Timer2Control
0x20CTimer2IntClr
0x210Timer2RIS
0x214Timer2MIS
0xFE0Timer_PeriphIDO
0xFE4Timer_PeriphID1
0xFE8Timer_PeriphID2
0xFECTimer_PeriphID3
0xFF0Timer_PCellIDO
0xFF4Timer_PCellID1
0xFF8Timer_PCellID2
0xFFCTimer_PCellID3

The three timers count down by only one tick for each instruction executed. The timers are mapped to the same memory locations as the timers on the Integrator™/CP development board.

Note

The Timer_PCellID and Timer_PeripID registers are not supported, but this does not affect the operation of the peripheral because it conforms to the ARM Generic Peripheral specification for Timers.

Real-Time Clock (PL030)

Table B.23 shows the RTC registers of the Cortex-R4 model.

Table B.23. Cortex-R4 RTC registers

OffsetRegister
0x000RTC_DR
0x004RTC_MR
0x008RTC_STAT
0x00CRTC_CLR
0x010RTC_CR
0xFE0RTC_PeriphIDO
0xFE4RTC_PeriphID1
0xFE8RTC_PeriphID2
0xFECRTC_PeriphID3
0xFF0RTC_PCellIDO
0xFF4RTC_PCellID1
0xFF8RTC_PCellID2
0xFFCRTC_PCellID3

UART (PL011)

Table B.24 shows the UART0 and UART1 registers of the Cortex-R4 model.

Table B.24. Cortex-R4 UART registers

OffsetRegister
0x000UARTDR
0x004UARTRSR_ECR
0x018UARTFR
0x020UARTILPR
0x024UARTIBRD
0x028UARTFBRD
0x02CUARTLCR_H
0x030UARTCR
0x034UARTIFLS
0x038UARTIMSC
0x03CUARTRIS
0x040UARTMIS
0x044UARTICR
0x048UARTDMACR
0xFE0UARTPeriphID0
0xFE4UARTPeriphID1
0xFE8UARTPeriphID2
0xFECUARTPeriphID3
0xFF0UARTPCellID0
0xFF4UARTPCellID1
0xFF8UARTPCellID2
0xFFCUARTPCellID3

The Cortex-R4 models two serial ports that can be used for I/O. These are modeled through telnet windows, which open automatically on the first read/write operation from the UART after it has been initialized.

The serial ports are mapped to the same memory locations as the UARTs on the Integrator/CP development board.

Note

The default behavior for the telnet protocol is line mode. This means that characters typed into the telnet window are not seen in the model until you press Enter. To change this behavior type the telnet escape character, usually Ctrl+], and then enter the mode character. Doing this might disable local echo of the characters entered in the telnet window.

Interrupts

Table B.25 shows the supported interrupts for the Cortex-R4 model.

Table B.25. Cortex-R4 interrupts

InterruptPeripheral
1UART0
2UART1
3Reserved
4Reserved
5Timer0
6Timer1
7Timer2
8Reserved

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0182K
Non-Confidential