본문 바로가기
아날로그회로(Analog Circuit)/ADC관련

[ZSSC3240] Command List 한글 번역 및 추가 설명

by linuxgo 2025. 8. 11.
반응형

아래는 ZSSC3240 데이터시트의 Table 33 (Command List)에 나열된 명령어들에 대한 한글로 번역한 내용입니다. 각 명령어는 데이터시트에서 제공된 정보를 기반으로 하며, 명령어 코드, 반환값 (Return), 명령어 설명 (Description), 그리고 해당 명령어가 사용 가능한 모드 (Sleep Mode, Command Mode, Cyclic Mode)를 포함하여 정리 되었고,설명은 데이터시트의 내용을 바탕으로 하되, 필요 시 추가적인 맥락을 더하여 상세히 작성하였습니다. 

Table 33 (Command List)

Command Code (Byte) Return Description Available in Sleep Mode Available in Command Mode Available in Cyclic Mode
00HEX to 3FHEX 16-bit data Memory Read address 00HEX to 3FHEX: 이 명령어는 ZSSC3240의 비휘발성 메모리 (NVM)에서 지정된 주소(00HEX ~ 3FHEX)의 내용을 읽어옵니다. 읽은 데이터는 16-bit 형식으로 반환되며, NVM에 저장된 설정 값(예: 센서 구성, 보정 계수 등)을 확인하거나 디버깅할 때 사용됩니다. NVM은 총 54개의 레지스터(00HEX ~ 35HEX)를 가지며, 이 명령어는 읽기 전용입니다. Yes Yes No
40HEX to 75HEX followed by data (0000HEX to FFFFHEX) Memory Write addresses 00HEX to 35HEX (NVM register address is command minus 40HEX): 이 명령어는 NVM의 지정된 주소(00HEX ~ 35HEX)에 16-bit 데이터를 씁니다. 명령어 코드에서 40HEX를 빼면 실제 NVM 주소가 됩니다(예: 40HEX는 NVM 00HEX에 쓰기). NVM이 잠겨 있는 경우(예: 프로그래밍 후 잠금) 쓰기 요청은 무시되거나 인정되지 않습니다. 이는 센서 보정 계수나 구성 설정을 변경할 때 사용되며, 쓰기 후 NVM 프로그래밍 명령어(예: 체크섬 계산)와 함께 사용해야 안정적입니다. Yes Yes No
90HEX Calculate NVM Checksum and write it to the memory: NVM 전체 내용에 대한 체크섬을 계산하여 NVM의 특정 위치(데이터시트에 명시되지 않음, 내부적으로 처리)에 씁니다. 이는 메모리 무결성을 검증하거나 프로그래밍 후 안정성을 확인할 때 사용되며, 체크섬 오류 시 메모리 오류 진단이 트리거될 수 있습니다. Yes Yes No
A2HEX 24-bit raw data Raw Sensor Measurement – Configuration is loaded in the controlling shadow registers from the SM_config1 and SM_config2 registers in NVM: 센서 신호의 원시(Raw) 측정을 수행합니다. NVM의 SM_config1/2 레지스터(주 센서 구성: PGA 게인, 오프셋 등)에서 설정을 로드하며, 자동 영점 보정(Auto-Zero)은 SSF2 레지스터의 AZMs_on 비트에 따라 수행됩니다. 반환되는 24-bit 데이터는 보정되지 않은 ADC 결과로, 디버깅이나 수동 보정에 유용합니다. Yes Yes No
A4HEX 24-bit raw data Raw Temperature Measurement – Configuration is loaded in the controlling shadow registers from the extTemp_Config1/2 or T_config1/2 registers in NVM as well as the SSF1/2 registers: 온도 신호의 원시 측정을 수행합니다. 외부/내부 온도 센서 구성(extTemp_Config1/2 또는 내부 T_config1/2)을 로드하며, SSF1/2 레지스터(센서 공급, 소스 선택)도 사용합니다. 자동 영점 보정은 AZMt_on 비트에 따라 적용되며, 외부 설정으로 측정 시 Overwrite 명령어를 사전 사용해야 합니다. temp_source 비트에 따라 내부/외부 온도 선택. Yes Yes No
A8HEX START_SLEEP – Exit Command Mode or Cyclic Mode and transition to Sleep Mode: Command Mode 또는 Cyclic Mode에서 Sleep Mode로 전환합니다. Sleep Mode는 최소 전력 소비 모드로, 인터페이스가 명령어를 대기하며 아날로그 출력은 지원되지 않습니다. 응답은 상태 바이트만 반환되며, 모드 변경 후 최소 2번의 인터페이스 상호작용이 필요합니다. No Yes Yes
A9HEX START_CM – Exit Sleep Mode or Cyclic Mode and transition to Command Mode: Sleep Mode 또는 Cyclic Mode에서 Command Mode로 전환합니다. Command Mode는 평가/테스트/보정에 적합하며, 모든 명령어와 디지털/아날로그 출력이 지원됩니다. 모드 변경 후 인터페이스 확인(예: 상태 바이트 읽기) 추천. Yes No Yes
AAHEX 24-bit SSC-corrected sensor data and 24-bit SSC-corrected temperature data Measure – Trigger a full measurement (auto-zero-sensor, sensor, auto-zero-temperature, temperature) and perform SSC correction: 전체 측정 사이클을 트리거합니다(센서 자동 영점, 센서 측정, 온도 자동 영점, 온도 측정). SSC(센서 신호 보정) 수학 코어가 오프셋, 감도, 온도 드리프트, 비선형성을 보정합니다. 자동 영점은 AZMs_on/AZMt_on 비트에 따라 적용되며, 반환 데이터는 보정된 센서/온도 값(각 24-bit)입니다. 단일 측정에 사용. Yes Yes No
ABHEX START_CYC – Enter the Cyclic Mode: continuous measurement cycles, SSC corrections, and automatic, continuous digital and/or analog output updates: Cyclic Mode로 진입하여 자동 반복 측정, SSC 보정, 디지털/아날로그 출력 업데이트를 수행합니다. 아날로그 출력 스마트 센서에 적합하며, 측정 스케줄러(에너지 소비, 업데이트 속도, 정확도 균형)를 구성합니다. Yes Yes No
ACHEX 24-bit SSC-corrected sensor data and 24-bit SSC-corrected temperature data Oversample-2 Measure – Mean value generation; 2 full measurements (triggered similar to AAHEX, not cyclic) are performed and the resulting mean value is provided as output: 오버샘플링-2 측정으로, 2번의 전체 측정(AAHEX와 유사)을 평균하여 노이즈를 줄입니다. 자동 영점 보정 적용. 노이즈 성능 향상을 위해 사용되며, 비-사이클릭(트리거 기반). Yes Yes No
ADHEX 24-bit SSC-corrected sensor data and 24-bit SSC-corrected temperature data Oversample-4 Measure – Mean value generation; 4 full measurements (triggered similar to AAHEX, not cyclic) are performed and the resulting mean value is provided as output: 오버샘플링-4 측정으로, 4번 평균. 노이즈 감소에 더 효과적이며, 자동 영점 보정 적용. Yes Yes No
AEHEX 24-bit SSC-corrected sensor data and 24-bit SSC-corrected temperature data Oversample-8 Measure – Mean value generation; 8 full measurements (triggered similar to AAHEX, not cyclic) are performed and the resulting mean value is provided as output: 오버샘플링-8 측정으로, 8번 평균. 고정밀도 요구 시 사용. Yes Yes No
AFHEX 24-bit SSC-corrected sensor data and 24-bit SSC-corrected temperature data Oversample-16 Measure – Mean value generation; 16 full measurements (triggered similar to AAHEX, not cyclic) are performed and the resulting mean value is provided as output: 오버샘플링-16 측정으로, 16번 평균. 최고 노이즈 억제, 하지만 변환 시간 길어짐. Yes Yes No
B0HEX 16-bit diagnostic result data CHECK_DIAG – The ZSSC3240 responds with the detailed fault-result status in the diagnosticreg register: 진단 레지스터(diagnosticreg)의 상세 오류 상태를 반환합니다. 메모리 오류, 센서 연결 문제(예: 단선, 단락), 칩 균열 등을 확인하며, Cyclic Mode에서 자동 업데이트됩니다. Yes Yes No
B1HEX RESET_DIAG – Resets the contents of diagnosticreg to 00HEX: 진단 레지스터를 초기화(00HEX)합니다. 이전 오류 상태를 지우고 새로운 진단을 시작할 때 사용. Yes Yes No
B2HEX Update_DIAG – Causes a complete diagnostics check cycle including memory CRC calculation, etc., and results in a reset and update of diagnosticreg: 전체 진단 사이클(메모리 CRC 계산 포함)을 수행하고 diagnosticreg를 업데이트합니다. 측정 사이클과 병행 시 지연 발생 가능. Yes Yes No
B3HEX followed by data (0000HEX to FFFFHEX) DAC Diagnostic – Set the DAC output register with the data in the command and enable/output the respective analog signal through AOUT (according to the AOUT_setup): DAC 출력 레지스터를 명령어 데이터로 설정하고 AOUT을 통해 아날로그 신호를 출력합니다(AOUT_setup에 따라). RESQ 핀, POR, 모드 변경으로 DAC 출력 중지. I2C/SPI 인터페이스에서만 사용 가능. DAC 테스트/디버깅에 유용. No Yes No
B4HEX followed by 00XXHEX 24-bit raw data Self-Diagnostic Measure – The ADC performs a raw measurement with the setup from the SM_config registers, and the PGA input is disconnected from the external sensor and internally shorted (INN = INP = AGND). The ZSSC3240-internal setup, which is configured according to the ioffsc bit field in the SM_config2 register, is changed to XXHEX (transmitted with the command). The respective pseudo-offset signal becomes the input test signal to the PGA-ADC-path. The original ioffsc and SM_config2 contents are restored after the self-diagnostic measurement completion: 셀프 진단 측정으로, 외부 센서를 차단하고 내부적으로 INN=INP=AGND로 단락합니다. ioffsc 비트를 명령어의 XXHEX로 변경하여 의사 오프셋 신호를 테스트 입력으로 사용. 측정 후 원래 설정 복원. Overwrite 명령어와 결합 가능. No Yes No
D1HEX followed by XXXXHEX Set Post-Calibration Offset – Set recent SSC-output to expected value XXXXHEX in command by means of offset adjustment with coefficient SENS_shift: 최근 SSC 출력 값을 명령어의 XXXXHEX로 조정(SENS_shift 계수 사용). 보정 후 오프셋 미세 조정에 사용. Yes Yes No
D2HEX Startup OWI – Initialization command to enter OWI interface operation; only valid for OWI: OWI 인터페이스 초기화 명령어로, OWI 모드로 진입합니다. OWI 전용(섹션 6.4.3 참조). 스타트업 윈도우 내에서 사용. Yes Yes Yes
D6HEX followed by data (0000HEX to FFFFHEX) Overwrite SM_config1 shadow register – Content (originally from NVM register 14HEX) in the digital shadow register for SM_config1 is directly overwritten with the command data: 주 센서 구성(SM_config1)의 쉐도우 레지스터를 명령어 데이터로 덮어씁니다(NVM 14HEX 원본). 임시 설정 변경(예: 테스트)에 사용. No Yes No
D7HEX followed by data (0000HEX to FFFFHEX) Overwrite SM_config2 shadow register – Content (originally from NVM register 15HEX) in the digital shadow register for SM_config2 is directly overwritten with the command data: 주 센서 구성(SM_config2)의 쉐도우 레지스터를 명령어 데이터로 덮어씁니다(NVM 15HEX 원본). No Yes No

추가 설명

  • 명령어 가용 모드: Sleep Mode는 저전력 대기 모드(디지털 인터페이스만), Command Mode는 테스트/보정 모드(모든 기능), Cyclic Mode는 자동 반복 측정 모드(제한된 명령어)입니다. Cyclic Mode에서 대부분의 명령어가 불가한 이유는 자동 운영을 방해하지 않기 위함입니다.
  • 자동 영점 보정(Auto-Zero): 많은 측정 명령어(AAHEX 등)에서 SSF2 레지스터의 AZMs_on/AZMt_on 비트에 따라 적용됩니다. 이는 오프셋을 자동으로 보정하여 정확도를 높입니다.
  • Overwrite 명령어: 쉐도우 레지스터를 임시 변경하여 NVM을 건드리지 않고 테스트 가능합니다. 영구 변경 시 Memory Write 사용.
  • 진단 관련 명령어(B0~B2): 센서 연결, 메모리 무결성, 칩 균열 등을 체크하며, diagnosticreg(16-bit)로 세부 결과를 제공합니다.
  • 오버샘플링 명령어(AC~AF): 평균화로 노이즈를 줄이지만, 변환 시간이 길어집니다(예: AFHEX는 16배 측정).
  • 주의사항: 명령어 실행 후 Busy 상태 확인(상태 바이트 읽기) 필요. OWI 인터페이스에서 일부 명령어(D2HEX)는 특수 프로토콜 적용. NVM 쓰기 후 체크섬 계산(90HEX) 필수.

 

반응형