| Electronic Components Datasheet Search |
|
7643 Datasheet(PDF) 287 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7643 Datasheet(HTML) 287 Page - Renesas Technology Corp |
|
287 / 424 page ![]() Rev.2.00 Aug 28, 2006 page 166 of 202 7643 Group REJ09B0133-0200 APPLICATION 2.6 USB q Use the transfer instructions such as LDA and STA to set the following registers: - USB interrupt status registers 1, 2 (USBIS1, USBIS2: addresses 005216, 005316) - USB endpoint 0 IN control register (IN_CSR: address 005916) - USB endpoint x IN control register (IN_CSR: address 005916) - USB endpoint x OUT control register (OUT_CSR: address 005A16) Do not use the read-modify-write instructions such as the SEB or the CLB instruction. When writing to bits shown by Table 2.6.3 using the transfer instruction such as LDA or STA, a value which never affects its bit state is required. Take the following sequence to change these bits contents: 1. Store the register contents onto a variable or a data register. 2. Change the target bit on the variable or the data register. Simultaneously mask the bit so that its bit state cannot be changed. (See to Table 2.6.3.) 3. Write the value from the variable or the data register to the register using the transfer instruction such as LDA or STA. q Erase the contents of the IN FIFO or OUT FIFO by setting the FLUSH bit to “1”. If there are two packets in the FIFO, the older packet will be erased. This will also modify the state of the IN_PKT_RDY bit and the TX_NOT_EPT flag. q Transfer data may be erased if the FLUSH bit is set to “1” during a transfer. Receive: Set the FLUSH bit to “1” when the OUT_PKT_RDY flag is “1”. q To use the AUTO_SET function for an IN transfer when the AUTO_SET bit is set to 1, set the FIFO to single buffer mode. Table 2.6.3 Bits of which state might be changed owing to software write Register name USB endpoint 0 IN control register USB endpoint x (x = 1, 2) IN control register USB endpoint x (x = 1, 2) OUT control register Bit name IN_PKT_RDY (b1) DATA_END (b3) FORCE_STALL (b4) IN_PKT_RDY (b0) OUT_PKT_RDY (b0) FORCE_STALL (b4) Value not affecting state (Note) “0” “0” “1” “0” “1” “1” Note: Writing this value will not change the bit state, because this value cannot be written to the bit by software. Some application notes are available on the Web site: http://www.renesas.com/en/usb Please refer to them for more explanation and application of USB function. |
|
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 |