AVR459
14.6.3 Errors
At 4800 baud, there is only 208 clock cycles for SB201 between each bit. This means
that to ensure error free communication all the time, all other interrupts would have to
be less than 104 cycles, including the prologue of the timer interrupt. This is not
always true for the interrupt service routines used by SB201. However, since those
interrupts (CCADC & VADC conversion complete) only runs once per second, and
since the blocking interrupts has to occur just a few cycles before the timer interrupt,
a retransmission of the “broken” communication is sufficient and adequate to solve
this.
The errors the host can detect include:
?
?
?
?
?
Wrong command returned by SB201
Frame error on data sent from SB201
PEC incorrect on data sent from SB201
SB201 does not respond within reasonable time (min 50ms)
SB201 sends a NACK to indicate an error occurred
On all those errors the host should send a break/arbitration lock and retransmit. A
break/arbitration lock is a minimum of 18 normal bit periods of low on the
communication line. This resets the communication on SB201 and makes it ready to
receive a new transmission. A break can be sent as soon as the error is detected.
If the same command fails many times in a row, that command is probably not
supported by SB201 or something serious is wrong. It might be that the frequency of
the clock on the host or SB201 has changed too much or maybe that SB201 have
shut itself down.
15
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