Tutorials
Protocols
Learn More
Operating States
The APB state machine has three states:
- IDLE
- SETUP
- ACCESS
IDLE
IDLE is the default state. No transfer is active, and PSELx is LOW.
SETUP
When a transfer is required, the interface enters SETUP. In this state:
- PSELx is HIGH for the selected Completer.
- PENABLE is LOW.
- Address, direction, and request-side transfer information are valid.
SETUP lasts one clock cycle and then moves to ACCESS.
ACCESS
In ACCESS:
- PSELx remains HIGH.
- PENABLE is HIGH.
- The Completer controls completion using PREADY.
If PREADY is LOW, the interface stays in ACCESS. If PREADY is HIGH, the transfer completes and the interface either returns to IDLE or moves directly to SETUP for the next transfer.
State transition summary
| From | To | Condition |
|---|---|---|
| IDLE | SETUP | New transfer requested |
| SETUP | ACCESS | Next rising clock edge |
| ACCESS | ACCESS | PREADY=0 |
| ACCESS | IDLE | PREADY=1 and no next transfer |
| ACCESS | SETUP | PREADY=1 and another transfer follows |
APB Protocol