Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2clr committed Jan 8, 2025
1 parent 053aa0e commit 1476f3b
Showing 1 changed file with 0 additions and 84 deletions.
84 changes: 0 additions & 84 deletions src/SI4844.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,90 +170,6 @@ void SI4844::waitInterrupt(void)
/** @defgroup GB1 Receiver Functions */


/*
Steps to control the device with "ATDD device detects the band" mode configuration
5.1.1. Power-On Sequence
Step 1: Reset and Prepare the Device
1. The system controller resets the ATDD device and releases the RSTb pin.
2. The system controller waits until the first IRQ is received, indicating that the ATDD device is ready to receive commands.
Step 2: Obtain Device Status
3. The system controller sends the ATDD_GET_STATUS command to retrieve the ATDD device status.
- The system controller must check the BCFG0 bit in the response to determine if the ATDD device or the system controller is responsible for band detection and selection.
- If BCFG0 = 0 , the ATDD device detects the band.
- Note: The HOSTPWRUP bit is always set at this stage, prompting the system controller to issue the ATDD_POWER_UP command.
- Band and tune information are not available at this point.
Step 3: Power Up the Device
4. The system controller issues the ATDD_POWER_UP command with the following parameters:
- Initial Power-Up:
- Set ARG1 bit[5:0] BANDIDX = 0 (since the host doesn’t know the band number).
- Crystal Configuration:
- Set ARG1 bit[7] XOSEN = 1 if using a 32.768 kHz crystal.
- Set ARG1 bit[6] XOWAIT = 0 for a standard 600 ms crystallization time, or XOWAIT = 1 for an extended 900 ms.
- Optional Parameters (for Custom Band Configuration):
- ARG2, ARG3: Set if the new lower band frequency differs from the default.
- ARG4, ARG5: Set if the new upper band frequency differs from the default.
- ARG6: Set if the new channel spacing differs (AM only).
- ARG7: Include for new features (Si4827 and Si4844B).
Step 4: Confirm Band Detection
5. The system controller waits for another IRQ indicating that the valid band has been detected.
Step 5: Retrieve Updated Status
6. The system controller sends the ATDD_GET_STATUS command to obtain the latest status:
- If REPLY0 bit[4] INFORDY = 1 (band information ready):
- Save the band index in REPLY1 bit[5:0] BANDIDX for future use.
- Check the following for any required host actions:
- HOSTRST (REPLY0 bit[7]) – Reset ATDD if switching across different band modes.
- HOSTPWRUP (REPLY0 bit[6]) – Issue ATDD_POWER_UP again if switching within the same band mode.
Band Switching Actions:
- Same Band Mode:
- Reissue the ATDD_POWER_UP command with the known band index.
- Different Band Mode:
- Reset the ATDD device, wait for IRQ, and issue ATDD_POWER_UP again with the known band index.
Step 6: Frequency Detection
7. The system controller waits for another IRQ indicating that the tune wheel frequency is ready.
Step 7: Display Updated Status
8. The system controller issues the ATDD_GET_STATUS command to display the latest information:
- If REPLY0 bit[4] INFORDY = 1 (information ready):
- Display the band mode, station, and stereo states.
- The tune frequency is ready when the combination of REPLY2 and REPLY3 results in a non-zero 4-digit BCD value.
- Always save the band index REPLY1 bit[5:0] BANDIDX for later use.
Optional Audio Configuration
9. The system controller can optionally send the ATDD_AUDIO_MODE command to select an audio output mode:
- AUDIO_MODE Bits (Choose One):
- (0) Digital volume mode
- (1) Bass/treble mode
- (2) Bass/treble + volume control (mix mode 1)
- (3) Bass/treble + volume control (mix mode 2)
- Additional Settings:
- ADJPT_ATTN: Attenuates audio output by 2 dB for adjacent points (100 kHz).
- ADJPT_STEO: Enables stereo indicator and separation at adjacent points (100 kHz).
- FM_MONO: Forces FM audio output to mono or stereo.
Optional Property Adjustment
10. The system controller can optionally issue the SET_PROPERTY command to adjust:
- Receive volume
- Bass/treble level
- FM de-emphasis
- Soft-mute
- Banding properties (overrides default settings).
References:
Si48XX ATDD PROGRAMMING GUIDE - AN610 (Pages 4, 7)
*/

/**
* @ingroup GB1
* @todo UNDER CONSTRUCTION
Expand Down

0 comments on commit 1476f3b

Please sign in to comment.