参数资料
型号: IS80C52CXXX-12:D
厂商: TEMIC SEMICONDUCTORS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 12 MHz, MICROCONTROLLER, PQCC44
文件页数: 133/134页
文件大小: 3805K
98
8068U–AVR–06/2013
XMEGA A3
Not recommended for new designs -
Use XMEGA A3U series
22. TWI Transmit collision flag not cleared on repeated start
The TWI transmit collision flag should be automatically cleared on start and repeated start,
but is only cleared on start.
Problem fix/Workaround
Clear the flag in software after address interrupt.
23. Clearing TWI Stop Interrupt Flag may lock the bus
If software clears the STOP Interrupt Flag (APIF) on the same Peripheral Clock cycle as the
hardware sets this flag due to a new address received, CLKHOLD is not cleared and the
SCL line is not released. This will lock the bus.
Problem fix/Workaround
Check if the bus state is IDLE. If this is the case, it is safe to clear APIF. If the bus state is
not IDLE, wait for the SCL pin to be low before clearing APIF.
Code:
/* Only clear the interrupt flag if within a "safe zone". */
while ( /* Bus not IDLE: */
((COMMS_TWI.MASTER.STATUS & TWI_MASTER_BUSSTATE_gm) !=
TWI_MASTER_BUSSTATE_IDLE_gc)) &&
/* SCL not held by slave: */
!(COMMS_TWI.SLAVE.STATUS & TWI_SLAVE_CLKHOLD_bm)
)
{
/* Ensure that the SCL line is low */
if ( !(COMMS_PORT.IN & PIN1_bm) )
break;
}
/* Check for an pending address match interrupt */
if ( !(COMMS_TWI.SLAVE.STATUS & TWI_SLAVE_CLKHOLD_bm) )
{
/* Safely clear interrupt flag */
COMMS_TWI.SLAVE.STATUS |= (uint8_t)TWI_SLAVE_APIF_bm;
}
24. TWI START condition at bus timeout will cause transaction to be dropped
If Bus Timeout is enabled and a timeout occurs on the same Peripheral Clock cycle as a
START is detected, the transaction will be dropped.
Problem fix/Workaround
None.
25. TWI Data Interrupt Flag erroneously read as set
When issuing the TWI slave response command CMD=0b11, it takes 1 Peripheral Clock
cycle to clear the data interrupt flag (DIF). A read of DIF directly after issuing the command
will show the DIF still set.
Problem fix/Workaround
Add one NOP instruction before checking DIF.
相关PDF资料
PDF描述
IS80C52CXXX-20:R 8-BIT, MROM, 20 MHz, MICROCONTROLLER, PQCC44
IS80C52CXXX-25:D 8-BIT, MROM, 25 MHz, MICROCONTROLLER, PQCC44
IS80C52CXXX-25:R 8-BIT, MROM, 25 MHz, MICROCONTROLLER, PQCC44
IS80C52CXXX-25SHXXX:D 8-BIT, MROM, 25 MHz, MICROCONTROLLER, PQCC44
IS80C52CXXX-30SHXXX:RD 8-BIT, MROM, 30 MHz, MICROCONTROLLER, PQCC44
相关代理商/技术参数
参数描述
IS80C86 制造商:Rochester Electronics LLC 功能描述:- Bulk
IS80C86-2 制造商:Rochester Electronics LLC 功能描述:- Bulk
IS80C86-2R2490 制造商:Rochester Electronics LLC 功能描述:- Bulk
IS80C88 制造商:Rochester Electronics LLC 功能描述:- Bulk
IS80C88-2 制造商:Rochester Electronics LLC 功能描述:- Bulk