Cypress Semiconductor CY8CKIT-062-WiFi-BT Скачать руководство пользователя страница 77

PSoC 6 WiFi-BT Pioneer Kit Guide, Doc. # 002-22677 Rev. *B

77

Default configurations in WICED configured; these can be changed if needed.

System Clocks

Name 

Configuration 

Used For

Notes

Clk_Hf[1]

Input: Clk_path_1 (PLL)

Divider: 1

Frequency: 90 MHz

Clocking audio sub-

system 

The WICED audio API assume this clock 
is configured for 90 MHz. If not using 
WICED audio API feel free to change. If 
using WICED audio API do not change. 

PLL

Input: IMO

Output: 90 MHz

Clk_HF[1] root

See note on Clk_Hf[1]

Peripheral Clocks

Divider Type

Divider #

Used For

Notes

8 Bit

2

CapSense

If not using WICED CapSense API, feel 
free to change. If using WICED Cap-
Sense API, do not change. 

16 bit

5

WICED STDIO 

UART

If not using WICED STDIO UART, feel 
free to change, otherwise do not change

GPIO

Port

Pin

Used For

Notes

5

0

WICED STDIO 

UART

If not using WICED STDIO UART, feel 
free to change, otherwise do not change

5

1

WICED STDIO 

UART

If not using WICED STDIO UART, feel 
free to change, otherwise do not change

0

3

RED LED

Configured for Strong Drive

1

1

Green LED

Configured for Strong Drive

11

1

Blue LED

Configured for Strong Drive

0

4

SW2

Configured for Pull-Up

8

1

CapSense

If not using WICED CapSense, feel free to 
use

8

2

CapSense

If not using WICED CapSense, feel free to 
use

8

3

CapSense

If not using WICED CapSense, feel free to 
use

8

4

CapSense

If not using WICED CapSense, feel free to 
use

8

5

CapSense

If not using WICED CapSense, feel free to 
use

8

6

CapSense

If not using WICED CapSense, feel free to 
use

8

7

CapSense

If not using WICED CapSense, feel free to 
use

Содержание CY8CKIT-062-WiFi-BT

Страница 1: ...CY8CKIT 062 WiFi BT PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 www cypress com...

Страница 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...

Страница 3: ...2 3 Programming and Debugging using PSoC Creator 21 2 4 Kit Code Examples 21 2 4 1 Using the Kit Code Examples Built in PSoC Creator 21 3 WICED 24 3 1 Introduction 24 3 2 Before You Begin 24 3 3 Insta...

Страница 4: ...er Supply System 61 A 2 6 Expansion Connectors 64 A 2 7 CapSense Circuit 65 A 2 8 LEDs 65 A 2 9 Push Buttons 66 A 2 10 Cypress NOR Flash 66 A 2 11 WiFi and Bluetooth Module 67 A 2 12 USB Host and USB...

Страница 5: ...oards and associated components Cypress recommends that you perform procedures only at an ESD workstation If an ESD workstation is unavailable use appropriate ESD protection by wearing an anti static...

Страница 6: ...flash an onboard programmer debugger KitProg2 a 2 4 GHz WLAN and Bluetooth functionality module CYW4343W a USB Type C power delivery system EZ PD CCG3 a five segment CapSense slider two CapSense butt...

Страница 7: ...in Figure 1 1 PSoC 6 WiFi BT Pioneer Board CY8CKIT 028 TFT Display Shield USB Type A to Type C cable Four jumper wires 4 inches each Two proximity sensor wires 5 inches each Quick Start Guide Figure...

Страница 8: ...plications support EZ PD CCG3 USB Type C power delivery PD system with rechargeable lithium ion polymer Li Po battery support2 CapSense touch sensing slider five elements and two buttons all of which...

Страница 9: ...header J18 J19 and J20 16 Arduino Uno R3 compatible power header J1 17 PSoC 6 debug and trace header J12 18 Arduino Uno R3 compatible PSoC 6 I O header J2 J3 and J4 19 PSoC 6 program and debug header...

Страница 10: ...r capability An audio jack with a provision of connecting both AHJ and OMTP headphones The headset standard can be set by an onboard switch An ambient light sensor IC made of an NPN phototransistor An...

Страница 11: ...ure 1 4 PSoC Creator Features PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains and production programmers for PSoC devices Use PSoC Creator for all PS...

Страница 12: ...ick Start Guide This guide gives you the basics for developing PSoC Creator projects Simple Component Code Examples Choose File Code Example These examples demon strate how to configure and use PSoC C...

Страница 13: ...tory contains application snippets that demonstrate how to use various WICED libraries and API functions The test directory contains applications that are used for simple test and utility The waf dire...

Страница 14: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 14 Introduction Figure 1 7 Filter for WiFi Code Example in WICED Studio...

Страница 15: ...apter on page 38 describes the CY8CKIT 062 WiFi BT base board and CY8CKIT 028 TFT shield hardware features and functionalities The Appendix on page 58 provides a detailed hardware description methods...

Страница 16: ...s New Roman Displays an equation 2 2 4 Text in gray boxes Describes cautions or unique functionality of the product Table 1 2 Acronyms Used in this Document Acronym Definition ADC analog to digital co...

Страница 17: ...le System on Chip PWM pulse width modulation RGB red green blue SAR successive approximation register SMIF serial memory interfac SPI serial peripheral interface SRAM serial random access memory SWD s...

Страница 18: ...oneer Kit software 1 Download and run the CY8CKIT 062 WiFi BT PSoC 6 WiFi BT Pioneer Kit software from www cypress com CY8CKIT 062 WiFi BT The kit software is available in two different formats for do...

Страница 19: ...required software if it is not present on your computer Following are the required software a PSoC Creator 4 2 This software is available for download separately at www cypress com psoccreator PSoC Cr...

Страница 20: ...heck box Continue Without Contact Information Click Finish to complete the CY8CKIT 062 WiFi BT PSoC 6 WiFi BT Pioneer Kit software instal lation 8 After the installation is complete the kit contents a...

Страница 21: ...n the PSoC 6 WiFi BT Pioneer Kit PSoC Creator has an integrated debugger You can start the debugger by selecting Debug Debug or by pressing F5 For more details see the Debugging Using PSoC Creator sec...

Страница 22: ...the build process is successful a hex file is generated 5 Connect PSoC 6 WiFi BT Pioneer Kit to the PC using the USB cable as shown in Figure 2 3 on page 21 to program the kit with the code example 6...

Страница 23: ...shows the code example developed in PSoC Creator which can be used with this kit Table 2 1 Code Example in PSoC Creator Project Description CE222221_TFT_VoiceRecorder This code example shows how PSoC...

Страница 24: ...owever they are not required to run the software that is already installed Before you install the kit software close any other Cypress software that is currently running 3 3 Install WICED The CY8CKIT...

Страница 25: ...tions go under the apps directory The make target path will contain the directory hierarchy starting from apps with directory names separated by a period The project name is followed by a hyphen and t...

Страница 26: ...s then use test console instead of snip scan c CY8CKIT_062 Board platform name d download_apps Download application resources into QSPI Flash e download Indicates download to target f run Resets the t...

Страница 27: ...med into the CY8CKIT 062 WiFi BT as shown in Figure 3 3 Figure 3 3 Successful Build and Program 7 To view output messages with a terminal emulation program such as Tera Term follow these steps a Start...

Страница 28: ...act Port number will vary with the corresponding PC port d Press the Reset button on the CY8CKIT 062 WiFi BT to view the application start up mes sages 8 The output of the Terminal Emulation program s...

Страница 29: ...get hit Note that breakpoints must be placed after starting a debug session in WICED Studio 6 1 or later If there are any breakpoints that were created prior to the start of debug session their proper...

Страница 30: ...the main menu click Run Resume Execution will stop at the breakpoint that you added To continue after hitting the breakpoint click Resume again 5 To disable the breakpoint press the Ctrl Shift B keys...

Страница 31: ...he current thread associate the properties from the Breakpoints window with the current thread Note If you do not see any breakpoints in the Breakpoints window click the Show Breakpoints Supported by...

Страница 32: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 32 WICED Figure 3 7 Show Breakpoints Icon Figure 3 8 Enabling Breakpoint for Current Execution...

Страница 33: ...Figure 3 9 However it may be in a different location depending on the path you choose when installing WICED Studio Figure 3 9 WICED SDK Directory 3 Also locate the CY8CKIT 062 WiFi BT Kit Code Example...

Страница 34: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 34 WICED Figure 3 10 Setup Package in WICED Studio 6 1 or later Figure 3 11 Refresh Top Folder...

Страница 35: ...062 download_apps download run see Figure 3 13 Note Before executing the next step ensure that you connect the CY8CKIT 062 WiFi BT kit to the same PC through the Type C USB cable connected to the J10...

Страница 36: ...mming the Target To know more about this code example refer to CE222494_WiFi_BT_WICED_WiFi_Demo This kit is shipped with this code example preprogrammed to it While power is on and when you peel the s...

Страница 37: ...ED 6 1 code example documents for additional details Table 3 1 Code Example in WICED Project Description CE222494_WiFi_BT_WICED_WiFi_Demo This code example demonstrates how to use PSoC 6 MCU and WICED...

Страница 38: ...ion DMA MMIO USB FS Host Device FS LS PHY FLASH 1024 32 KB FLASH Controller SWJ ETM ITM CTI FPU NVIC MPU BB Cortex M4 150 MHz 1 1V 50 MHz 0 9V 8KB Cache SRAM 9x 32 KB SRAM Controller Energy Profiler x...

Страница 39: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 39 Kit Hardware Figure 4 2 shows the block diagram of the Pioneer board Figure 4 2 Pioneer Board Block Diagram...

Страница 40: ...TFT Display Shield Figure 4 4 shows the markup of the Pioneer board Figure 4 4 PSoC 6 WiFi BT Pioneer Board Top View The PSoC 6 WiFi BT Pioneer board has the following peripherals 1 USB PD out indicat...

Страница 41: ...ser Guide 7 KitProg2 programming custom application header J7 This header brings out more GPIOs of the PSoC 5LP which can be used for custom applications It also contains a five pin SWD programming he...

Страница 42: ...D supply voltage between constant 1 8 V constant 3 3 V and variable 1 8 to 3 3 V In the vari able 1 8 to 3 3 V mode the PSoC Programmer software can control the voltage via KitProg2 23 Cypress 512 Mbi...

Страница 43: ...6 Battery connector J15 on the bottom side of the board This connector can be used to connect a lithium ion polymer battery Note that a battery is not included in the kit package and should be purchas...

Страница 44: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 44 Kit Hardware Figure 4 5 Pioneer Board Pinout...

Страница 45: ...7 WL_JTAG_TMS Remove R122 or R110 and mount R115 to discon nect from PSoC 6 and connect the WiFi BT module to the JTAG connector P2 1 SDIO DATA1 J25 3 WL_JTAG_TDI Remove R32 or R111 and mount R116 to...

Страница 46: ...Arduino J4 6 D5 P5 6 Arduino J4 7 D6 P5 7 Header J21 3 P6 0 Arduino J3 10 SCL KitProg2 I2C SCL Remove R141 to disconnect from KitProg2 I2C SCL P6 1 Arduino J3 9 SDA KitProg2 I2C SDA Remove R150 to dis...

Страница 47: ...duino header J20 4 Remove R53 to disconnect CapSense pad and pop ulate R153 to connect to header P8 4 CapSense Silder1 Rx GPIO on non Arduino header J20 5 Remove R52 to disconnect CapSense pad and pop...

Страница 48: ...y and secondary functions by default Remove R175 to disconnect from J18 and load R39 10K as FRAM pull up P11 1 RGB Blue LED P11 2 QSPI FLASH CS GPIO on non Arduino header J18 7 Populate R177 to connec...

Страница 49: ...D_SPI_SELECT P12 6 ECO IN GPIO on non Arduino header J19 8 P12 7 ECO OUT GPIO on non Arduino header J19 6 P13 0 GPIO on Arduino Header J3 1 D8 P13 1 GPIO on Arduino Header J3 2 D9 P13 2 USB HOST EN GP...

Страница 50: ...to detect intensity of ambient light 4 PDM microphone U2 This microphone converts voice inputs to pulse density modulated PDM digital signals 5 Arduino compatible I O header J2 J3 and J4 These header...

Страница 51: ...TFT DISP DB9 P9 1 J2 5 A2 ADC2 IMU INT1 P10 2 J2 6 TFT DISP DB10 P9 2 J2 7 A3 ADC3 IMU INT2 P10 3 J2 8 NC P9 3 J2 9 A4 ADC4 SDA I2C PDM CLK P10 4 J2 10 TFT DISP DB11 P9 4 a J2 11 A5 ADC5 PDM DATA P10...

Страница 52: ...the CY8CKIT 028 TFT Display Shield is mounted on the PSoC 6 WiFi BT Pioneer Board 1 Ensure that SW5 is either set to 3 3 V or set to the 1 8 V 3 3 V VARIABLE with PSoC Programmer or PSoC Creator selec...

Страница 53: ...n in the KitProg2 User Guide The KitProg2 firmware normally does not require any update If necessary you can use the PSoC Programmer software to update the KitProg2 firmware For more details see the U...

Страница 54: ...The KitProg2 based programming interface allows you to program PSoC 6 MCU with the desired hex files 4 3 4 USB UART Bridge The KitProg2 on the PSoC 6 WiFi BT Pioneer Kit can act as a USB UART bridge...

Страница 55: ...on the KitProg2 USB I2C func tionality see the KitProg2 User Guide Figure 4 11 I2C Connection between KitProg2 and PSoC 6 4 3 6 USB SPI Bridge The KitProg2 can function as a USB SPI bridge The SPI lin...

Страница 56: ...pe C power delivery system a power delivery capable USB Type C to Type C cable should be connected to J10 This cable is not included in the kit and should be pur chased separately Figure 4 13 Type C B...

Страница 57: ...this current If a connected Type C device requests power the provider path is enabled by turning on load switch U31 Table 4 4 details the power delivery scenarios for onboard CCG3 For more informatio...

Страница 58: ...power operations up to 1 MB Flash and 28 8KB SRAM CapSense touch sensing and custom analog and digital peripheral functions The programmable analog and digital peripheral functions allow higher flexib...

Страница 59: ...rface for the USB UART USB I2C and USB SPI bridges as shown in Figure A 1 The USB Serial pins of the PSoC 5LP are hard wired to the I2C UART SPI pins of the PSoC 6 MCU These pins are also avail able o...

Страница 60: ...PD CCG3 provides a complete solution ideal for power adapters power banks Type C dongles monitors docks and notebooks See EZ PD CCG3 Type C Power Delivery on page 56 for more details of the power deli...

Страница 61: ...that generates either a variable 1 8 V to 3 3 V or a fixed 1 8 V or a fixed 3 3 V from the output of U30 Figure A 4 shows the schematics of the voltage regulator and power selection circuits In additi...

Страница 62: ...Powered by Battery Charging Non Type C power adapter legacy USB 5 V 5 N A Yes N A Type C Main Regulator 100 mA 5 N A N A N A VIN Main Regulator No Type C PD power adapter PD power adapter N A Yes N A...

Страница 63: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 63 Figure A 4 Schematics of Power Supply System...

Страница 64: ...ns see PSoC 6 WiFi BT Pioneer Board Reworks on page 69 A 2 6 3 PSoC 5LP GPIO Header J6 J6 is a 8x2 header provided on the board to bring out several pins of the PSoC 5LP to support advanced features s...

Страница 65: ...by default For details on using CapSense including design guidelines see the Getting Started with CapSense Design Guide Figure A 5 Schematics of CapSense Circuit A 2 8 LEDs LED1 LED2 and LED3 red amb...

Страница 66: ...s shown in the figure below The remaining two buttons SW3 and SW4 are connected to the PSoC 5LP device for program ming mode and custom application selection respectively see the KitProg2 User Guide f...

Страница 67: ...eer board features an onboard WiFi and Bluetooth combination module to demonstrate the wireless communication features This LBEE5KL1DX is a Type 1DX module available with 2 4 GHz WLAN and Bluetooth fu...

Страница 68: ...t or USB device When PSoC 6 is pro grammed as a host controller you can connect an external device such as mouse keyboard and flash memory to the USB Type A receptacle port J27 When the PSoC 6 MCU is...

Страница 69: ...is to ensure that PSoC 6 MCU and other 3 3 V devices do not get damaged due to overvoltage If the external programmer provides a slightly higher voltage say 3 42 V and you still need to use the progr...

Страница 70: ...the J11 header This causes extra load on the external pro grammer and hence the programmer may not be able to power up the PSoC 6 supply domain A 3 2 PSoC 6 MCU User Button SW2 By default this button...

Страница 71: ...sistor R44 connecting the hatched pattern to ground needs to be removed These pins need to be configured as a shield pin in PSoC Creator Connecting the hatched pattern to shield instead of ground will...

Страница 72: ...PSoC 6 WiFi BT Pioneer Kit Guide Doc 002 22677 Rev B 72...

Страница 73: ...ies can be used A 3 7 Multiplexed GPIOs Some PSoC 6 MCU pins are multiplexed with onboard peripherals and are not connected to connec tors or other secondary components by default See Table 4 2 on pag...

Страница 74: ...ration Used For Clk_Slow No Divider Clocking M0 Core and DMA DW Clk_Slow needs to be the same as Clk_Peri for SDIO to function properly Peripherial Clocks Divider Type Divider Used For 8 Bit 0 SDIO Do...

Страница 75: ...ration SysTick SysTick is configured to run off CM4 Clock 100 MHz and is configured to run at 1 msec Trigger Muxes The following Trigger Muxes are used for SDIO and should not be modified TRIG10_IN_CP...

Страница 76: ...I for UART SPI I2C PWM CapSense ADC and so on assume that this clock is 100 MHz So any changes will cause unexpected behavior when using WICED drivers Clk_Fast Divider 1 Clock for CM4 Reducing the CM4...

Страница 77: ...O UART If not using WICED STDIO UART feel free to change otherwise do not change GPIO Port Pin Used For Notes 5 0 WICED STDIO UART If not using WICED STDIO UART feel free to change otherwise do not ch...

Страница 78: ...EG_HSIOM_AMUX_SPLIT_CTL2 0x00000030u CY_SET_REG32 CYREG_HSIOM_AMUX_SPLIT_CTL4 0x00000033u CY_SET_REG32 CYREG_PASS_AREF_AREF_CTRL 0x80000000u Table A 2 WICED Names and their Configuration and Mapping i...

Страница 79: ...r For peripherals such as the STDIO UART and AUDIO it is recommended to use the WICED API WICED_SPI_7 Consumes SCB 6 Consumes 16 bit divider 6 MOSI P12 0 MISO P12 1 SCLK P12 2 SS P12 3 WICED_I2C_4 Con...

Страница 80: ...stricted to 3 3 V Can it drive external 5 V interfaces 9 I powered my Arduino board by mistake while powering the PSoC 6 MCU Is my PSoC 6 device alive 10 What type of battery can I use for this kit 11...

Страница 81: ...her voltage takes precedence See Table A 1 for more details on voltage input and output scenarios 3 How can I access Smart I O and other GPIOs connected to onboard peripherals The Smart I O Port 8 and...

Страница 82: ...fry the system The kit has relevant protection circuits to protect the system from permanent damage Prolonged connection may lead to damage 12 Can I charge any kind of Type C device using this kit The...

Страница 83: ...such as Diligent Maxim Integrated Analog Devices and a variety of hobby sites This kit supports only 1x6 pin Pmods 18 What type of shield from Cypress is compatible with this baseboard Any Arduino Un...

Страница 84: ...s feature SW2 should be externally pulled down to ground to use PMIC control Moreover when the switch is pressed the active HIGH logic should push P0 4 to the VBACKUP supply However the kit is configu...

Страница 85: ...PSoC 6 WiFi BT Pioneer Kit Guide Document Number 002 22677 Revision ECN Number Issue Date Origin of Change Description of Change 6077389 02 21 2018 TAVA TDU New kit guide A 6114582 03 30 2018 TAVA Up...

Страница 86: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Cypress Semiconductor CY8CKIT 062 WIFI BT...

Отзывы: