Apb PPT
Apb PPT
INTRODUCTION OF AMBA
ABOUT AMBA BUS ARCHIETICTURE
INTRODUCTION OF APB PROTOCOL
SIGNAL DESCRIPTIONS
MASTER- SLAVE COMMUNICATION
STATE MACHINE
TIMING DIAGRAMS
INTRODUCTION OF AMBA
AMBA(Advanced micro control Bus Architecture) is introduced by
ARM(Advanced RISC Machine) in 1996.
AMBA is a family for all protocols. Like as ASB,APB,AHB, AXI….,etc.
AMBA is a set of interconnect protocols.
AMBA BUS ARCHIETICTURE
APB PROTOCOL
APB protocol is a part of AMBA family. APB protocol is low-cost interface that
optimized for minimal power consumption.
It is reduced interface complexity. It is not pipelined and is a simple.
Every transfer takes at least two cycles to complete.
APB Bridge connected from AHB.
All the singles transitions are only related to the raising edge of the clock to
enable the integration of APB peripherals.
Signal Descriptions
PCLK : All APB signals are timed against the rising edge of PCLK.
PRESETn : PRESETn is the reset signal and is Active-LOW.
PRESETn is normally connected directly to the system bus reset signal.
PADDR : PADDR is the APB address bus. PADDR can be up to 32 bits wide.
PSELx : The APB bridge unit generates this signal to each peripheral bus slave. It indicates that the
slave is selected and that a data transfer is required. There is each PSELx
signal for each slave.
PENABLE: PENABLE indicates the second and subsequent cycles of an APB transfer.
PWRITE: The signal indicates an APB write access when HIGH and an APB read access when
LOW.
PWDATA: The PWDATA write data bus is driven by the APB bridge when PWRITE is HIGH.
SIGNAL DESCRIPTIONS..
PRDATA : The PRDATA read data bus is driven by the APB peripheral bus slave
when PWRITE is LOW
PREADY: The APB peripheral slave uses this signal to extend an APB transfer.
PSLVERR: This signal indicates transfer failure. PSLVERR is HIGH when PSELx,
PENABLE, PREADY are HIGH else becomes LOW.
MASTER- SLAVE COMMUNICATION:
PRESET
PWDATA
n
PCLOCK PREADY
PRDATA
PSLVERR
STATE MACHINE:
• IDLE Idle No transfer
PSELx=0
PENABL
• Default APB State E=0
• SETUP transfer
SETUP
• When Transfer required PSELx=1
PREADY=1
• PSELx=1 asserted When no data transfer PENABLE
• Only one cycle =0 PREADY=1
When data transfer
transfer
• ACCESS PREADY=0
• PENABLE is asserted, where ACCESS
PSELx=1
Address, write, select, and write data PENABLE
remain same. =1
• Stay if PREADY=0,
• Else go to IDLE if PREADY=1
No data transfer.
• go to SETUP is PREADY=1, when more
data pending.
WRITE TRANSFERS:
This section describes the following types of write transfer:
• With no wait states
• With wait states
All signals shown in this section are sampled at the rising edge of PCLK.
The timing of the address, PADDR, write, PWRITE, select, PSELx, and enable, PENABLE,
signals are the same as described in Write transfers on page.
The Completer must provide the data before the end of the read transfer.
Read transfer with no wait states
With wait states:
The transfer is extended if PREADY is driven LOW during an Access phase. The
following signals remain unchanged while PREADY remains LOW:
• Address signal, PADDR
• Direction signal, PWRITE
• Select signal, PSEL
• Enable signal, PENABLE