Cozir-LP2에서 추가된 기능
알람 기능
- 사용자 알람 값을 설정하였을 경우 알람 값에 도달 하면 디지털 출력으로 사용자에게 알려줌
알람 UART Command
Command | Description | Response |
V #####\r | 알람 값 설정 | V #####\r |
v\r | 현재 알람 값 읽기 | v 15000\r |
- 알람 값은 센서 전원을 껐다 켜도 유지됨
- 초기에는 알람 설정이 꺼져있음
PWM 기능
- 통신 프로토콜을 이용하여 Prescalar, Resolution, mode, pulses setting, pwm on/off 설정 가능
PWM UART Command
Command | Description | Response |
J ###\r | PWM 설정( Prescalar, Resolution, mode, pulses setting, on/off) | J ###\r |
j\r | 현재 PWM 값 읽기 | j\r |
J ###\r\n Command 설명
- J ###\r\n에서 ### 은 Bit [7:0] 까지 설정한 값이 들어감
센서 자기 진단 테스트
Command | Description | Response |
i\r | 센서 자가 진단 테스트 | i ###\r |
Response: ### = 170 - Sensor error
### = 85 - no Sensor error