參數(shù)資料
型號(hào): CR16MCT9VJE8
英文描述: Microcontroller
中文描述: 微控制器
文件頁(yè)數(shù): 81/157頁(yè)
文件大?。?/td> 1256K
代理商: CR16MCT9VJE8
第1頁(yè)第2頁(yè)第3頁(yè)第4頁(yè)第5頁(yè)第6頁(yè)第7頁(yè)第8頁(yè)第9頁(yè)第10頁(yè)第11頁(yè)第12頁(yè)第13頁(yè)第14頁(yè)第15頁(yè)第16頁(yè)第17頁(yè)第18頁(yè)第19頁(yè)第20頁(yè)第21頁(yè)第22頁(yè)第23頁(yè)第24頁(yè)第25頁(yè)第26頁(yè)第27頁(yè)第28頁(yè)第29頁(yè)第30頁(yè)第31頁(yè)第32頁(yè)第33頁(yè)第34頁(yè)第35頁(yè)第36頁(yè)第37頁(yè)第38頁(yè)第39頁(yè)第40頁(yè)第41頁(yè)第42頁(yè)第43頁(yè)第44頁(yè)第45頁(yè)第46頁(yè)第47頁(yè)第48頁(yè)第49頁(yè)第50頁(yè)第51頁(yè)第52頁(yè)第53頁(yè)第54頁(yè)第55頁(yè)第56頁(yè)第57頁(yè)第58頁(yè)第59頁(yè)第60頁(yè)第61頁(yè)第62頁(yè)第63頁(yè)第64頁(yè)第65頁(yè)第66頁(yè)第67頁(yè)第68頁(yè)第69頁(yè)第70頁(yè)第71頁(yè)第72頁(yè)第73頁(yè)第74頁(yè)第75頁(yè)第76頁(yè)第77頁(yè)第78頁(yè)第79頁(yè)第80頁(yè)當(dāng)前第81頁(yè)第82頁(yè)第83頁(yè)第84頁(yè)第85頁(yè)第86頁(yè)第87頁(yè)第88頁(yè)第89頁(yè)第90頁(yè)第91頁(yè)第92頁(yè)第93頁(yè)第94頁(yè)第95頁(yè)第96頁(yè)第97頁(yè)第98頁(yè)第99頁(yè)第100頁(yè)第101頁(yè)第102頁(yè)第103頁(yè)第104頁(yè)第105頁(yè)第106頁(yè)第107頁(yè)第108頁(yè)第109頁(yè)第110頁(yè)第111頁(yè)第112頁(yè)第113頁(yè)第114頁(yè)第115頁(yè)第116頁(yè)第117頁(yè)第118頁(yè)第119頁(yè)第120頁(yè)第121頁(yè)第122頁(yè)第123頁(yè)第124頁(yè)第125頁(yè)第126頁(yè)第127頁(yè)第128頁(yè)第129頁(yè)第130頁(yè)第131頁(yè)第132頁(yè)第133頁(yè)第134頁(yè)第135頁(yè)第136頁(yè)第137頁(yè)第138頁(yè)第139頁(yè)第140頁(yè)第141頁(yè)第142頁(yè)第143頁(yè)第144頁(yè)第145頁(yè)第146頁(yè)第147頁(yè)第148頁(yè)第149頁(yè)第150頁(yè)第151頁(yè)第152頁(yè)第153頁(yè)第154頁(yè)第155頁(yè)第156頁(yè)第157頁(yè)
81
www.national.com
empty buffer (ACBST.SDAST=1) and/or a stop after start
(ACBST.STASTR=1).
For a repeated start:
— Set the ACBCTL1.START bit.
— In master receive mode, read the last data item from
ACBSDA.
— Follow the address send sequence, as described in
“Sending the Address Byte” on page 80.
— If the ACB was awaiting handling due to ACBST.STAS-
TR=1, clear it only after writing the requested address
and direction to ACBSDA.
Master Error Detections
The ACB detects illegal Start or Stop Conditions (i.e., a Start
or Stop Condition within the data transfer, or the acknowl-
edge cycle) and a conflict on the data lines of the AC-
CESS.bus. If an illegal action is detected, BER is set, and the
MASTER mode is exited (MASTER is cleared).
Bus Idle Error Recovery
When a request to become the active bus master or a restart
operation fails, the ACBST.BER bit is set to indicate the error.
In some cases, both this device and the other device may
identify the failure and leave the bus idle. In this case, the
start sequence may not be completed and the ACCESS.bus
may remain deadlocked forever.
To recover from deadlock, use the following sequence:
1. Clear the ACBST.BER bit and ACBCST.BB bit.
2. Wait for a time-out period to check that there is no other
active master on the bus (i.e., ACBCST.BB remains
cleared).
3. Disable, and re-enable the ACB to put it in the non-ad-
dressed slave mode.
4. At this point some of the slaves may not identify the bus
error. To recover, the ACB becomes the bus master by
issuing a Start Condition and sends an address field;
then issue a Stop Condition to synchronize all the
slaves.
19.2.2
A slave device waits in Idle mode for a master to initiate a bus
transaction. Whenever the ACB is enabled, and it is not act-
ing as a master (i.e., ACBST.MASTER is cleared), it acts as
a slave device.
Once a Start Condition on the bus is detected, this device
checks whether the address sent by the current master
matches either:
— The ACBADDR.ADDR value if ACBADDR.SAEN is
set.
— The general call address if ACBCTL1.GCM is set.
This match is checked even when ACBST.MASTER is set. If
a bus conflict (on SDA or SCL) is detected, ACBST.BER is
set, ACBST.MASTER is cleared and this device continues to
search the received message for a match.
If an address match, or a global match, is detected:
— This device asserts its data pin during the acknowl-
edge cycle.
— The ACBCST.MATCH and ACBST.NMATCH bits are
set. If ACBST.XMIT is set (i.e., slave transmit mode),
Slave Mode
ACBST.SDAST is set to indicate that the buffer is emp-
ty.
— If ACBCTL1.INTEN is set, an interrupt is generated if
both the INTEN and NMINTE bits in ACBCTL1 regis-
ters are set.
— The software then reads the ACBST.XMIT bit to identi-
fy the direction requested by the master device. It
clears the ACBST.NMATCH bit so future byte transfers
are identified as data bytes.
Slave Receive and Transmit
Slave Receive and Transmit are performed after a match is
detected and the data transfer direction is identified. After a
byte transfer the ACB extend the acknowledge clock until the
software reads or writes the ACBSDA register. The receive
and transmit sequence are identical to those used in the
master routine.
Slave Bus Stall
When operating as a slave, this device stalls the AC-
CESS.bus by extending the first clock cycle of a transaction
in the following cases:
— ACBST.SDAST is set.
— ACBST.NMATCH, and ACBCTL1.NMINTE are set.
Slave Error Detections
The ACB detects illegal Start and Stop Conditions on the AC-
CESS.bus (i.e., a Start or Stop Condition within the data
transfer or the acknowledge cycle). When an illegal Start or
Stop Condition is detected, the BER bit is set and MATCH
and GMATCH are cleared, setting the module to be an unad-
dressed slave.
Power Down
When this device is in Power Save, Idle, or Halt mode, the
ACB module is not active but retains its status. If the ACB is
enabled (ACBCTL2.ENABLE=1) on detection of a Start Con-
dition, a wake-up signal is issued to the MIWU module. Use
this signal to switch this device to Active mode.
The ACB module cannot check the address byte following
the start condition that has awaken this device for a match.
The ACB responds with a negative acknowledge, and the de-
vice should re-send both the Start Condition and the address
after this device has had time to wake up.
Check that the ACBCST.BUSY bit is inactive before entering
Power Save, Idle or Halt mode. This guarantees that this de-
vice does not acknowledge an address sent, and stop re-
sponding later.
19.2.3
The SDA and SCL are open-drain signals. For more informa-
tion, see the I/O configuration section.
SDA and SCL Pins Configuration
19.2.4
The ACB module permits the user to set the clock frequency
used for the ACCESS.bus clock. The clock is set by the
ACBCTL2.SCLFRQ field. This field determines the SCL
clock period used by this device. This clock low period may
be extended by stall periods initiated by the ACB module or
by another ACCESS.bus device. In case of a conflict with an-
other bus master, a shorter clock high period may be forced
by the other bus master until the conflict is resolved.
ACB Clock Frequency Configuration
相關(guān)PDF資料
PDF描述
CR16MCT9VJE8Y Microcontroller
CR16MCT9VJE9 Microcontroller
CR16MCT9VJE9Y Microcontroller
CR18250 Battery
CR2424A Single Video Amplifier
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
CR16MCT9VJE8Y 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Microcontroller
CR16MCT9VJE9 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Microcontroller
CR16MCT9VJE9Y 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Microcontroller
CR16MCT9VJEX 制造商:NSC 制造商全稱(chēng):National Semiconductor 功能描述:CR16MCT9/CR16MCT5/CR16HCT9/CR16HCT5 16-Bit Reprogrammable/ROM Microcontroller
CR16MCT9VJEXY 制造商:NSC 制造商全稱(chēng):National Semiconductor 功能描述:CR16MCT9/CR16MCT5/CR16HCT9/CR16HCT5 16-Bit Reprogrammable/ROM Microcontroller