Programming Example
MOTOROLA
AHB to IP Bus Interface (AIPI)
7-17
7.3 Programming Example
This section covers programming examples written in assembly code to illustrate the data access through
the AIPI module.
7.3.1 Data Access to 8-Bit Peripherals
The followings codes are executed with the ARM920T core set to big and little endian modes:
LDR
r0,
=0x11223344
LDR
r1,
=0x55667788
LDR
r2,
=8BIT_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-13 on page 7-18 illustrates the difference in the 8-bit peripheral register content.
Table 7-12. Time-Out Status Register Description
Name
Description
Settings
TO
Bit 31
Time-Out
—This bit when set to 1 indicates a time-out event and may be
cleared by the user.
0 = No time-out
event
1 = time-out event
RW
Bit 30
This bit contains the ips_rwb status prior to time-out event.
ADDR
Bits 29–20
Address
—These bits contains the ips_addr[11:2] status prior to time-out
event.
BE4
Bit 19
This bit contains the ips_byte_31_24 status prior to time-out event.
BE3
Bit 18
This bit contains the ips_byte_23_16 status prior to time-out event.
BE2
Bit 17
This bit contains the ips_byte_15_8 status prior to time-out event.
BE1
Bit 16
This bit contains the ips_byte_7_0 status prior to time-out event.
MODULE_EN
Bits 14–1
Module Enable Status
—These bits contains the module_en[15:1] status
prior to time-out event. Refer to Table 7-6 to determine which peripheral
is assigned to which module_en number. assignment of
0= Corresponding
module has not
timed out
1 = Corresponding
module has
timed out
Reserved
Bit 0
Reserved—This bit is reserved and should read 0.
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 ...