This book uses the CCS integrated development environment, TI CC3200 LaunchPad as the hardware platform, and CC3200 SDK v1.1.0 sample programs as the core. Based on the analysis of sample programs, this book introduces the usage of each part of CC3200, and modifies and improves some sample programs to enhance program functions. The book has 9 chapters: Chapter 1 briefly introduces the composition of CC3200, Chapter 2 introduces the software and hardware development environment of CC3200, Chapter 3 introduces the application of on-chip peripheral interfaces such as GPIO, UART, SPI and I2C, Chapter 4 introduces the application of on-chip peripherals such as GPT, ADC, NVIC and μDMA, Chapter 5 introduces the introduction of network applications WLAN stations and WLAN access points, Chapter 6 introduces the basics of network applications TCP and UDP, Chapter 7 introduces network application configuration SmartConfig and WPS, Chapter 8 introduces HTTP server, and Chapter 9 introduces sleep, deep sleep and hibernation power management. Chapter 1 Introduction to CC3200 1 1.1 Application MCU 2 1.1.1 ARM Cortex-M4 2 1.1.2 Memory 3 1.1.3 On-chip Peripherals 5 1.2 Wi-Fi Network Processor (CC3100) 6 1.3 Power Management 7 1.4 Pin Multiplexing 8 Chapter 2 Development Environment 9 2.1 Software Development Environment 9 2.1.1 Software Development Kit (SDK) 9 2.1.2 Integrated Development Environment (IDE) 14 2.1.3 Utilities 21 2.1.4 Support Tools 24 2.1.5 ROM Service 30 2.2 Hardware Development Environment 32 2.2.1 TI CC3200 LaunchPad Out-of-Pack Experience 32 2.2.2 Service Pack Update 35 Chapter 3 On-Chip Peripheral Interface Application 39 3.1 GPIO Interface Application 39 3.1.1 3.1.2 Introduction to GPIO Usage 50 3.1.3 Program Design for Button Control of LED Flashing Time 51 3.1.4 Introduction to PinMux Usage 52 3.2 UART Interface Application 54 3.2.1 Introduction to UART 55 3.2.2 Analysis of UART Example Program 56 3.2.3 Introduction to UART Usage 65 3.2.4 Small Improvements to UART Example Program 66 3.3 SPI Interface Application 66 3.3.1 Analysis of SPI Example Program 67 3.3.2 Introduction to SPI Usage 78 3.4 I2C Interface Application 79 3.4.1 Analysis of I2C Example Program 80 3.4.2 Introduction to I2C Usage 89 3.4.3 Program Design for Temperature Measurement and Acceleration Measurement 90 Chapter 4 On-Chip Peripheral Applications 93 4.1 GPT Application 93 4.1.1 Analysis of Timer Example Program 94 4.1.2 Analysis of PWM Example Program 104 4.1.3 Analysis of the Count Capture Sample Program 109 4.1.4 Introduction to GPT Usage 115 4.1.5 Design of Rectangular Wave Period and Pulse Width Measurement Program 118 4.2 ADC Application 120 4.2.1 Analysis of the ADC Sample Program 121 4.2.2 Introduction to ADC Usage 126 4.3 NVIC Application 126 4.3.1 Analysis of the NVIC Sample Program 127 4.3.2 Introduction to NVIC Usage 132 4.3.3 Summary of Peripheral Interrupt Usage 133 4.4 DMA Application 137 4.4.1 Analysis of the UART DMA Sample Program 138 4.4.2 Introduction to DMA Usage 144 4.4.3 Analysis of the DMA Sample Program 146 Chapter 5 Introduction to Network Applications 155 5.1 Analysis of the Wlan_station Sample Program 156 5.1.1 Analysis of the main function main() 158 5.1.2 5.2 Analysis of WlanStationMode() 160 5.2 Analysis of Wlan_ap Sample Program 173 5.2.1 Analysis of main function main() 174 5.2.2 Analysis of WlanAPMode() 175 Chapter 6 Network Application Basics 183 6.1 Analysis of Tcp_socket Sample Program 184 6.1.1 Analysis of BsdTcpServer() 188 6.1.2 Analysis of BsdTcpClient() 192 6.2 Analysis of Udp_socket Sample Program 195 6.2.1 Analysis of BsdUdpServer() 199 6.2.2 Analysis of BsdUdpClient() 201 6.3 Wireless UART Program Design 204 6.3.1 Wuart_station Program Design 205 6.3.2 Wuart_ap Program Design 210 6.3.3 Programming the Application to Serial Flash 214 Chapter 7 Network Application Configuration 217 7.1 7.2 Analysis of the Provisioning_smartconfig Sample Program 217 7.2 Analysis of the Provisioning_wps Sample Program 221 7.2.1 Analysis of WpsConnectPushButton() 223 7.2.2 Analysis of WpsConnectPinCode() 224 Chapter 8 HTTP Server 225 8.1 Introduction to HTTP Server 225 8.1.1 HTTP GET Processing 226 8.1.2 HTTP POST Processing 227 8.1.3 Internal Web Pages 228 8.2 Analysis of the Provisioning_ap Sample Program 228 8.2.1 Analysis of ProvisioningAP() 231 8.2.2 Analysis of GetScanResult() 234 8.2.3 Analysis of HTTP Server 235 8.3 Analysis of the Out_of_box Sample Program 239 8.3.1 Analysis of HTTP Server Callback Functions 242 8.3.2 Analysis of Home Automation Web Pages 244 8.3.3 Analysis of Home Appliances Web Pages 245 8.3.5 Analysis of the Smart Energy Web Page 249 8.4 Summary of the HTTP Server 250 Chapter 9 Power Management 253 9.1 Analysis of the Sleep_deepsleep Sample Program 253 9.1.1 Analysis of WDT Wake-up Sleep PerformPRCMSleepWDTWakeup() 254 9.1.2 Analysis of GPT Wake-up Sleep PerformPRCMSleepGPTWakeup() 256 9.2 Analysis of the Deepsleep_nw Sample Program 259 9.3 Analysis of the Hib Sample Program 261 Appendix A CC3200 Peripheral Driver API 265 Appendix B CC3200 Network Driver API 275 Appendix C CC3200 Pin Multiplexing Function 279 Appendix D CC3200 Peripheral Pin Assignment 283 Appendix E Introduction to CC3200 LaunchPad 287 Appendix F CC3200 Exceptions and Interrupts 291 Appendix G CC3200 DMA Channel Allocation 293 Appendix H Experimental Instructions 295 Using Software 308 References 309
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore