Part # Application Notes General Purpose Products STR910-EVAL STR910FM32 STR910FW32 STR911FM32 STR911FM42 STR911FM44 STR912FW32 STR912F datasheet

Part Manufacturer: ST Microelectronics

ST Microelectronics

Part Description: nterfacing CAPS with STR91x Standard Software Library


Part Details:

AN2361 Application note Interfacing with the STR91x software library using Configuration and Programming Software (CAPS) Introduction STR91x microcontrollers offer extremely flexible configuration of I/O routing and clockstructures to optimize the use of each I/O pin and provide fine control of system clocks. Thecontents of a number of STR91x control registers are initialized by firmware at runtime toconfigure the I/O switch matrix on I/O Ports 0 through 9, and to set the initial values ofsystem clock divisors. STMicroelectronics provides the Configuration and Programming Software (CAPS) utility tographically assist users in the selection of pin functions and clock divisors, and to generate aC header file with all the correct settings to integrate into the STR91x standard softwarelibrary. CAPS makes it very easy to visualize the optimum mapping of communicationinterfaces on the I/O pins, reduces the chance of error and reduces the need to study thedatasheet definitions of these control registers in detail. CAPS is also an in-system programming tool that, via an external JTAG adapter, allows fastprogramming of STR9 in both development and production environments. Although thisapplication note does not explore this topic, it describes the fundamental steps needed tointerface with the STR91x Standard Library (STR91x StdLib). For more details about CAPSsoftware functionality, please refer to UM0225 - CAPS User Manual. The first part of this document focuses on how to use CAPS with the STR91x StdLib. Thesecond part provides an example of how to change the clock frequencies and the GPIO pinconfigurations. The source file, 91x_caps.c, which allows the interface between CAPS and the STR91xStdLib is provided with this application note. Glossary This section gives a brief definition of acronyms and abbreviations used in this document: CAPS_project directory: refers to CAPS project directory. By default it is located at: [CAPS Install directoryCAPSProjects] PPP or ppp: in the notation for file names, is used as a placeholder to stand for anyperipheral acronym, such as ADC, CAN, DMA, etc. StdLib_project directory: is the project directory in the STR91x StdLib package user_project directory: refers to user project directory July 2006 Rev 1 1/17 www.st.com Related documents The following topic related documents are available at www.st.com/mcu: UM0225 - CAPS User Manual for STR9 UM0216 - STR91xF Reference Manual This is only a select list of supporting documents. Refer to www.st.com/mcu for a completelist of STR91xF application notes. 2/17 Rev 1 Contents Contents 1 Interfacing CAPS with the STR91x StdLib . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 STR91x StdLib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 Using the STR91x StdLib with CAPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.1 Source file definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.2 General procedure for Interfacing with the STR91x StdLib . . . . . . . . . . . 6 2 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 Clock setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 Pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Rev 1 3/17


Please click the following link to download the datasheet:

Application Notes General Purpose Products STR910-EVAL STR910FM32 STR910FW32 STR911FM32 STR911FM42 STR911FM44 STR912FW32 STR912F.pdf Datasheet