| 数据搜索系统,热门电子元器件搜索 |
|
AM85C30 数据表(PDF) 44 Page - Advanced Micro Devices |
|
|
|||||||||||||||||||||||||||||
AM85C30 数据表(HTML) 44 Page - Advanced Micro Devices |
|
44 / 194 page ![]() I/O Programming Functional Description AMD 3–13 3.8 EXTERNAL/STATUS INTERRUPTS The External/Status Interrupts are globally enabled via WR1 and may be individually en- abled via WR15 as shown below. The External/Status interrupt sources are: 1) Zero Count, 2) DCD, 3) SYNC/HUNT, 4) CTS, 5) Tx Underrun/EOM, and 6) BREAK/ABORT. D7 BREAK/ ABORT IE D6 Tx Undr/ EOM IE D5 CTS IE D4 SYNC/ HUNT IE D3 DCD IE D2 D1 Zero Count IE D0 D7 D6 D5 D4 D3 D2 D1 D0 Ext/ Status MIE WR15 and WR1—Register Layout The individual External/Status Interrupt enable bits in WR15 control whether or not latches will be present in the path from the source of interrupt to the status bit in RR0. If an individual enable bit in WR15 is set to ‘0’, the latches are not present in the signal path and the value read in RR0 reflects the current status. An interrupt source whose individ- ual enable bit in WR15 is set to ‘0’ is not a source of External/Status interrupts even though the External/Status Master Interrupt Enable bit is set to ‘1’ in WR1 (D0). When an individual enable bit in WR15 is set to ‘1’, the latch is present in the signal path. The latches for the sources of External/Status interrupts are not independent. Rather, they all close at the same time as a result of a state change by one of the sources of in- terrupt. Thus, a read of RR0 returns the current status for any bits whose individual en- able bit in WR15 is set to ‘0’, and either the current state or the latched state of the re- mainder of the bits. To guarantee the current status, the processor should issue a Reset External/Status Interrupts Command in WR0 to open the latches. The External/Status IP in RR3 is set by the closing of the latches and remains set for as long as they are closed. If the master External/Status Interrupt enable bit is not set, the IP will never be set, even though the latches may be present in the signal paths and working as described. Because the latches close on the current status but give no indication of change, the processor must maintain a copy of RR0 in memory. When the SCC gener- ates an External/Status interrupt, the processor should read RR0 and determine which condition changed state and take the appropriate action. The copy of RR0 in memory must then be updated and the Reset External/Status Interrupt Command issued. Care must be taken in writing the interrupt service routine for the External/Status inter- rupts because it is possible for more than one status condition to change state at the same time. All of the latched bits in RR0 should be compared to the copy of RR0 in mem- ory. If none have changed and the ZC interrupt is enabled, the Zero Count condition caused the interrupt. 3.8.1 Sync/Hunt The SYNC/HUNT status bit reports the Hunt state of the receiver in SDLC and Synchro- nous modes. This bit is set to ‘1’ when the processor issues the Enter Hunt Command, and is reset to ‘0’ when character synchronization is established by the receiver. If the SYNC/HUNT IE bit in WR15 is set to ‘1’, the External/Status latches close, and an Exter- nal/Status interrupt will be generated on both the Low-to-High and High-to-Low transitions of the SYNC/HUNT status bit. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |