CR16MCS5VJI8 Datasheet

  • CR16MCS5VJI8

  • Family of 16-bit CAN-enabled CompactRISC Microcontrollers

  • 713.21KB

  • 156页

  • NSC

扫码查看芯片数据手册

上传产品规格书

PDF预览

vice serves as a bus master. The clock low time
and high time are defined as follows:
t
SCLl
= t
SCLh
= 2*SCLFRQ*t
CLK
Where t
CLK
is this device鈥檚 clock cycle when in
Active mode.
SCLFRQ may be programmed to values in the
range of 0001000
2
(8
10
) through 1111111
2
(127
10
). Using any other value has unpredict-
able results.
19.3.6
ACB Own Address Register (ACBADDR)
4. In some cases the bus may get stuck with the SCL and/
or SDA lines active. A possible cause to this is an erro-
neous Start or Stop Conditions that occur in the middle
of a slave receive session.
When the SCL line is stuck active, there is nothing that
can be done, and it is the responsibility of the module
that holds the bus to release it.
In case of SDA line is stuck active, the ACB module en-
able the release of the bus by using the following se-
quence. Note that in normal cases SCL may be toggled
only by the bus master. This protocol is a recovery
scheme which is an exception that should be used only
in the case where there is no other master on the bus.
The recovery scheme is as follows:
a. Disable and re-enable the module to set it into the
not addressed slave mode.
b Set the ACBCTL1.START bit to make an attempt to
issue a Start Condition.
c. Check if the SDA line is active (low) by reading
ACBCST.TSDA bit. If it is active, issue a single SCL
cycle by writing 1 to ACBCST.TGSCL bit. If the SDA
line is not active, continue from step 鈥榚鈥?
d. Check if ACBST.MASTER is set, which indicates
that the Start Condition was sent. If not, repeat step
c and d until the SDA is released.
e. Clear the BB bit. This enables the START bit to be
executed. Continue according to 鈥淏us Idle Error Re-
covery鈥?on page 81.
ACB Own Address Register (ACBADDR) is a byte-wide,
read/write register that holds the module鈥檚 ACCESS.bus ad-
dress. Reset value is undefined.
7
SAEN
6
ADDR
0
ADDR
SAEN
Own Address. Holds the 7-bit ACCESS.bus
address of this device. When in slave mode,
the first seven bits received after a Start Condi-
tion are compared to this field (first bit received
to bit-6, and the last to bit-0). If the address field
matches the received data and SAEN is set, a
match is declared.
Slave Address Enable. When set SAEN indi-
cates that the ADDR field holds a valid address
and enables the match of ADDR to an incom-
ing address byte. When cleared, the ACB does
not check for an address match.
19.4
USAGE HINTS
1. When the ACB is disabled the ACBCST.BB bit is
cleared. After enabling the ACB (ACBCTL2.ENABLE is
set to 1) in systems with more then one master, the bus
may be in the middle of a transaction with another de-
vice, which is not reflected by BB.
There is a need to allow the ACB to synchronize to the
bus activity status before issuing a request to become
the bus master, to prevent bus errors. Thus, before issu-
ing a request to become the bus master for the first time,
the software should check that there is no activity on the
bus by checking the BB bit after the bus allowed time-out
period.
2. When waking up from power down, before checking
ACBCST.MATCH, use ACBCST.BUSY to make sure
that the address transaction is over.
3. The BB bit is intended to solve a deadlock in which two,
or more, devices detect a usage conflict on the bus and
both devices cease being bus masters at the same time.
In this situation, the BB bits of both devices are active
(because each deduces that there is another master
currently performing a transaction, while in fact no de-
vice is executing a transaction), and the bus would stay
locked until some device sends a ACBCTL1.STOP con-
dition.
The ACBCST.BB bit allows the software to monitor bus
usage, so it can avoid sending a STOP signal in the mid-
dle of the transaction of some other device on the bus.
This bit detects whether the bus remains unused over a
certain period, while the BB bit is set.
www.national.com
84

CR16MCS5VJI8相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!