GPIO pin description
The CC3200 chip has four sets of pins A0-A4, each set of GPIO has 8 ports, a total of 32 ports. Because the CC3200 chip uses pin multiplexing technology, each pin basically has 7 or 8 functions, so 32 pins contain a lot of functions. Pin multiplexing must be performed before using the pins. Configuration.
- Pin: It represents the number on the chip.
- Mode value: Each pin has multiple functions, 0 means normal GPIO input and output mode.
- Signal name: These signal names are needed when referencing functions.
- Input direction: GPIO has two directions: input and output. For example, if you want an LED to light up, it is to output a certain signal. The button generates a signal, which corresponds to the input signal.
Description of GPIO port of water lamp program
port | Pin | Signal name | Remarks |
---|---|---|---|
Button SW2 | 15 | GPIO22 | Low level is not pressed 0 |
Button SW3 | 04 | GPIO13 | |
LED D5 | 02 | GPIO11 | 0 off 1 on |
LED D6 | 01 | GPIO10 | |
LED D7 | 64 | GPIO09 |
Import of water lamp program
-
单击“Project”→”Import CCS Projects”,打开下图。
The SDK software package is a sealed toolkit provided by the official website, which is convenient for developers to use.
2. Click the "Browse" button, select the CC3200 SDK installation directory, select the blinky project, the option "Copy Projects into workspace" is automatically selected and turned gray, click "Finish".
3. CCS creates a blinky directory in the workspace directory, and copies the blinky project file in the SDK to the blinky directory. The project appears in the "Project Explorer" view of CCS.
4. Right-click the "blinky" project in the "Project Explorer", click "Properties" in the pop-up menu, make sure "Device" is selected "CC3200", and "Compiler version" is selected as "T1" v16.9.4";
5. Click the small hammer icon to generate the project target file "blinkt.out"; in
order to debug the target file, you must configure the target, the steps are as follows.
6. Click "view"→"Target Configuration";
7. Right-click "User Defined", click "Import Target Configuration" in the pop-up menu, and select "CC3200 SDK" installation directory "tools\ Click the "CC3200.ccxml" file in the "ccs_patch" directory and click OK.
8. Right-click "CC3200.ccxml" and select "Set as Default";
9. Connect the development board to the computer with USB, and click the bug button "Debug";
10. The CCS debugging interface includes Variables /Expressions/Registers, Console;
11. Click "Resume" to run the program. The 3 user LEDs of the development board are all off first, and then the red, yellow and green LEDs flash in a cycle.
12. Because it is directly imported into the official blinky project provided by the SDK, the steps to establish the header file path are already included, and no developer operation is required.
References: "ARM Cortex-M4+Wi-Fi MCU Application Guide-CC3200 CCS Basics" edited by Guo Shujun Electronic Industry Press
.