Advertisement

Quick Links

USB SAF1761 Host
Controller User Guide
Version 1.20
For use with USBH SAF1761 Host Controller versions
2.11 and above
Date:
29-Aug-2017 17:54
All rights reserved. This document and the associated software are the sole property of HCC
Embedded. Reproduction or duplication by any means of any portion of this document without the
prior written consent of HCC Embedded is expressly forbidden.
HCC Embedded reserves the right to make changes to this document and to the related software at
any time and without notice. The information in this document has been carefully checked for its
accuracy; however, HCC Embedded makes no warranty relating to the correctness of this document.
Copyright HCC Embedded 2017
USB SAF1761 Host Controller User Guide
1
www.hcc-embedded.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the USB SAF1761 and is the answer not in the manual?

Questions and answers

Summary of Contents for HCC USB SAF1761

  • Page 1 HCC Embedded is expressly forbidden. HCC Embedded reserves the right to make changes to this document and to the related software at any time and without notice. The information in this document has been carefully checked for its accuracy;...
  • Page 2: Table Of Contents

    USB SAF1761 Host Controller User Guide Table of Contents System Overview ______________________________________________________________________ 3 Introduction _________________________________________________________________________ 3 Feature Check _______________________________________________________________________ 4 Compatible Devices ___________________________________________________________________ 5 Packages and Documents ______________________________________________________________ 6 Packages ________________________________________________________________________ 6 Documents ______________________________________________________________________ 6 Change History ______________________________________________________________________ 7 Source File List ________________________________________________________________________ 8...
  • Page 3: System Overview

    1 System Overview 1.1 Introduction This guide is for those who want to implement HCC Embedded's USB host stack with NXP Semiconductors' SAF1761 USB host controllers. The NXP devices supported are the SAF1761 and also the legacy products ISP1760, ISP1761, and ISP1763.
  • Page 4: Feature Check

    Conforms to the HCC Advanced Embedded Framework. Designed for integration with both RTOS and non-RTOS based systems. Integrated with the HCC USB Host stack and all its class drivers. Supports NXP Semiconductors' SAF1761 host controllers and also the legacy ISP1760, ISP1761, and ISP1763 host controllers.
  • Page 5: Compatible Devices

    USB SAF1761 Host Controller User Guide 1.3 Compatible Devices The module supports the following devices: Device Notes NXP ISP1760 This is no longer marketed by NXP. NXP ISP1761 This is no longer marketed by NXP. ST ISP1763 This is now produced by ST Microelectronics.
  • Page 6: Packages And Documents

    Also follow the when HCC provides package updates. HCC Source Tree Guide This document describes the HCC source tree. It gives an overview of the system to make clear the logic behind its organization. HCC USB Host Base System User Guide This document defines the USB host base system upon which the complete USB stack is built.
  • Page 7: Change History

    1.5 Change History This section describes past changes to this manual. To view or download earlier manuals, see Archive: USB SAF1761 Host Controller User Guide For the history of changes made to the package code itself, see History: usbh_drv_isp176x History: usbc_drv_isp1582_isp176x The current version of this manual is 1.20.
  • Page 8: Source File List

    USB SAF1761 Host Controller User Guide 2 Source File List This section describes all the source code files included in the system. These files follow the HCC Embedded standard source tree system, described in the HCC Source Tree Guide . All references to file pathnames refer to locations within this standard source tree, not within the package you initially receive.
  • Page 9: Source Files In The Common Package

    3 Source Files in the Common Package This section describes the source code files included in the common package used by both the SAF1761 module and the ISP1582 device low level driver. These files follow the HCC Embedded standard source tree system, described in the HCC Source Tree Guide .
  • Page 10: Platform Support Package (Psp) Files

    USB SAF1761 Host Controller User Guide 3.4 Platform Support Package (PSP) Files These files are in the directory src/psp/target/usbh_usbd_isp . They provide functions and elements the core code may need to use, depending on the hardware. Note: These are PSP implementations for the specific microcontroller and development board; you may need to modify these to work with a different microcontroller and/or board.
  • Page 11: Configuration Options

    USB SAF1761 Host Controller User Guide 4 Configuration Options This section lists the available configuration options and their default values. 4.1 SAF1761 Configuration File Set the following system configuration options in the file src/config/config_usbh_isp176x.h MAX_DEVICE The maximum number of devices supported. The default is 2.
  • Page 12 USB SAF1761 Host Controller User Guide ISP_CHIP_VER_SAF Specify the device type; see Compatible Devices 0 = ISP176x (the default). 1 = SAF176x ISP_32BIT_IF This specifies how ISP is interfaced: 0 = 16bit mode (the default). 1 = in 32 bit mode.
  • Page 13: Starting The Host Controller

    USB SAF1761 Host Controller User Guide 5 Starting the Host Controller This section shows how to start the host controller and describes the task created. It includes a code example. 5.1 usbh_isp_hc This external interface function provides the host controller descriptor required by the usbh_hc_init() function.
  • Page 14: Code Example

    USB SAF1761 Host Controller User Guide 5.3 Code Example This example shows how to initialize the host controller. Note the following: There is only one external interface function, usbh_isp_hc() . To link this host controller to the system, you call the usbh_hc_init() function with this function as a parameter.
  • Page 15: Integration

    This section specifies the elements of this package that need porting, depending on the target environment. 6.1 OS Abstraction Layer All HCC modules use the OS Abstraction Layer (OAL) that allows the module to run seamlessly with a wide variety of RTOSes, or without an RTOS.
  • Page 16: Psp Porting

    USB SAF1761 Host Controller User Guide 6.2 PSP Porting The Platform Support Package (PSP) is designed to hold all platform-specific functionality, either because it relies on specific features of a target system, or because this provides the most efficient or flexible solution for the developer.
  • Page 17 USB SAF1761 Host Controller User Guide Note: HCC can provide samples for different configurations; contact support@hcc-embedded.com Copyright HCC Embedded 2017 www.hcc-embedded.com...
  • Page 18: Psp_Isp_Init

    USB SAF1761 Host Controller User Guide psp_isp_init This function is provided by the PSP to initialize the device. This enables the clocks, GPIO pin, external memory interface, and so on. Format psp_isp_init ( void Arguments None. Return Values Return value Description Successful execution.
  • Page 19: Psp_Isp_R16

    USB SAF1761 Host Controller User Guide psp_isp_r16 This function is provided by the PSP to read a 16 bit value from the specified address. This macro is configurable for 16 and 32 bit addressing, based on the setting of ISP_32BIT_IF...
  • Page 20: Psp_Isp_R32

    USB SAF1761 Host Controller User Guide psp_isp_r32 This function is provided by the PSP to read a 32 bit value from the specified address. This macro is configurable for 16 and 32 bit addressing, based on the setting of ISP_32BIT_IF...
  • Page 21: Psp_Isp_W16

    USB SAF1761 Host Controller User Guide psp_isp_w16 This function is provided by the PSP to write a 16 bit value. Format psp_isp_w16 ( a, v ) Arguments Parameter Description Type Where to write the value. uint16_t The value to write.
  • Page 22: Psp_Isp_W32

    USB SAF1761 Host Controller User Guide psp_isp_w32 This function is provided by the PSP to write a 32 bit value. Format psp_isp_w32 ( a, v ) Arguments Parameter Description Type Where to write the value. uint32_t The value to write.
  • Page 23: Psp_Isph_Read_Mem

    USB SAF1761 Host Controller User Guide psp_isph_read_mem This function is provided by the PSP to read from the Host memory area. Format void psp_isph_read_mem ( uint8_t * p_dst, uint32_t addr, uint32_t size ) Arguments Parameter Description Type p_dst Where to put the data read.
  • Page 24: Psp_Isph_Read_Ptd

    USB SAF1761 Host Controller User Guide psp_isph_read_ptd This function is provided by the PSP to read from the PTD. Format void psp_isph_read_ptd ( uint32_t * p_ptd, uint32_t addr, uint16_t size ) Arguments Parameter Description Type p_ptd Where to put the data read.
  • Page 25: Psp_Isph_Write_Mem

    USB SAF1761 Host Controller User Guide psp_isph_write_mem This function is provided by the PSP to write to the Host memory area. Format void psp_isph_write_mem ( uint32_t addr, uint8_t * p_src, uint32_t size ) Arguments Parameter Description Type addr Where to write to.
  • Page 26: Psp_Isph_Write_Ptd

    USB SAF1761 Host Controller User Guide psp_isph_write_ptd This function is provided by the PSP to write to the PTD. Format void psp_isph_write_ptd ( uint32_t addr, uint32_t * p_ptd, uint16_t size ) Arguments Parameter Description Type addr The address in the PTD to write to.

Table of Contents