SW Component configuration method for each SW State

This post describes the SW component configuration for each SW state that I recommend.

There are two ways to configure SW components for each SW state: one is to divide SW components for each SW state, as shown below, and the other is to encompass the functions of each SW state in SW components.

How to divide SW components by SW State

How to divide SW components by SW state is a method of dividing the functions of SW components according to the functions of SW states, and calling SW components in SW states.

Features:

  • Clarify SW state functions and SW component configurations.
  • Facilitates the design of processing and initial values during SW state transitions.
  • SW state transition design will be more frequent.
  • SW components must be managed by SW state.

Example:
Divide the SW components of a 3-axis sensor IC as follows, and divide the SW components to be called according to the SW status.

  • Power On Reset: 3-axis sensor IC initialization component
  • Normal Control: 3-axis sensor measurement component
  • Fail-Safe mode: Fail-safe component for 3-axis sensors
  • Power Off sequence: Power Off component of 3-axis sensor IC

How to include the functions of each SW State in the SW Components

How to include the functions of each SW state in the SW component is to make the functions of each SW state into functions and call those functions according to the SW state.

Features:

  • Improved modularity and portability
  • SW components can be complex
  • SW state transition design is often done with detailed design of each SW component

Example:
Separate the functions for each SW state of the SW component of a 3-axis sensor IC as follows.

  • Power On Reset: 3-axis sensor IC initialization function
  • Normal Control: 3-axis sensor measurement function
  • Fail-Safe mode: Fail-safe function for 3-axis sensors
  • Power Off sequence: Power Off function of 3-axis sensor IC
OSS-ECAL English
error: Content is protected !!