欢迎访问ic37.com |
会员登录 免费注册
发布采购

MEGA128CAN 参数 Datasheet PDF下载

MEGA128CAN图片预览
型号: MEGA128CAN
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器,带有ISP功能的Flash和CAN控制器128K字节 [Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER]
分类和应用: 微控制器
文件页数/大小: 413 页 / 5507 K
品牌: ATMEL [ ATMEL ]
 浏览型号MEGA128CAN的Datasheet PDF文件第201页浏览型号MEGA128CAN的Datasheet PDF文件第202页浏览型号MEGA128CAN的Datasheet PDF文件第203页浏览型号MEGA128CAN的Datasheet PDF文件第204页浏览型号MEGA128CAN的Datasheet PDF文件第206页浏览型号MEGA128CAN的Datasheet PDF文件第207页浏览型号MEGA128CAN的Datasheet PDF文件第208页浏览型号MEGA128CAN的Datasheet PDF文件第209页  
AT90CAN128  
Overview of the TWI  
Module  
The TWI module is comprised of several submodules, as shown in Figure 98. All regis-  
ters drawn in a thick line are accessible through the AVR data bus.  
Figure 98. Overview of the TWI Module  
SCL  
SDA  
Spike  
Filter  
Spike  
Filter  
Slew-rate  
Control  
Slew-rate  
Control  
Bus Interface Unit  
Bit Rate Generator  
START / STOP  
Control  
Spike Suppression  
Prescaler  
Address/Data Shift  
Register (TWDR)  
Bit Rate Register  
(TWBR)  
Arbitration detection  
Ack  
Address Match Unit  
Control Unit  
Address Register  
(TWAR)  
Status Register  
(TWSR)  
Control Register  
(TWCR)  
TWI  
Unit  
State Machine and  
Status control  
Address Comparator  
Scl and SDA Pins  
These pins interface the AVR TWI with the rest of the MCU system. The output drivers  
contain a slew-rate limiter in order to conform to the TWI specification. The input stages  
contain a spike suppression unit removing spikes shorter than 50 ns. Note that the inter-  
nal pullups in the AVR pads can be enabled by setting the PORT bits corresponding to  
the SCL and SDA pins, as explained in the I/O Port section. The internal pull-ups can in  
some systems eliminate the need for external ones.  
Bit Rate Generator Unit  
This unit controls the period of SCL when operating in a Master mode. The SCL period  
is controlled by settings in the TWI Bit Rate Register (TWBR) and the Prescaler bits in  
the TWI Status Register (TWSR). Slave operation does not depend on Bit Rate or Pres-  
caler settings, but the CPU clock frequency in the slave must be at least 16 times higher  
than the SCL frequency. Note that slaves may prolong the SCL low period, thereby  
reducing the average TWI bus clock period. The SCL frequency is generated according  
to the following equation:  
CLKio  
SCL frequency = ----------------------------------------------------------  
16 + 2(TWBR) 4TWPS  
TWBR = Value of the TWI Bit Rate Register  
TWPS = Value of the prescaler bits in the TWI Status Register  
Note:  
TWBR should be 10 or higher if the TWI operates in Master mode. If TWBR is lower than  
10, the master may produce an incorrect output on SDA and SCL for the reminder of the  
byte. The problem occurs when operating the TWI in Master mode, sending Start + SLA  
+ R/W to a slave (a slave does not need to be connected to the bus for the condition to  
happen).  
205  
4250E–CAN–12/04  
 复制成功!