Cypress Semiconductor SL811HS Manual de usuario Pagina 12

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 43
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 11
Cypress Semiconductor Corporation
SL811HS and SL811HST: Application Notes
©2001 Cypress Semiconductor Corporation. All rights reserved. The information
and specifications contained in this document are subject to change without
notice.
Date: 07/26/01
Revision: 1.21
Page: 12
2.5.2 Initialization from Slave to Host
This software initialization is on SL811HS host mode. This assumes hardware is already
configured host mode.
- Power up
- Config host mode
o Write value “0xAE” to register 0FH
- Enable power to USB device
- Delay for hardware stable before detect USB device
o Delayms (25,0); // Delay 25 mili-second
- Memory Test
- Host Initialization:
o Hardware reset chip
o Interrupt Enable on set USB_AB, Insert/Remove, and USB Reset
o USB Reset, set full speed, and clock 12/48 Mhz mode
§ Write a value “0x48” to register 05H
o Disable USB Transfer and SOF generation
§ Write a value “0x00” to register 05H
- Full/Low Speed Detection
o If bit-7 of Interrupt Status (0DH) equal 0, it is Low speed device.
§ Write value “0xFF” to register 0EH
§ Write value “0x0E” to register 0EH
§ Write value “0x21” to register 05H
o If bit- 7 of Interrupt Status (0DH) equal 1, then it is Full speed device.
§ Write value “0xAE” to register 0EH
§ Write value “0x0E” to register 0EH
§ Write value “0x05” to register 05H
o Otherwise if there is no power or no device attach clear Interrupt Status
§ Write value “0xFF” to register 0DH
- Generate SOF to USB device
o Write a value “0x50” to register 00H
o Write a value “0x00” to register 04H
o Write a value “0x01” to register 00H
- Delay for Hardware stable before enumeration
o Delayms (10,0); // Delay 10 mili-second
Vista de pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 42 43

Comentarios a estos manuales

Sin comentarios