Advertisement

Quick Links

The following document contains information on Cypress products. The document has the series
name, product name, and ordering part numbering with the prefix "MB". However, Cypress will
offer these products to new and existing customers with the series name, product name, and
ordering part number with the prefix "CY".
How to Check the Ordering Part Number
1.
Go to www.cypress.com/pcn.
2.
Enter the keyword (for example, ordering part number) in the SEARCH PCNS field and click
Apply.
3.
Click the corresponding title from the search results.
4.
Download the Affected Parts List file, which has details of all changes
For More Information
Please contact your local sales office for additional information about Cypress products and
solutions.
About Cypress
Cypress is the leader in advanced embedded system solutions for the world's most innovative
automotive, industrial, smart home appliances, consumer electronics and medical products.
Cypress' microcontrollers, analog ICs, wireless and USB-based connectivity solutions and reliable,
high-performance memories help engineers design differentiated products and get them to market
first. Cypress is committed to providing customers with the best support and development
resources on the planet enabling them to disrupt markets by creating new product categories in
record time. To learn more, go to www.cypress.com.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MB9B160R Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress MB9B160R Series

  • Page 1 The following document contains information on Cypress products. The document has the series name, product name, and ordering part numbering with the prefix “MB”. However, Cypress will offer these products to new and existing customers with the series name, product name, and ordering part number with the prefix “CY”.
  • Page 2: Table Of Contents

    Please consult TAIYO YUDEN CO.,LTD for details about the wireless LAN module. The URLs given in this document are valid at the time of this writing. Those URLs are subject to change without notice. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 3: Wireless Lan Demo System

    Web browser to a Web server running on the FM4 evaluation board with wireless LAN module, and to display contents, download files, and control the FM4 evaluation board. Figure 1. Wireless LAN Demo System Configuration www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 4: What Is A Wireless Lan

    IEEE 802.11i (WPA2-PSK) Wireless LAN uses the 2.4 GHz band, but the number of available channels varies by country. This wireless LAN demo system is regulated to use ch11 for use in the United States. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 5 Although the name of this mode may differ depending on the company, it shall be called Micro AP mode in this document. With this method, it is not necessary to install an access point. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 6 On the setting screen of the wireless LAN equipment, it is often displayed as "CCMP", "AES-CCM", or simply "AES". The method of generating the passphrase and PMK in AES-CCMP is the same as TKIP. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 7 (However, using WEP is not recommended). Therefore, Shared-key authentication is not supported by this wireless LAN demo system. [WPA-PSK] Figure 7. WPA-PSK www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 8 PSK has been officially defined, WPA2-PSK is the same as WPA-PSK, basically. However, there is no compatibility between them due to changes to the defined values. WPA2-PSK requires support for AES-CCMP, but not TKIP. If there are no restrictions on companion equipment, it is recommended to use WPA2-PSK plus AES-CCMP. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 9: Overview Of Demo System

    As an overview of the demo system, this section describes the demo system configuration, setting procedure, and introductory operations. The description in this section assumes that a demo program has been written on the FM4 evaluation board. Demo system configuration Figure 9. Demo system configuration www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 10 Table 1. List of demo system equipment Name Maker Qty. Description FM4 evaluation board with mounted FM4 MCU and SD card FM4 evaluation board CYPRESS slot. (SK-FM4-U120-9B560) Wireless LAN module evaluation board with SDIO interface. Wireless LAN module TAIYO evaluation board YUDEN (WBSAAVDX7) Wireless LAN access point with DHCP server functions.
  • Page 11 Access from Web browser device − Make sure that the FM4 evaluation board is accessible before accessing it from the Web browser device. − Please refer to Table 2 for the URLs that are accessible. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 12 The following three demos are provided. Demo 1: Changing the LED Status Demo 2: Scaling an Image Demo 3: Downloading a PDF Each demo is shown below. [Demo screen configuration] Figure 10. Main Screen www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 13 If SW1 is pressed by mistake, restart the system according the procedure for starting the demo. Operation using the LED operation page − The LEDs on the board can be operated from the "LED Operation" page in the URL list. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 14 In Demo 2, a brochure for the demo is scaled up/down through analog input on the board. By using the "blue dial" on the evaluation board, the image on the browser is scaled up/down according to the state of the analog input value. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 15 Directly enter the URL in the Web browser Directly enter the URL of the PDF in the List of URLs into the address entry field. Click the link on the main screen of the demo www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 16: Hardware Overview

    FM4 WLAN Solution with Wireless LAN Module Demo Operation Manual Figure 17. PDF file download Hardware Overview Hardware Configuration The following shows the hardware configuration. Configuration of FM4 evaluation board and wireless LAN module [Connection between FM4 Evaluation Board and Wireless LAN Module] www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 17 FM4 WLAN Solution with Wireless LAN Module Demo Operation Manual Figure 18. Connection between FM4 evaluation board and wireless LAN module FM4(MB9B560) SDIO Interface Wireless LAN Module [FM4 Evaluation Board] Figure 19. FM4 evaluation board [Wireless LAN Module] Figure 20. Wireless LAN module www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 18 This is used for writing to the internal Flash on the FM4 and debugging programs. Using this requires the IAR Embedded Workbench. − Regulated DC Power Supply Connect a power supply that can output DC 5 V. Figure 22. Hardware block diagram www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 19: Detailed Specifications

    List of equipment used during development Table 6. Detailed Specifications Name Manufacturer Part number Description FM4 evaluation board CYPRESS SK-FM4-U120-9B560 FM4 evaluation board body. A Wireless LAN module evaluation board. Wireless LAN module TAIYO YUDEN WBSAAVDX7 Note: Red and blue power cables are included evaluation board when purchasing this module.
  • Page 20 The power source is 5 V. You can create a dedicated power cable to supply the power. [SD Card Interface] Figure 25. SD card interface The SD card slot uses a push-on/push-off mechanism. When inserting or removing the SD card, push it in once as far as possible. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 21: Software Overview

    The software for this demo system operates on the Real Time OS (RTOS) and runs the demo application using a TCP/IP protocol stack, wireless LAN driver, and peripheral driver for FM4 family as a platform. Block diagram The software components are shown as a hierarchical image. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 22 Since the contract prohibits disclosure of the source code, this is provided in a library format. 4 . 1 . 1 O S R e s o u r c e s Figure 29. Configuration of start-up and tasks www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 23 : FM4-PDL common directory +---base_types.h : Basic common header file +---mb9abxxx.h : Peripheral definition header file +---mcu.h : MCU common header file +---system_mb9abxxx.c : System setting source file +---system_mb9abxxx.h : System setting definition header file www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 24 : lwIP perf-related header file +---sys_arch.h : lwIP architecture-dependent low level implementation header file +---proj : Development environment project directory +---IAR : Project directory for IAR (JTAG) +---config : configuration file directory +---mb9bf568.icf : Linker setting file www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 25 : T-REALOS configuration definition file +---wlancfg.tcf +---wlanlib : Wireless LAN driver library directory +---wlan.h : Wireless LAN driver library header file +---wlan_conf.c : Wireless LAN driver configuration source file +---wlanlib.a : Wireless LAN driver library file www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 26: Detailed Specifications

    URL of the lwIP official project is: http://savannah.nonqnu.org/projects/lwip/ The lwIP consists of two packages. "lwip" includes a TCP/IP stack developed in the official project, and "contrib" includes additional code. <RDL> Please refer to the PDL documentation. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 27 : Callback function when Error occurs (Not used) pfnCardIntCallback : Callback function when Card Interrupt occurs pfnErrorResponseCallback : Callback function when command response error occurs Remarks The settings for other than pfnCardIntCallback and pfnErrorResponseCallback are invalid. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 28 : Relative card address card_type : Sdio card type SDSC_MemOnly SDSC memory-only card SDHCXC_MemOnly SDHC or SDXC memory-only card SD_IOOnly SD IO-only card SDSC_Combo SDSC combo card SDHCXC_Combo SDHC or SDXC combo card Remarks www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 29 • Make sure to add to the descriptor a descriptor for determining when to terminate. For the descriptor that determines termination, set the len to 0 and the addr to 0 (NULL). Descriptor example: www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 30 Call this API if you want to enable CardInterrupt after Sd_HostInit() is called. When pfnCardIntCallback is set with Sd_SetIntCallback, the next CardInterrupt can be received by enabling the CardInterrupt with this API after the interruption process is completed www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 31 (Please refer to the description of the structure for details of SDIO card information) Return value Error codes E_SDIO_OK Normal end E_SDIO_NO_CARD Abnormal end (No SDIO card inserted) E_SDIO_INIT Abnormal end (Failed to initialize the SDIO card) Remarks Call this API after Sd_HostInit() is called. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 32 Abnormal end (Write operation failed) E_SDIO_READ Abnormal end (Read operation failed) Remarks Call this API after Sdiocard_Init() is called. This API transmits/receives CMD53 commands via PIO transfer using the common SD command processing functions Sdcmd_SendCmd/Sdcmd_TxData/Sdcmd_RxData. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 33 : Priority of the wireless LAN driver task : Stack address of the wireless LAN driver task stksz : Stack size of the wireless LAN driver task Remarks In the configuration file, wlan_conf.c, define it as variable: wlan_os_resource_init. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 34 { void (*Recv)(uint32_t epbuf_len); void (*Event)(uint32_t event, void* data); } WLAN_CALLBACK; Description Recv : Receive callback function Event : Event callback function Remarks In the configuration file, wlan_conf.c, define it as variable: wlan_callbackfunc. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 35 - AES-CCMP/TKIP mixed mode of uap_wpa_cipher In this mode, TKIP is used as the group cipher. This means that support for TKIP is required even when connecting using AES-CCMP. Set the mode as follows to match the companion equipment. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 36 WLAN_AUTH_MODE_WPA_PSK WPA/WPA2-PSK channel : Channel rssi : RSSI bss_num : Number of search results The maximum number of search results is 16; results exceeding that number are dropped. bss_info : Array of search results www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 37 API specification Description Overview Disconnects wireless LAN Format int wlan_disconnect (void) Input None Return value Error codes DRIVER_OK Normal end DRIVER_ERR Error stop Remarks When disconnected, notification is provided by the Event callback (WLAN_EVENT_DISCONNECT). www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 38 : Pointer to MAC address storage area Secure a 6-byte area for the storage area. Return value Error codes DRIVER_OK Normal end DRIVER_ERR Error stop Remarks This is called from the low level implementation of the TCP/IP stack. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 39 This is called from the low level implementation of the TCP/IP stack. It returns from the API when data is transmitted to the wireless LAN module. If data cannot be transmitted to the wireless LAN module, the API blocks until it can be transmitted. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 40 This callback function is called on the wireless LAN driver task. Return as soon as possible after notification to the user task. If wlan_recv_pkt() is not called within the callback function, the received data notified by this callback function is discarded. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 41 This callback function is called on the wireless LAN driver task. Return as soon as possible after notification to the user task. Notification sequence of WLAN_EVENT_CONNECT and WLAN_EVENT_DISCONNECT does not always correspond one-to-one. If disconnected by the companion equipment before the connection is established, WLAN_EVENT_DISCONNECT may be notified instead of WLAN_EVENT_CONNECT. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 42: Demo Software

    TCPIP_THREAD_PRIO (*2) Priority of TCP/IP task TCPIP_MBOX_SIZE Number of message buffer stages in TCP/IP task *1: Setting values are not optimized. Please refer to each document for details. *2: Please refer to Table 7 www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 43 Stack size of initial task _KERNEL_SYS_STKSIZE 0x400 System stack size _KERNEL_USE_IMALLOC Use of heap area (required by message buffer) _KERNEL_REALMEMSZ 0x1000 Size of heap area *1: Setting values are not optimized. Please refer to each document for details. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 44 Create the fs directory in the directory that contains makefsdata.exe, store the content such as HTML files in the fs directory, and then run makefsdata.exe. When execution is completed, fsdata.c is generated. By including that file when the demo software is built, you can include content in the demo software. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 45 Register the file name and corresponding function set in step 1 in function Ajax_Init(). If you want to register multiple CGI files, change the arguments provided to http_set_sgi_handlers() according to the number of CGI files. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 46: Other

    Authentication mode: WPA2-PSK (AES-CCMP) Connection method: Infrastructure mode Connection between the test board and the access point is a wireless connection (IEEE 802.11n) Connection between the PC and the access point is a wire connection www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 47: Document History

    Document Number: 002-04461 Revision Orig. of Submission Description of Change Change Date – YUIS 06/27/2014 Initial Release. 5028535 YUIS 11/30/2015 Migrated Spansion Application Note MB9B560R_AN709-00004-1v0-E to Cypress format. 5876359 AESATMP9 09/07/2017 Updated logo and copyright. www.cypress.com Document No. 002-04461 Rev. *B...
  • Page 48 Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products.

Table of Contents