AVR459
14.5.4 Read the SB200 PCB Temperature.
The NTC placed close to the Constant Current Load can be read. Response is a
temperature between -40°C to 125°C.
Read_Temperature ()
SYNC
U
0x55
ADDRESS
M
0x4D
SENDER
P
0x50
COMMAND
t
0x74
NBYTES
0
0x00
CS
Calc
0x66
CR
?
0x0D
Response: Send_Temperature ()
SYNC
U
0x55
ADDRESS
P
0x50
SENDER
M
0x4D
COMMAND
t
0x74
NBYTES
2
0x02
DATA
int Temp
0x0019
CS
Calc
0x81
CR
?
0x0D
14.6 Communication protocol between the USB1287 gateway and SB201/SB204.
The communication between the SB200 and SB201/ SB204 is based on a half duplex
UART – here referred to as Asynchronous smart battery bus (ASBBus).
The SBS specification uses the SMbus protocol, but since SB201 uses software
UART, some changes have been made to improve reliability. Addressing has also
been removed.
SB201 supports the four different types of messages used by SBS:
?
?
?
?
Read word
Write word
Read block
Write block
A word command always has two bytes of data and a block command always 32
bytes, which is different from the SBS block commands that has variable length.
The host sends a command where the MSB determines if it’s a write or read. 0
means write and 1 means read. This allows for 128 different commands that both
support read and write. From the command itself it is not possible to determine if it is
a word or block command; both sides have to agree what all commands are.
SB201 immediately sends back the command; this allows the host to detect if SB201
received the command correctly. What happens after that depends on the type of
message used by that command.
A Packet Error-checking Code (PEC) is appended to all data to be able to detect
errors. The PEC is a CRC8 with polynomial 0x8D (CRC8-CCITT) calculated from the
command and all data bytes.
14.6.1 Read commands
On read commands, SB201 starts to send data after it has sent back the command.
The PEC is also appended. However, if the command wasn’t supported, nothing is
sent back (except for the command byte).
13
8132A-AVR-10/08
相关PDF资料
ATAVRSB201 KIT REF FOR AVR SMART BATTERY
ATDH1150USB ACCY USB CABLE JTAG ISP AT18F
ATDVK90CAN1 KIT DEV FOR AT90CAN128 MCU
ATEVK1104AU KIT EVAL AT32UC3A3256AU
ATEVK1105AU KIT EVAL AT32UC3A0512AU
ATEVK525 ADD ON KIT FOR STK525
ATEVK527 KIT EVAL PWM AVR USB 4 SERIES
ATICE10 AVR IN CIRCUIT EMULATOR
相关代理商/技术参数
ATAVRSB201 功能描述:开发板和工具包 - AVR Development kit for ATMEGA16HVA RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRSB202 功能描述:开发板和工具包 - AVR Battery Mgmt Eval kit for ATMEGA32HVB RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRSBIN1 功能描述:多功能传感器开发工具 9DOF Inertial Sensor Board 1 RoHS:否 制造商:Texas Instruments 工具用于评估:LMP91200 接口类型:SPI 工作电压:1.8 V to 5.5 V 最大工作温度:
ATAVRSBIN2 功能描述:多功能传感器开发工具 9DOF Inertial Sensor Board 2 RoHS:否 制造商:Texas Instruments 工具用于评估:LMP91200 接口类型:SPI 工作电压:1.8 V to 5.5 V 最大工作温度:
ATAVRSBLP1 功能描述:光学传感器开发工具 Ambient Light and Proximity Snsr Brd RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
ATAVRSBPR1 功能描述:压力传感器开发工具 Barometric Pressure Sensor Board 1 RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
ATAVRSECURITYX 功能描述:安全/ 验证开发工具 Security Module Kit for Xplain Series RoHS:否 制造商:Digi International 产品:Development Kits 工具用于评估:XEB-AW140 接口类型:SPI, USB 工作电源电压:3.1 V to 3.6 V
ATAVRSMD 功能描述:ADAPTER KIT SMD ICE200 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035