数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

PC87366 数据表(PDF) 145 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
部件名 PC87366
功能描述  128-Pin LPC SuperI/O with System Hardware Monitoring, MIDI and Game Ports
PDF  240 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  NSC [National Semiconductor (TI)]
网页  http://www.national.com
标志 NSC - National Semiconductor (TI)

PC87366 数据表(HTML) 145 Page - National Semiconductor (TI)

Back Button PC87366 Datasheet HTML 141Page - National Semiconductor (TI) PC87366 Datasheet HTML 142Page - National Semiconductor (TI) PC87366 Datasheet HTML 143Page - National Semiconductor (TI) PC87366 Datasheet HTML 144Page - National Semiconductor (TI) PC87366 Datasheet HTML 145Page - National Semiconductor (TI) PC87366 Datasheet HTML 146Page - National Semiconductor (TI) PC87366 Datasheet HTML 147Page - National Semiconductor (TI) PC87366 Datasheet HTML 148Page - National Semiconductor (TI) PC87366 Datasheet HTML 149Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 145 / 240 page
background image
8.0 ACCESS.bus Interface (ACB) (Continued)
145
www.national.com
8.2.7
Master Mode
Requesting Bus Mastership
An ACCESS.bus transaction starts with a master device requesting bus mastership. It asserts a Start Condition, followed
by the address of the device it wants to access. If this transaction is successfully completed, the software may assume that
the device has become the bus master.
For the device to become the bus master, the software should perform the following steps:
1. Configure the INTEN bit of the ACBCTL1 register to the desired operation mode (Polling or Interrupt) and set the START
bit of this register. This causes the ACB to issue a Start Condition on the ACCESS.bus when the ACCESS.bus becomes
free (BB bit of the ACBCST register is cleared, or other conditions that can delay start). It then stalls the bus by holding
SCL low.
2. If a bus conflict is detected (i.e., another device pulls down the SCL signal), the BER bit of the ACBST register is set.
3. If there is no bus conflict, the MASTER bit of the ACBST register and the SCAST of the ACBST register are set.
4. If the INTEN bit of the ACBCTL1 register is set and either the BER or SDAST bit of the ACBST register is set, an interrupt
is issued.
Sending the Address Byte
When the device is the active master of the ACCESS.bus (the MASTER bit of the ACBST register is set), it can send the
address on the bus.
The address sent should not be the device’s own address, as defined by the ADDR bit of the ACBADDR register if the SAEN
bit of this register is set, nor should it be the global call address if the GCMTCH bit of the ACBCST register is set.
To send the address byte, use the following sequence:
1. For a receive transaction where the software wants only one byte of data, it should set the ACB bit of the ACBCTL1
Registe. If only an address needs to be sent or if the device requires stall for some other reason, set the STASTRE bit
of the ACBCTL1 register.
2. Write the address byte (7-bit target device address) and the direction bit to the ACBSDA register. This causes the ACB
to generate a transaction. At the end of this transaction, the acknowledge bit received is copied to the NEGACK bit of
the ACBST register. During the transaction, the SDA and SCL lines are continuously checked for conflict with other de-
vices. If a conflict is detected, the transaction is aborted, the BER bit of the ACBST register is set and the MASTER bit
of this register is cleared.
3. If the STASTRE bit of the ACBCTL1 register is set and the transaction was successfully completed (i.e., both the BER
and NEGACK bits of the ACBST register are cleared), the STASTR bit is set. In this case, the ACB stalls any further
ACCESS.bus operations (i.e., holds SCL low). If the INTEN bit of the ACBCTL1 register is set, it also sends an interrupt
request to the host.
4. If the requested direction is transmit and the start transaction was completed successfully (i.e., neither the NEGACK nor
the BER bit of the ACBST register is set, and no other master has accessed the device), the SDAST bit of the ACBST
register is set to indicate that the ACB awaits attention.
5. If the requested direction is receive, the start transaction was completed successfully and the STASTRE bit of the
ACBCTL1 register is cleared, the ACB starts receiving the first byte automatically.
6. Check that both the BER and NEGACK bits of the ACBST register are cleared. If the INTEN bit of the ACBCTL1 register
is set, an interrupt is generated when either the BER or NEGACK bit of the ACBST register is set.
Master Transmit
After becoming the bus master, the device can start transmitting data on the ACCESS.bus.
To transmit a byte in an interrupt or polling controlled operation, the software should:
1. Check that both the BER and NEGACK bits of the ACBST register are cleared, and that the SDAST bit of the ACBST
register is set. If the STASTRE bit of the ACBCTL1 register is set, also check that the STASTR bit of the ACBST register
is cleared (and clear it if required).
2. Write the data byte to be transmitted to the ACBSDA register.
When either the NEGACK or BER bit of the ACBST register is set, an interrupt is generated. When the slave responds with
a negative acknowledge, the NEGACK bit of the ACBST register is set and the SDAST bit of the ACBST register remains
cleared. In this case, if the INTEN bit of the ACBCTL1 register is set, an interrupt is issued.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com