参数资料
型号: PIC16LF1527T-I/MR
厂商: Microchip Technology
文件页数: 50/94页
文件大小: 0K
描述: MCU PIC 28KB FLASH 64QFN
标准包装: 3,300
系列: PIC® XLP™ 16F
核心处理器: PIC
芯体尺寸: 8-位
速度: 20MHz
连通性: I²C,LIN,SPI,UART/USART
外围设备: 欠压检测/复位,POR,PWM,WDT
输入/输出数: 54
程序存储器容量: 28KB(16K x 14)
程序存储器类型: 闪存
RAM 容量: 1.5K x 8
电压 - 电源 (Vcc/Vdd): 1.8 V ~ 3.6 V
数据转换器: A/D 30x10b
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 64-VFQFN 裸露焊盘
包装: 带卷 (TR)
215
7810C–AVR–10/12
Atmel ATmega328P [Preliminary]
21.5.5
Control Unit
The Control unit monitors the TWI bus and generates responses corresponding to settings in the
TWI Control Register (TWCR). When an event requiring the attention of the application occurs
on the TWI bus, the TWI Interrupt Flag (TWINT) is asserted. In the next clock cycle, the TWI Sta-
tus Register (TWSR) is updated with a status code identifying the event. The TWSR only
contains relevant status information when the TWI Interrupt Flag is asserted. At all other times,
the TWSR contains a special status code indicating that no relevant status information is avail-
able. As long as the TWINT Flag is set, the SCL line is held low. This allows the application
software to complete its tasks before allowing the TWI transmission to continue.
The TWINT Flag is set in the following situations:
After the TWI has transmitted a START/REPEATED START condition.
After the TWI has transmitted SLA+R/W.
After the TWI has transmitted an address byte.
After the TWI has lost arbitration.
After the TWI has been addressed by own slave address or general call.
After the TWI has received a data byte.
After a STOP or REPEATED START has been received while still addressed as a Slave.
When a bus error has occurred due to an illegal START or STOP condition.
21.6
Using the TWI
The AVR TWI is byte-oriented and interrupt based. Interrupts are issued after all bus events, like
reception of a byte or transmission of a START condition. Because the TWI is interrupt-based,
the application software is free to carry on other operations during a TWI byte transfer. Note that
the TWI Interrupt Enable (TWIE) bit in TWCR together with the Global Interrupt Enable bit in
SREG allow the application to decide whether or not assertion of the TWINT Flag should gener-
ate an interrupt request. If the TWIE bit is cleared, the application must poll the TWINT Flag in
order to detect actions on the TWI bus.
When the TWINT Flag is asserted, the TWI has finished an operation and awaits application
response. In this case, the TWI Status Register (TWSR) contains a value indicating the current
state of the TWI bus. The application software can then decide how the TWI should behave in
the next TWI bus cycle by manipulating the TWCR and TWDR Registers.
Figure 21-10 is a simple example of how the application can interface to the TWI hardware. In
this example, a Master wishes to transmit a single data byte to a Slave. This description is quite
abstract, a more detailed explanation follows later in this section. A simple code example imple-
menting the desired behavior is also presented.
相关PDF资料
PDF描述
PIC16F1937T-I/ML IC PIC MCU FLASH 512KX14 44-QFN
PIC16LF1937T-I/ML IC PIC MCU FLASH 512KX14 44-QFN
PIC18LF24K22T-I/MV IC MCU 8BIT 16KB FLASH 28UQFN
PIC18F44K20T-I/ML IC PIC MCU FLASH 8KX16 44QFN
PIC24F16KA101T-I/MQ IC PIC MCU FLASH 16KB 20-QFN
相关代理商/技术参数
参数描述
PIC16LF1613-I/SL 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 256 RAM, 32MHZ INT. OSC, 10BIT ADC, ZCD, WWDT, - Rail/Tube 制造商:Microchip Technology Inc 功能描述:3.5KB Flash, 256 RAM, 32MHz Int. Osc, 10bit ADC, ZCD, WWDT, CRC, 14 SOIC .150in
PIC16LF1613-I/ST 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 256 RAM, 32MHZ INT. OSC, 10BIT ADC, ZCD, WWDT, - Rail/Tube 制造商:Microchip Technology Inc 功能描述:3.5KB Flash, 256 RAM, 32MHz Int. Osc, 10bit ADC, ZCD, WWDT, CRC, 14 TSSOP 4.4mm
PIC16LF1703-I/SL 制造商:Microchip Technology Inc 功能描述:IC MCU 8BIT 2K FLASH 14SOIC
PIC16LF1703T-I/ML 制造商:Microchip Technology Inc 功能描述:2K Word Flash, 256B RAM, 10-bit ADC, 2 OPAmp, CCP, I2C/SPI, Zero Cross Detect, 1
PIC16LF1703T-I/SL 制造商:Microchip Technology Inc 功能描述:2K Word Flash, 256B RAM, 10-bit ADC, 2 OPAmp, CCP, I2C/SPI, Zero Cross Detect, 1