background image

 

Hardware 

CYW943907AEVAL1F Evaluation Kit User Guide, Doc. No. 002-18703 Rev. *B 

37 

4.10  PWM 

There are six dedicated PWM outputs available on CYW43907. These PWMs can be multiplexed onto different pins. You can 
find their definitions in 

platforms/CYW943907AEVAL1F/platform.c.

 

These PWMs can be reassigned to other pins by changing 

the first argument of the

  platform_pwm_t  platform_pwm_peripherals 

structure in 

platform.c.

 

Table 4-11

 through 

Table 4-16

 show the possible combinations and their Arduino header locations.

 

Table 4-11. WICED_PWM_1 Combinations 

PIN M

UX

 SELECTION

 

HEADER 

PIN

 

HEADER NAME

 

PIN_GPIO_10 
(DEFAULT)

 

J12.4 

Arduino D11 (MOSI) 

PIN_GPIO_0

 

J10.1 

Arduino D0 

PIN_GPIO_8

 

 

 

PIN_GPIO_12

 

J12.5 

Arduino D12 (MISO) 

PIN_GPIO_14

 

 

 

PIN_GPIO_16

 

J10.6 

Arduino D5 

PIN_PWM_0

 

 

 

 

Table 4-12. WICED_PWM_2 Combinations 

Pin MUX Selection 

Header Pin 

Header Name 

PIN_GPIO_11 (DEFAULT)

 

J12.3 

Arduino D10  

PIN_GPIO_1

 

J10.1 

Arduino D0 

PIN_GPIO_7

 

J10.4 

Arduino D3 

PIN_GPIO_9

 

J12.9 

Arduino SCK 

PIN_GPIO_13

 

J10.3 

Arduino D2 

PIN_GPIO_15

 

J10.7 

Arduino D6 

PIN_PWM_1

 

 

 

 

Table 4-13. WICED_PWM_3 Combinations 

Pin MUX Selection 

Header Pin 

Header Name 

PIN_GPIO_16 
(DEFAULT)

 

J10.6 

Arduino D5 

PIN_GPIO_8

 

 

 

PIN_GPIO_0

 

J10.1 

Arduino D0 

PIN_GPIO_10

 

J12.4 

Arduino D11 (MOSI) 

PIN_GPIO_12

 

J12.5 

Arduino D12 (MISO) 

PIN_GPIO_14

 

 

 

PIN_PWM_2

 

 

 

 

Table 4-14. WICED_PWM_4 Combinations 

PIN MUX SELECTION 

HEADER 

PIN

 

HEADER 

NAME

 

PIN_GPIO_15 
(DEFAULT)

 

J10.7 

Arduino D6 

PIN_GPIO_1

 

J10.1 

Arduino D0 

Summary of Contents for CYW943907AEVAL1F

Page 1: ...907AEVAL1F Evaluation Kit User Guide Doc No 002 18703 Rev B 1 CYW943907AEVAL1F Evaluation Kit User Guide Doc No 002 18703 Rev A Cypress Semiconductor 198 Champion Court San Jose CA95134 1709 www cypre...

Page 2: ...ut of any security breach such as unauthorized access to or use of a Cypress product In addition the products described in these materials may contain design defects or errors known as errata which ma...

Page 3: ...ument Conventions 11 1 8 Acronyms 11 2 Software Installation 12 2 1 System Requirements 12 2 2 Installation Steps 12 3 Kit Operation 15 3 1 Theory of Operation 15 3 2 Onboard Programmer Debugger and S...

Page 4: ...Contents CYW943907AEVAL1F Evaluation Kit User Guide Doc No 002 18703 Rev B 4 5 1 AWSIOTPubSub Project 39 5 2 WiFiScanner 49 Revision History 50...

Page 5: ...to high energy discharges Proper ESD precautions are recommended to avoid performance degradation or loss of functionality Store unused CYW943907AEVAL1F in the protective shipping package End of Life...

Page 6: ...tion development kitsboards cyw943907aeval1f evaluation kit for the WICED Studio based development flow The CYW943907AEVAL1F EVK offers footprint compatibility with Arduino shields In addition the kit...

Page 7: ...act your nearest Cypress sales office for assistance www cypress com support Hardware Not Included with the Kit The CYW943907AEVAL1F EVK does not come with all the hardware needed to perform the demon...

Page 8: ...8 5 WICED Header J6 6 Arduino Header J13 7 User Switch 1 SW3 8 User Switch 2 SW1 9 Arduino Header J9 10 PCB Antenna Main ANT1 11 Connector for External Antenna 1 J1 12 CYW43907 Type 1GC Module Murata...

Page 9: ...IDE is an installable IDE built on top of the Eclipse framework It allows you to create and modify designs The user interface integrates into Eclipse As little of the code as possible interfaces with...

Page 10: ...the kit such as the onboard programmer debugger chip reset control headers programming and debugging of the kit SD card interface and Ethernet interface The Hardware chapter describes the CYW943907AEV...

Page 11: ...cedures Click the File icon and then click Open Times New Roman Displays an equation 2 2 4 Text in gray boxes Describes Cautions or unique functionality of the product 1 8 Acronyms Table 1 2 List of A...

Page 12: ...indows you must have Microsoft Visual C 2017 Redistributable x64 14 14 26429 installed This is installed by default with the ModusToolbox Windows installer For Linux and macOS ModusToolbox requires th...

Page 13: ...1 0 0 build dmg file This file will be mounted as a disk image on your machine A window for the mounted image appears 2 On the mounted image window drag and drop the ModusToolbox_ version folder on t...

Page 14: ...ox to hide this dialog on future startups Note Do not use spaces or illegal characters anywhere in the path of the workspace name or location 2 2 5 Next Steps Refer to the Quick Start Guide for brief...

Page 15: ...ich is a Murata Type1GC wireless module This module is an embedded network controller solution from Murata This board also contains a USB Serial interface JTAG programmer and a debugger This board fea...

Page 16: ...E installation process When you connect the kit for the first time to your PC it will search for the appropriate driver as shown in Figure 3 2 To verify the successful completion of driver installatio...

Page 17: ...does not appear in Device Manager verify that the 3V3 LED D2 is turned ON and check the USB cable 3 3 3 External Power Supply The CYW943907AEVAL1F EVK can be powered using an external power supply 5...

Page 18: ...sToolbox To build and program a project for CYW943907AEVAL1F EVK do the following 1 Launch Modus IDE Run the ModusToolbox executable file to launch the IDE as applicable for your operating system The...

Page 19: ...ct dialog chose the option to start your project from a board see Figure 3 7 You can start a development project based on the CYW43907 device only through the Start from a Board option and not through...

Page 20: ...e do the following Select the WiFiScanner project from the list Select the appropriate OS NS In this case ThreadX_NetXDuo is the only option available Other starter projects also have ThreadX_NetX as...

Page 21: ...Doc No 002 18703 Rev B 21 Figure 3 10 Summary of Project Options 6 Click Finish to create the project After a few moments the Modus IDE displays the progress information When complete project folders...

Page 22: ...oc No 002 18703 Rev B 22 Figure 3 11 Created Project 7 Build Starter Project After loading a project select Project Build All or press Ctrl B Figure 3 12 Build Project Messages appear in the console i...

Page 23: ...roject and click Run Figure 3 14 External Tool Configuration for Programming the Project If needed the IDE builds the project and displays messages in the console If the build is successful device pro...

Page 24: ...connection with the serial port number listed on Device Manager as shown in Figure 3 3 Note The exact port number will vary with the corresponding PC port Figure 3 16 Serial Port Setup d Press the Re...

Page 25: ...02 18703 Rev B 25 Figure 3 17 Console Output 3 4 2 Debugging a Project for CYW943907AEVAL1F in ModusToolbox 1 Click the Debug button The first time you do this the Debug Configurations dialog appears...

Page 26: ...select the WiFiScanner Debug configuration and click Debug If required the IDE builds the project and messages display in the console If the build is successful the IDE switches to debug mode automati...

Page 27: ...Kit Operation CYW943907AEVAL1F Evaluation Kit User Guide Doc No 002 18703 Rev B 27 Figure 3 19 Modus IDE Debug Window...

Page 28: ...nes For more information regarding bootstrap options refer to the CYW43907 Datasheet Bootstrap options other than GPIO_7 and GPIO_13 are not available for the user to modify in this board To change Bo...

Page 29: ...D There are two user LEDs available These are named LED_1 and LED_2 Table 4 3 shows the pin name and enumeration used in SDK for these LEDs Table 4 3 User LED Available on the Board SWITCH CYW43907 PI...

Page 30: ...h an external PHY chip BCM5241 using the Media Independent Interface MII as shown in Figure 4 5 The same signals are also listed in Table 4 4 CYW43907 also supports Reduced Media Independent Interface...

Page 31: ...1 MII_TXD1 TXD1 7 RMII_G_TXD2 MII_TXD2 TXD2 8 RMII_G_TXD3 MII_TXD3 TXD3 9 RMII_G_RXD0 MII_RXD0 RXD0 PHYAD0 10 RMII_G_RXD1 MII_RXD1 RXD1 ANEN_L 11 RMII_G_RXD2 MII_RXD2 RXD2 F100 12 RMII_G_RXD3 MII_RXD3...

Page 32: ...e of CYW43907 The CYW43907 device supports both SDIO 3 0 Host and device modes Figure 4 6 shows the interface between the Micro SD connector and CYW43907 The same signals are also listed in Table 4 5...

Page 33: ...board Programmer Debugger Connection 1 GPIO_2_JTAG_TCK FTDI_JTAG_TCK 2 GPIO_3_JTAG_TMS FTDI_JTAG_TMS 3 GPIO_4_JTAG_TDI FTDI_JTAG_TDI 4 GPIO_5_JTAG_TDO FTDI_JTAG_TDO 5 GPIO_6_JTAG_TRST_L FTDI_JTAG_TRST...

Page 34: ...IPHERAL_PIN_6 WICED_UART_2 J6 25 I2C_0_SDA WICED_GPIO_48 WICED_I2C_1 J6 26 I2S1_MCK WICED_GPIO_33 WICED_I2S_3 J6 27 I2S1_WS_LRCLK WICED_GPIO_35 WICED_I2S_3 J6 28 GND N A N A J6 29 I2S1_SCK_BCLK WICED_...

Page 35: ...D_GPIO_31 WICED_I2S_1 J12 1 I2S1_SD_IN D8 WICED_GPIO_36 WICED_I2S_3 J12 2 PWM_4 D9 WICED_GPIO_17 WICED_PWM_5 J12 3 GPIO_11 D10 WICED_GPIO_7 WICED_PWM_2 J12 4 GPIO_10 D11 WICED_GPIO_6 WICED_PWM_1 J12 5...

Page 36: ...T0_TXD_OUT J6 20 WICED_UART_2 WICED_PERIPHERAL_PIN_5 UART0_CTS UART0_CTS_IN J6 22 WICED_UART_2 WICED_PERIPHERAL_PIN_6 UART0_RTS UART0_RTS_OUT J6 24 WICED_UART_2 WICED_PERIPHERAL_PIN_7 RF_SW_CTRL_8 RF_...

Page 37: ...J12 4 Arduino D11 MOSI PIN_GPIO_0 J10 1 Arduino D0 PIN_GPIO_8 PIN_GPIO_12 J12 5 Arduino D12 MISO PIN_GPIO_14 PIN_GPIO_16 J10 6 Arduino D5 PIN_PWM_0 Table 4 12 WICED_PWM_2 Combinations Pin MUX Selecti...

Page 38: ...SELECTION HEADER PIN HEADER NAME PIN_PWM_4 DEFAULT J6 1 Arduino A1 PIN_GPIO_0 J10 1 Arduino D0 PIN_GPIO_8 PIN_GPIO_10 J12 4 Arduino D11 MOSI PIN_GPIO_12 J12 5 Arduino D12 MISO PIN_GPIO_14 PIN_GPIO_16...

Page 39: ...onfig_dct file connects to AWS subscribes to the specified topic and then alternately tries to publish and subscribe messages The project consists of the following files aws_app c This file contains t...

Page 40: ...including AWS IoT You are charged only for the services that you use For more information about AWS IOT see the help pages of AWS here 1 Open https aws amazon com and choose Create an AWS Account 2 Fo...

Page 41: ...the AWS IoT Console window choose Manage Things on the left hand panel and then click the Create button as shown in Figure 5 2 Figure 5 2 Create Thing 2 Select Create a single thing Each Thing is uniq...

Page 42: ...Guide Doc No 002 18703 Rev B 42 Figure 5 3 Create a Thing 3 In Add a certificate for your thing window select Create thing without certificate Figure 5 4 Add a Certificate to Your Thing 4 You will se...

Page 43: ...rd change the last part of the Resource ARN as follows from arn aws iot us east 1 xxxxxxxxxxxx topic replaceWithATopic to arn aws iot us east 1 xxxxxxxxxxxx Notes Use the region that you selected when...

Page 44: ...reate button You will see your policy created in Policies window 5 1 3 4 Create a Certificate for a Thing 1 In the AWS IoT Console window go to Manage Things and then click on the created thing for ex...

Page 45: ...Window download A certificate for this thing and A private key by clicking on corresponding Download tabs Click on Activate tab and Attach a policy as shown in Figure 5 8 Figure 5 8 Download and Activ...

Page 46: ...snips aws_iot_app privkey cer 5 Select the check box next to the policy you want to choose and click Done as shown in Figure 5 9 Figure 5 9 Register a Thing 6 Click on the Thing you have created Go to...

Page 47: ...access point uses WPA2 PSK If your AP uses a different security then choose the correct one defined in enum wiced_security_t from AWSIOTPubSub_bootloader_Base_WICED wiced_base 1 0 components WIFI SDK...

Page 48: ...Code Examples CYW943907AEVAL1F Evaluation Kit User Guide Doc No 002 18703 Rev B 48 Figure 5 11 Publish_Subscribe_aws Output Figure 5 12 Messages Published...

Page 49: ..._AP_SSID and CLIENT_AP_PASSPHRASE Note that the security type may also have to be changed if the access point does not use WPA2 security 5 2 2 Hardware Connections No specific hardware connections are...

Page 50: ...uide Document Number 002 18703 Revision Issue Date Origin of Change Description of Change 06 22 2017 KAVS Initial version A 06 18 2018 SHJL Updated Section 5 5 Publish_subscribe_aws based on the new u...

Reviews: