This document discusses the Advanced Peripheral Bus (APB) which is part of the Advanced Microcontroller Bus Architecture (AMBA). It provides three key points:
1. The APB is optimized for low power consumption and reduced complexity by interfacing with low bandwidth peripherals. It uses a single clock edge to simplify timing analysis.
2. The APB bridge acts as the bus master, latching the address and controlling data transfer direction. It generates control signals to select the peripheral and indicate the transfer type (read/write).
3. APB peripherals use a simple interface, latching write data on the clock edge or enable signal. Reads return data when the peripheral is selected and transfer is
In this document
Powered by AI
Introduction of B.Vamsi Krishna and guidance by Mrs. Bhavani from IIVDT.
AMBA microcontroller features high-performance backbone bus that interfaces with CPU and DMA devices. APB focuses on low power and complexity for low bandwidth peripherals.
AMBA microcontroller features high-performance backbone bus that interfaces with CPU and DMA devices. APB focuses on low power and complexity for low bandwidth peripherals.
APB operation includes states: IDLE, SETUP, and ACCESS. PREADY signal controls state transitions.
APB operation includes states: IDLE, SETUP, and ACCESS. PREADY signal controls state transitions.
Write transfers in APB can occur with or without wait states. APB bridge facilitates data transfer and address decoding for peripherals.
Write transfers in APB can occur with or without wait states. APB bridge facilitates data transfer and address decoding for peripherals.
Write transfers in APB can occur with or without wait states. APB bridge facilitates data transfer and address decoding for peripherals.
Write transfers in APB can occur with or without wait states. APB bridge facilitates data transfer and address decoding for peripherals.
Error mapping from AHB to APB. High-frequency performance improvements and simplified timing analysis with APB architecture.
•An AMBA-based microcontrollertypically consists of a
high-performance system backbone bus.
•Bus can sustain CPU and DMA devices
•Like Direct Memory Access (DMA) devices ,high
performance arm processors or high band width
memory interface.
•Bridge to a narrower APB bus on which the lower
bandwidth peripheral devices are located.
4.
•The Advanced PeripheralBus (APB) is part of the
AMBA.
•APB is optimized for minimal power consumption
and reduced interface complexity.
•The AMBA APB should be used to interface to any
peripherals which are low bandwidth and do not
require the high performance of a pipelined bus
interface.
5.
•APB ensures thatall signal transitions are only related
to the rising edge of the clock.
•This improvement means the APB peripherals can be
integrated easily into any design flow.
• Idle:The defaultstate for the peripheral bus.
• Setup:When a transfer is required the bus moves into the
SETUP state.
• Pselx is asserted
• The bus only remains in the SETUP state for one clock
cycle and will always move to the access state(enable is
asserted) on the next rising edge of the clock.
• Access: The address, write select, and write data signals
must remain stable during the transition from the SETUP to
ACCESS state.
10.
• PREADY:Exit fromthe ACCESS state is controlled by the
PREADY signal from the slave:
• If PREADY is held LOW by the slave then the peripheral
bus remains in the ACCESS state.
• If PREADY is driven HIGH by the slave then the ACCESS
state is exited and the bus returns to the IDLE state if no
more transfers are required.
• Alternatively, the bus moves directly to the SETUP state if
another transfer follows.
12.
• There aretwo types of write transfer
• With no wait states
• With wait states
• The APBbridge is the only bus master on the
AMBA APB. In addition, the APB bridge is also a
slave on the higher-level system bus.
• The bridge unit converts system bus transfers into
APB transfers and performs the following
functions:
• Latches the address and holds it valid throughout
the transfer.
19.
• Decodes theaddress and generates a peripheral
select, PSELx. Only one select signal can be
active during a transfer.
• Drives the data onto the APB for a write transfer.
• Drives the APB data onto the system bus for a
read transfer.
• Generates a timing strobe, PENABLE, for the
transfer.
20.
• APB slavesinterface very simple and flexible.
• For a Write transfer the data can be latched at the
following points:
• on either rising edge of PCLK, when PSEL is HIGH
• on the rising edge of PENABLE, when PSEL is HIGH.
• The select signal PSELx, the address PADDR and
the write signal PWRITE can be combined to
determine which register should be updated by the
write operation.
21.
• For Readtransfers the data can be driven on to
the data bus when PWRITE is LOW and both PSELx
and PENABLE are HIGH. While PADDR is used to
determine which register should be read
• From AHBto APB PSLVERR is mapped back to
HRESP[1:0] = ERROR for both reads and writes. This is
achieved by mapping PSLVERR to the AHB signal
HRESP[1:0].
• HRESP[1:0]:OKAY,ERROR,RETRY,SRLIT.
24.
•performance is improvedat high-frequency operation.
•static timing analysis is simplified by the use of a single
clock edge.
•no special considerations are required for automatic
test insertion.
•many Application-Specific Integrated Circuit (ASIC)
libraries have a better selection of rising edge registers.
•easy integration with cycle based simulators.