Programming Example
MOTOROLA
AHB to IP Bus Interface (AIPI)
7-19
7.3.3 Data Access to 32-Bit Peripherals
The followings codes are executed with the ARM core set to big and little endian modes.
LDR
r0,
=0x11223344
LDR
r1,
=0x55667788
LDR
r2,
=32BIT_PERIPHERAL_ADDRESS
STRB
r0,
[r2, #0x0]
STRB
r1,
[r2, #0x1]
STRH
r0,
[r2, #0x2]
STR
r1,
[r2, #0x4]
LDRB
r3,
[r2, #0x0]
LDRB
r4,
[r2, #0x1]
LDRH
r5,
[r2, #0x2]
LDR
r6,
[r2, #0x4]
The Table 7-16 and Table 7-17 on page 7-20 illustrate the difference in the 32-bit peripheral register
content.
Address
Core Registers
r3
00
00
00
44
r4
00
00
00
88
r5
00
00
33
44
r6
55
66
77
88
Table 7-15. Core and 16-Bit Peripheral Register Content (Big Endian)
Address
Peripheral Registers
0
44
88
–
2
33
44
–
4
55
66
–
6
77
88
–
Address
Core Registers
r3
00
00
00
44
r4
00
00
00
88
r5
00
00
33
44
r6
55
66
77
88
Table 7-14. Core and 16-Bit Peripheral Register Content (Little Endian) (Continued)
Address
Peripheral Registers
Summary of Contents for DragonBall MC9328MX1
Page 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Page 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Page 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Page 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Page 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Page 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Page 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Page 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Page 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Page 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Page 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Page 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Page 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Page 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Page 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Page 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Page 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Page 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Page 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...