0
0
ARM Architectureknowledge~10 mins

AHB and APB bus overview in ARM Architecture - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - AHB and APB bus overview
Start: CPU or Master
AHB Bus: High-speed data transfer
Bridge: AHB to APB
APB Bus: Low-speed peripheral access
Peripheral Devices
The CPU or master sends data over the fast AHB bus. A bridge converts signals to the slower APB bus, which connects to peripherals.
Execution Sample
ARM Architecture
CPU -> AHB -> Bridge -> APB -> Peripheral

// Data moves from CPU to peripheral devices
// AHB handles fast transfers
// APB handles simple control signals
Shows the path data takes from CPU through AHB and APB buses to reach peripherals.
Analysis Table
StepBus/ComponentActionData SpeedPurpose
1CPUInitiates data transferN/AStart communication
2AHB BusTransfers data quicklyHigh-speedMain data path
3BridgeConverts AHB signals to APBMedium-speedInterface between buses
4APB BusTransfers control signalsLow-speedPeripheral access
5PeripheralReceives data/controlN/APerform device function
6EndTransfer completeN/AData reached peripheral
💡 Data transfer ends after peripheral receives data/control signals.
State Tracker
ComponentInitial StateAfter Step 1After Step 2After Step 3After Step 4Final State
CPUIdleData readyData sent to AHBN/AN/AIdle
AHB BusIdleIdleData in transitData passed to bridgeN/AIdle
BridgeIdleIdleIdleSignal convertedSignal sent to APBIdle
APB BusIdleIdleIdleIdleData in transitIdle
PeripheralIdleIdleIdleIdleData receivedProcessing data
Key Insights - 3 Insights
Why does data go through a bridge between AHB and APB?
Because AHB is high-speed and APB is low-speed, the bridge converts signals to match APB's slower speed, as shown in execution_table step 3.
Is APB used for fast data transfer like AHB?
No, APB is designed for simple, low-speed control signals to peripherals, unlike AHB which handles fast data, as seen in execution_table steps 2 and 4.
What happens after the peripheral receives data?
The peripheral processes the data or control signals, marking the end of the transfer, as shown in execution_table step 5 and 6.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, at which step does the bridge convert signals?
AStep 3
BStep 2
CStep 4
DStep 5
💡 Hint
Check the 'Action' column for the bridge in execution_table row with Step 3.
According to variable_tracker, what is the state of the APB Bus after Step 4?
AIdle
BSignal converted
CData in transit
DData ready
💡 Hint
Look at the APB Bus row under 'After Step 4' in variable_tracker.
If the bridge was removed, what would likely happen to data transfer?
AData would transfer faster
BData would not reach APB peripherals correctly
CNo change in data transfer
DAPB bus would speed up automatically
💡 Hint
Refer to key_moments about the bridge role and execution_table step 3.
Concept Snapshot
AHB and APB buses connect CPU to peripherals.
AHB is high-speed for main data transfer.
APB is low-speed for peripheral control.
A bridge converts signals between AHB and APB.
Data flows: CPU -> AHB -> Bridge -> APB -> Peripheral.
Full Transcript
This overview shows how data moves from the CPU through two types of buses: AHB and APB. The CPU starts the transfer on the fast AHB bus. Then a bridge converts signals to the slower APB bus, which connects to peripheral devices. The execution table traces each step, showing the bus or component involved, the action taken, the speed, and the purpose. The variable tracker follows the state of each component as data moves through. Key moments clarify why the bridge is needed, the speed differences, and what happens when data reaches peripherals. The quiz tests understanding of these steps and roles. This helps beginners visualize how ARM systems manage data flow between fast and slow buses.