| Electronic Components Datasheet Search |
|
ML60841 Datasheet(PDF) 39 Page - OKI electronic componets |
|
|
|||||||||||||||||||||||||||||
ML60841 Datasheet(HTML) 39 Page - OKI electronic componets |
|
39 / 74 page ![]() PEDL60841-01 OKI Semiconductor ML60841 39/74 • EP0 Received Byte Count & Status Register (348h) Bits Field Reset USB Reset R/W 31:16 Don’t care X X X 15:08 The ML60841 automatically counts the number of bytes in the packet being received. While the counting is made up to the number of bytes equal to the maximum packet size specified in the payload register in the case of full packets, the byte count will fall short of that maximum packet size in the case of short packets. The microcomputer refers to this value and reads the data of one packet from the EP0 Receive FIFO. EP0RXCNT is cleared under the following conditions: 1. When the microcontroller resets the EP packet ready bit. 2. When a setup packet is received. 3. When the microcontroller writes a “0” in the stall bit. 00h 00h R 07:06 Don’t care X X X 05:04 EP0 stage 00: Default stage 01: Data stage 10: Data stage completed state 0b 0b R 03 Don’t care X X X 02 Setup ready: This bit is set automatically when a setup packet for storing 8 bytes of setup data in the setup registers arrives correctly, and the EP0 Receive FIFO gets locked. If INTENBL1 (0) has been asserted, the INTR signal is asserted automatically when this bit is set. Write a “1” in this bit when the microcomputer completes reading the 8 bytes of setup data. By doing so, the setup ready will be reset and also the INTR pin will be deasserted. In the case of a control write transfer, the EP0 packet ready bit is reset at the same time thereby releasing the lock on the EP0 Receive FIFO so that packet reception can be made by EP0 during the data stage. Note that the value of this register will not change even if a “0” is written in this bit. 0b 0b R/Reset 01 EP0 Transmit pocket ready 0b 0b R/Set 00 EP0 Receive packet ready 0b 0b R/Reset [Description] • EP0 Transmit packet ready bit (bit 01) This bit can be read by the microcontroller. In addition, this bit can be set to “1” by writing a “1” in this bit 01. The conditions of asserting and deasserting this bit are as follows. Bit name Assert condition Operation when asserted EP0 Transmit packet ready (bit 01) When the microcontroller sets this bit Data transmission can be made from EP0. Bit name Deassert condition Operation when deasserted EP0 Transmit packet ready (bit 01) 1. When an ACK is received from the host in response to data transmission from EP0. 2. When a setup packet is received. EP0 is locked. That is, an NAK is returned automatically when an IN token arrives from the host. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |