Apb Protocol: Advanced Peripheral Bus Protocol
Apb Protocol: Advanced Peripheral Bus Protocol
Apb Protocol: Advanced Peripheral Bus Protocol
BY
SAI PRASANNA
UDAYA BINDU
B YADAGIRI
INDEX
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 ARCHITECTURE
High-
High-Bandwidth on-
Performance
chip RAM UART KEYPAD
ARM Processor
B
High- R
Bandwidth AHB I
external D APB
memory G
interface E
TIMER PIO
DMA(Direct
Memory Access) AHB TO APB
BUS MASTER
APB PROTOCOL
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:
• 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 ACCESS
PREADY=0
• PENABLE is asserted, where 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