| 数据搜索系统,热门电子元器件搜索 |
|
PC87334VLJ 数据表(PDF) 79 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
PC87334VLJ 数据表(HTML) 79 Page - National Semiconductor (TI) |
|
79 / 102 page ![]() 70 Parallel Port (Continued) 762 Software Operation Software operation is detailed in the IEEE document Ex- tended Capabilities Port Protocol and ISA Interface Stan- dard To highlight the ECP usage some software operations are detailed below 1 The software should enable ECP (bit 2 of PCR is 1) after bits 0 – 3 of the Parallel Port Control Register (CTR) are 100 2 When ECP is enabled and the software wishes to switch modes it should switch only through modes 000 or 001 3 When ECP is enabled the software should change direc- tion only in mode 001 4 The software should switch from mode 010 or 011 to mode 000 or 001 only when the FIFO is empty 5 The software should switch to mode 011 when bits 0 and 1 of DCR are 0 6 The software should switch to mode 010 when bit 0 of DCR is 0 7 The software should disable ECP (bit 2 of PCR is 0) only when in mode 000 or 001 Software may switch from mode 011 backward direction to modes 000 or 001 when there is an on-going ECP read cycle In this case the read cycle is aborted by deasserting AFD The FIFO is reset (empty) and a potential byte expan- sion (RLE) is automatically terminated since the new mode is 000 or 001 The ZWS signal is asserted by the ECP when ECP is en- abled and an ECP register is accessed by host PIO instruc- tions thus using a host zero wait state cycle The ECP uses the X1OSC clock This clock can be frozen (a power-down mode) When this power-down mode oc- curs the DMA is disabled all interrupts (except ACK) are masked and the FIFO registers are not accessible (access is ignored) The other ECP registers are always accessible when the ECP is enabled During this period the FIFO status and contents are not lost although the host reads bit 2 of ECR as 0 bit 1 of ECR as 1 and bit 0 of ECR as 1 regard- less of the actual values of these bits When the clock starts toggling again these bits resume their original functions (and values) When the clock is frozen an on-going ECP cycle may be corrupted but the next ECP cycle will not start This is true even if in forward direction the FIFO is not empty and in backward direction the FIFO is not full If the ECP clock starts or stops toggling during a host cycle that accesses the FIFO the cycle may yield invalid data Note 1 The ECP outputs are inactive when the ECP is disabled Note 2 Only the FIFODMARLE are not functional when the clock is fro- zen All other registers are accessible and functional The FIFO DMARLE are affected by ECR modifications ie they are reset even when exits from modes 010011 are carried out while the clock is frozen 77 REGISTER DEFINITIONS DATAR Parallel Port Data Register Same as DTR register except that read always returns the values of the PD0 – 7 pins (not the register latched data) AFIFO ECP Address FIFO Register Write Only In the for- ward direction (bit 5 of DCR is 0) a byte written into this register is pushed into the FIFO and tagged as a command Unpredictable results will occur when reading this register Writes to this register during backward direction (bit 5 of DCR is 1) have no effect and the data is ignored DSR Data Status Register Read only Same as the current STR register except for bit 2 which is reserved Writes to this register have no effect and the data is ignored Note The FDC has a register of the same name (DSR) DCR Data Control Register Same as the current SPP CTR register with the following exceptions When bit 5 of the DCR is 0 the ECP is in forward direction and when bit 5 is 1 the ECP is in backward direction The ECP drives the PD0 – 7 pins in the forward direction but does not drive them in the backward direction The direction bit bit 5 is readable and writable except in modes 000 and 010 In modes 000 and 010 the direction bit is forced to 0 and data written into this bit is ignored Bit 4 of the DCR enables the ACK deassertion interrupt event (1eenable 0emask) If a level interrupt is configured (bit 4 of PCR is 1) clearing this bit clears the ACK pending interrupt request This bit does not float the IRQ pin In modes 010 and 011 the STB is controlled by both ECP hardware and software (bit 0 of this register) In mode 011 the AFD is controlled by both ECP hardware and software (bit 1 of this register) CFIFO Parallel Port FIFO Register Write only A byte writ- ten or DMAed to this register is pushed into the FIFO and tagged as data Reading this register has no effect and the data read is undefined DFIFO ECP Data FIFO Register In the forward direction (bit 5 of DCR is 0) a byte written or DMAed to this register is pushed into the FIFO and tagged as data Reading this register has no effect and the data read is undefined In the backward direction (bit 5 of DCR is 1) the ECP auto- matically issues ECP read cycles to fill the FIFO Reading this register pops a byte from the FIFO Writing this register has no effect and the data written is ignored TFIFO Test FIFO Register A byte written into this register is pushed into the FIFO A byte read from this register is popped from the FIFO The ECP does not issue a ECP cycle to transfer the data to or from the peripheral device The TFIFO is readable and writable in both directions In the forward direction (bit 5 of DCR is 0) PD0 – 7 is driven but the data is undefined 79 |
|
链接网址 |
| 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 |