?
?
?
?
?
?
?
?
Fixed character as preamble to indicate start of package
Destination address byte
Source address byte
Command byte
Size byte
Data payload
Simple checksum byte, the sum of previous bytes
Carriage return character
The package is minimum 7 bytes and maximum 262 bytes in size. DATA is
transmitted only if NBYTES is nonzero.
Example: Send 2 bytes from PC to Electronic Load.
SYNC
U
0x55
ADDRESS
E
0x45
SENDER
P
0x50
COMMAND
C
0x43
NBYTES
2
0x02
DATA
int mA
0x04B0
CS
Calc
0xE3
CR
?
0x0D
14.1.1 Source and destination ADDRESS.
Address (ASCII)
C
D
E
M
P
S
Address (hex)
0x43
0x44
0x45
0x4D
0x50
0x53
HW Module
Charger
DB101 Display
Electronic Load
Main Controller
PC
SB20x
14.2 Global COMMAND
The commands for the different hardware modules are covered in the sections below.
Commands can be uses in both read and write mode: if a command code (ASCII) is
sent as upper case it is a WRITE, and if in lower case it is a READ. Each module has
its own unique commands (commands not shared for different hardware modules).
In the following explanations, the COMMAND is marked yellow.
14.3 COMMAND to Constant Current Load.
The Constant Current Load only supports write commands: It is implemented with a
14-bit DAC and the Board Controller will process the requested current level to
achieving the correct current level for the Constant Current Load.
The Board Controller will also monitor the PCB temperature and shut off the Constant
Current Load if the PCB temperature is higher than 125°C.
Example: Set Constant Current Load to 2450mA
SYNC
U
0x55
ADDRESS
E
0x45
SENDER
P
0x50
COMMAND
C
0x43
NBYTES
2
0x02
DATA
int mA
0x0992
CS
Calc
0xCA
CR
?
0x0D
10
AVR459
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