PF1550 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
pf1550_sequencer.hpp File Reference

The regulator power-up and power-down sequencer of the PF1550 as pure constexpr data: the pre-programmed start-up options (Table 85), the sequencer timing (Table 84) and the power-down order (section 10.7). More...

#include <array>
#include <cstddef>
#include <cstdint>
#include "pf1550_detail.hpp"
#include "pf1550_types.hpp"

Go to the source code of this file.

Classes

struct  pf1550::StartupProfile
 The start-up behaviour of one pre-programmed option (Table 85). More...
 

Namespaces

namespace  pf1550
 The PF1550 driver: everything it declares lives here; internals in detail.
 

Functions

constexpr Result< StartupProfile > pf1550::StartupProfileOf (Option option) noexcept
 The pre-programmed start-up sequence of an option (Table 85).
 
constexpr uint32_t pf1550::PowerUpDelayUs (const StartupProfile &profile, Rail rail) noexcept
 When a rail turns on, counted from the start of the first power-up slot.
 
constexpr uint32_t pf1550::PowerUpDurationUs (const StartupProfile &profile) noexcept
 How long the power-up sequencer runs: the start of the last slot used.
 
constexpr Result< uint32_t > pf1550::ResetReleaseDelayMs (uint32_t code) noexcept
 The delay of RESETBMCU after the last regulator, from POR_DLY[2:0] (Table 135).
 
constexpr Result< uint32_t > pf1550::ColdStartToResetReleaseUs (const StartupProfile &profile, uint32_t por_dly_code) noexcept
 From a cold start to RESETBMCU high, for an option and a POR_DLY code (Table 84).
 
constexpr bool pf1550::IsPowerDownBypassed (const PowerDownSequence &sequence) noexcept
 Whether the power-down sequencer is bypassed: every order is 0 (section 10.7).
 
constexpr uint32_t pf1550::PowerDownDelayUs (const PowerDownSequence &sequence, Rail rail) noexcept
 When a rail turns off in a power-down, counted from the start of the sequence.
 
constexpr uint32_t pf1550::PowerDownDurationUs (const PowerDownSequence &sequence) noexcept
 How long the power-down sequence takes: the delay of the last rail.
 
constexpr PowerDownSequence pf1550::MirrorOf (const StartupProfile &profile) noexcept
 The power-down order that mirrors the power-up order of an option, as the registers hold it after reset (section 10.7: SW1_PWRDN_SEQ = OTP_SW1_PWRUP_SEQ, and so on).
 

Variables

constexpr uint32_t pf1550::kVsnvsTurnOnDelayUs = 600
 Turn-on delay of VSNVS after a cold start, microseconds (Table 84, tD1 typical 0.6 ms).
 
constexpr uint32_t pf1550::kVsnvsRiseUs = 100
 Rise time of VSNVS, microseconds (tR1 typical 0.1 ms).
 
constexpr uint32_t pf1550::kSlotFastUs = 500
 Power-up slot with OTP_SEQ_CLK_SPEED = 0, microseconds (tD3 typical 0.5 ms).
 
constexpr uint32_t pf1550::kSlotSlowUs = 2000
 Power-up slot with OTP_SEQ_CLK_SPEED = 1, microseconds (tD3 typical 2.0 ms).
 
constexpr uint32_t pf1550::kPowerDownStepUs = 2000
 Power-down delay between regulators, microseconds (tD5 typical 2.0 ms).
 
constexpr uint8_t pf1550::kMaxSequenceNumber = 7
 Largest sequence number a *_PWRUP_SEQ or *_PWRDN_SEQ field holds.
 

Detailed Description

The regulator power-up and power-down sequencer of the PF1550 as pure constexpr data: the pre-programmed start-up options (Table 85), the sequencer timing (Table 84) and the power-down order (section 10.7).

The power-up order is fixed by OTP and cannot be read back over I2C (the OTP image is not documented in the public data sheet), so the driver reports it only for the pre-programmed options A1 to A9 that Table 85 lists, selected by the OTP_FLAVOR byte that ReadVariant() returns. The power-down order is a set of read/write registers, *_PWRDN_SEQ, that the application may change in a system-on state.

Model choices where the data sheet is silent (each one has a knob in the test model):