| データシートサーチシステム |
|
TS68230 データシート(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
TS68230 データシート(HTML) 18 Page - STMicroelectronics |
|
18 / 61 page ![]() PORT MODES This section contains information that distinguishes the various port modes and submodes. General characteristics common to all modes are defined in Section 2 Port General Information and Conven- tions. A description of the port A control register (PACR) and port B control register (PBCR) is given before each mode description. After each submode description, the programmable options are listed for that submode. 3.1. PORT A CONTROL REGISTER (PACR) The port A control register, in conjunction with the programmed mode and the port B submode, controls the operation of port A and the handshake pins H1 and H2. The port A control register contains five fields : bits 7 and 6 specify the port A submode ; bits 5, 4, and 3 control the operation of the H2 hand- shake pin and the H2S status bit ; bit 2 determines whether an interrupt will be generated when the H2S status bit goes to one ; and bit 1 determines whether a service request (interrupt request or DMA request) will occur ; bit 0 controls the operation of the H1S sta- tus bit. The PACR is always readable and writable. All bits are cleared to zero when the RESET pin is asserted. When the port A submode field is relevant in a mode/submode definition, it must not be altered unless the H12 enable bit in the port general control register is clear (see table 1.3 located at the end of this document). Altering these bits will give unpre- dictable results. 3.2. PORT B CONTROL REGISTER (PBCR) The port B control register specifies the operation of port B and the handshake pins H3 and H4. The port B control register contains five fields : bits 7 and 6 specify the port B submode ; bits 5, 4, and 3 control the operation of the H4 handshake pin and H4S sta- tus bit ; bit 2 determines whether an interrupt will be generated when the H4S status bit goes to a one ; bit 1 determines whether a service request (interrupt request or DMA request) will occur ; and bit 0 controls the operation of the H3S status bit. The PBCR is always readable and writable. There is ne- ver a consequence to reading the register. All bits are cleared to zero when the RESET pin is asserted. When the port B submode field is relevant in a mode/submode definition, it must not be altered unless the H34 enable bit in the port general control register is clear (see table 1.3 located at the end of this document). 3.3. MODE 0 - UNIDIRECTIONAL 8-BIT MODE In mode 0, ports A and B operate independently. Each may be configured in any of its three possible submodes : Submode 00 - Pin-Definable Double-Buffered In- put or Single-Buffered Output Submode 01 - Pin-Definable Double-Buffered Output or Non-Latched Input Submode 1X - Bit I/O (Pin-Definable Single-Buf- fered Output or Non-Latched Input) Handshake pins H1 and H2 are associated with port A and configured by programming the port A control register. (The H12 enable bit of the port general control register enables port A transfers). Hand- shake pins H3 and H4 are associated with port B and configured by programming the port B control register. (The H34 enable bit of the port general control register enables port B transfers). The port A and B data direction registers operate in all three submodes. Along with the submode, they affect the data read and write at the associated data register according to table 3.1. They also enable the output buffer associated with each port pin. The DMAREQ pin may be associated with either (not both) port A or port B, but does not function if the bit I/O submode (submode 1X) is programmed for the chosen port. 7 6543 2 1 0 Port A Submode H2 Control H2 Interrupt Enable H1 SVCRQ Enable H1 Status Control 7 6543 2 1 0 Port B Submode H4 Control H4 Interrupt Enable H3 SVCRQ Enable H3 Status Control SECTION 3 TS68230 18/61 |
|
リンク URL |
| 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 |