Cypress F2MC Series Setup Manual

Specifications

Brand: Cypress
Category: Controller
Model: F2MC Series
File Type: PDF
File Size: —
Pages: 30

Read Online

Read the Cypress F2MC Series Setup Manual online using the built-in PDF viewer.

Text of the manual

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.

198 Champion Court

San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): +1.408.943.2600 www.cypress.com F2MC Series F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide Doc. # 002-07367 Rev. *A

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

2 Copyrights © Cypress Semiconductor Corporation, 2005-2016. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ("Cypress"). This document, including any software or firmware included or refer- enced in this document ("Software"), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as spe- cifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organi- zation, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resell- ers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress's patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PUR- POSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without fur- ther notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weap- ons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ("Unintended Uses"). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. 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. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

3 Preface Thank you for purchasing the F2MC Series F2MC-8FX Starter Kit (ver. 3V) (Model: MB2146-401-01, referred to as "Starter Kit" in this manual). This product is a starter kit for F2MC-8FX MB95FV100-101 (ver. 3V), which comes with MB2146-09 (F2MC Series BGM Adapter, referred to as "BGM Adapter"), MB2146-301 (F2MC-8FX Family MCU Board for MB95FV100-101, referred to as "MCU Board"), MB2146-401 (F2MC-8FX Family Evalua- tion Board, referred to as "Evaluation Board"), and F2MC-8L/8FX Family SOFTUNE Professional Pack. This manual explains how to use the Starter Kit. Be sure to read this manual before using the prod- uct. For mass production/evaluation MCUs for this product, consult our Sales or Support representatives. ■ Handling and use Handling and use of this product and notes regarding its safe use are described in the manuals for products bundled with the Starter Kit. Follow the instructions in the manuals to use this product. Keep this manual at hand so that you can refer to it anytime during use of this product. ■ Caution of the products described in this document The following precautions apply to the product described in this manual. WARNING Indicates a potentially hazardous situation which, if not avoided appropri- ately, could result in death or serious injury and/or a fault in the user’s system. Electric shock, Damage Before performing any operation described in this manual, turn off all the power supplies to the system. Performing such an operation with the power on may cause an electric shock or device fault. Electric shock, Damage Once the product has been turned on, do not touch any metal part of it. Doing so may cause an electric shock or device fault.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

4 CAUTION Indicates a potentially hazardous situation which, if not avoided appropri- ately, may result in minor or moderate injury and/or damage to the product or the equipment to which the product is connected, to software resources such as data, or to other properties. Cuts, Damage Before moving the product, be sure to turn off all the power supplies and unplug the cables. Watch your steps when carrying the product. Do not use the product at an unstable location such as a place exposed to strong vibration or a sloping surface. Doing so may let the product fall, resulting in an injury or fault. Cuts The product has some sharp-pointed or edged parts inevitably exposed, such as jumper plugs. Use meticulous care in handling the product not to get injured with such pointed parts. Damage Neither put anything on or apply shock to the product. Once the product has been powered, do not carry it. Doing either may cause a fault due to a load or shock. Damage Since the product contains many electronic components, keep it away from direct sunlight, high temperature, and high humidity to prevent con- densation. Do not use or store the product where it is exposed to much dust or a strong magnetic or electric field for an extended period of time. An adverse operating or storage environment can cause a fault. Damage Use the product within the ranges of its general specifications. Please see the item of “Specification” that has been described to the man- ual of each product for the range of the specification. Operating it outside the range of any general specification may cause a fault. Damage To prevent electrostatic breakdown, do not let your finger or an object touch any metal part of the connector. Before handling the product, touch a metal object (such as a door knob) to discharge static electricity from your body. Damage When turning the power on or off, follow the relevant procedure described in this document. Before turning the power on, in particular, be sure to fin- ish making all the required connections. To set up and use the product, fol- low the instructions given in this document. Using the product incorrectly or inappropriately may cause a fault. Damage Before plugging or unplugging any cable for this product, be sure to turn the power supply off. When unplugging the cable, remove it while holding the connector without pulling the cable itself. Pulling the cable itself or bending it may expose or disconnect the cable core, resulting in a fault.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

5 Damage Although the MCU socket is structured not to accept an evaluation MCU in a wrong orientation or position, pay due attention to the mounting orien- tation when mounting the evaluation MCU. Forcing the evaluation MCU to be inserted in a wrong orientation can damage the pins of the evaluation MCU and the accidental insertion prevention mechanism of the socket, re- sulting in a fault. Damage When stored, the product should be kept in its packaging box as it has no housing. Re-transporting the product may damage it to cause a fault. Keep the packaging materials used for shipment of the product and use them when re-transporting it.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

1 Contents 1. Hardware Setup 2 1.1 Configuration of each product......................................................................................2 1.2 Connection of each product.........................................................................................4 2. Software Setup 8 2.1 Installation of software.................................................................................................8 2.2 Operation of SOFTUNE........................................................................................................................................ 12 3. Additional Informations 23 Revision History 24

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

2 1. Hardware Setup In the hardware setup procedure, you configure and connect the hardware products. This chapter includes the configuring and connecting procedure for each product in order. Check the contents and complete the hardware setup. ■ Configuration of each product ❐ Configuring MCU Board ❐ Configuring Evaluation Board ■ Connection of each product ❐ Connecting MCU Board and Evaluation Board ❐ Connecting BGM Adapter ❐ Connecting oscillators ❐ Connecting AC Adapter 1.1 Configuration of each product This section describes how to configure the MCU Board and the Evaluation Board. ■ Configup-ring MCU Board Set the following switches on the MCU Board, referring to "Figure 1-1. MCU Board Configuration". Figure 1-1. MCU Board Configuration BGM ADAPTER SUB CLOCK C B A 1 2 CLK CLK S.V. APB8 C X0 X1 X0A X1A 7 6 5 4 3 2 1 0 F E D C B A 9 8 PRODUCT SELECT LVD4 LVD3 LVD2 LVD1 LVD0 GNDVCC 3V 5V LVD2 OFF LVD1 MAIN CLOCK 1 2 3 4 1 2 3 4 ON ON 3 2 1 4 6 7 5

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

3 Hardware Setup ➀LVD2 detection voltage selection jumper plug Set the value to "LVD0". ➁Voltage selector switch Set the value to "3V". ➂Product selector switch Rotate the center tab to position the pointer for the corresponding number: For 100-pin package, set the value to "0". For 80-pin package, set the value to "1". For 64-pin package, set the value to "2". For 48-pin package, set the value to "3". For none of the above, check on the settings in the MCU Board manual. ➃LVD selector switch Set the value to "OFF". ➄Miscellaneous switches Set "CLK" to "OFF" if you use subclock, or "ON" if you don’t. Set the other switches to "OFF" (to the side of numeral letters). ➅Clock input selector switch Set all to "OFF" (to the side of numeral letters)". ➆Subclock selector jumper plug Set all the values to the side of "B-C". ■ Configuring Evaluation Board Set the following switches on the Evaluation Board, referring to "Figure 1-2. Evaluation Board Con- figuration". Figure 1-2. Evaluation Board Configuration ➀5V/3.3V Power supply selector jumper plug Set the value to the side of "+3.3V". ➁Analog power supply jumper plug Insert jumper plug for all the switches. ➂MOD selector jumper plug Insert jumper plug. SW1 JP6 JP5 JP3 JP4 1 2 119 120 1 2 119 120 CN3 JP1 JP2 CN4 PJ1 SW2 JP7 CN2 CN1 JP8 +3.3V +5V 2 1 3

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

4 Hardware Setup 1.2 Connection of each product This section describes how to connect the MCU Board, the Evaluation Board, and the BGM Adapter. This section also describes how to mount the crystal oscillator on the MCU Board, and how to plug the AC adapter into the Evaluation Board. ■ Connecting MCU Board and Evaluation Board Connect the MCU Board and the Evaluation Board, referring to "Figure 1-3. Connection of MCU Board and Evaluation Board". Each board has an index to avoid the reverse mounting. Look at the index position to connect the boards. Figure 1-3. Connection of MCU Board and Evaluation Board SW1 JP6 JP5 1 2 119 120 1 2 119 120 CN3 JP1 JP2 CN4 PJ1 SW2 JP7 CN2 CN1 JP3 JP4 +3.3V +5V Evaluation Board Index (Backside mounting) MCU Board Index (Backside mounting)

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

5 Hardware Setup ■ Connecting BGM Adapter Connect the BGM Adapter and the MCU Board, referring to "Figure 1-4. Connection of BGM Adapter". The BGM Adapter and the MCU Board have an index mark (for pin 1) on its connectors. Align the index mark on both sides. Plug a USB cable into the BGM Adapter (the cable is bundled with the BGM Adapter). Make sure that POWER-SW on the Evaluation Board is set to OFF (to the side of " ") before plugging the cable. Figure 1-4. Connection of BGM Adapter ■ Connecting oscillators Plug crystal/ceramic oscillators into the crystal oscillator mounting sockets (one for the main clock and the other for the subclock) on the MCU Board (See "Figure 1-5. Connection of oscillators") . You can see one crystal oscillator mounting socket for main clock and the other for subclock on the MCU Board. Mount a crystal or ceramic oscillator and a capacitor on the MCU Board. SW1 JP6 JP5 CN3 JP1 JP2 CN4 PJ1 SW2 JP7 MB2146-09 JP3 JP4 +3.3V +5V Plug into BGM Adapter USB cable (Bundled with BGM Adapter) BGM Adapter MCU Board Evaluation Board Power-SW Index mark

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

6 Hardware Setup Figure 1-5. Connection of oscillators ➀Crystal oscillator mounting socket for main clock Mount a crystal oscillator used as "main clock". ➁Crystal oscillator mounting socket for subclock Mount a crystal oscillator used as "subclock". If you disable the subclock, set the "CLK" switch to "ON". BGM ADAPTER SUB CLOCK C B A 1 2 CLK CLK S.V. APB8 C X0 X1 X0A X1A 7 6 5 4 3 2 1 0 F E D C B A 9 8 PRODUCT SELECT LVD4 LVD3 LVD2 LVD1 LVD0 GNDVCC 3V 5V LVD2 OFF LVD1 MAIN CLOCK 1 2 3 4 1 2 3 4 ON ON 2 1 GND Capacitor mounting socket Capacitor mounting socket Crystal oscillator mounting socket Ceramic oscillator Crystal oscillator

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

7 Hardware Setup ■ Connecting AC Adapter Connect the AC Adapter and the Evaluation Board, referring to "Figure 1-6. Connection of AC Adapter". The AC Adapter (bundled with the Evaluation Board) is plugged into the PJ1 on Evaluation Board and the AC 100V Power Supply. Figure 1-6. Connection of AC Adapter SW1 JP6 JP5 CN3 JP1 JP2 CN4 PJ1 SW2 JP7 MB2146-09 JP3 JP4 +3.3V +5V BGM Adapter Plug into Evaluation Board AC Adapter Evaluation Board

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

8 2. Software Setup In the software setup procedure, you install and operate the software applications. This chapter includes the installing and operating procedure for each software in order. Check the contents and complete the software setup. ■ Installation of software ❐ Installing SOFTUNE ❐ Installing USB driver ❐ Installing sample program ■ Operation of SOFTUNE ❐ Starting SOFTUNE Workbench ❐ Starting Debugging ❐ Initializing MCU ❐ Running the program ❐ Aborting the program ❐ Ending Debugging ❐ Exiting SOFTUNE Workbench 2.1 Installation of software This section describes how to install SOFTUNE and the USB driver in your host machine, as well as how to install the sample program. ■ Installing SOFTUNE Follow the instruction described in "F2MC-8L/8FX Family 8-bit Microcontroller SOFTUNE Workbench Installation Guide" to install SOFTUNE in your host machine. ■ Installing USB driver Plug a USB cable connected to BGM Adapter into your host machine. After you connect the host machine and the BGM Adapter, the [Found New Hardware Wizard] window appears. Follow the instruction below to install the USB driver.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

9 Software Setup In a few seconds after the above dialog is displayed, the [Welcome to the Found New Hardware Wizard] screen appears. Click [Next] to install the device driver. The [Install New Hardware Device Drivers] screen appears. Click [Search for a suitable driver for my device (recommended)], and then click [Next] to search for a suitable driver for your device. The [Locate Driver Files] screen appears. Check [Specify a location], and then click [Next] to specify the location for the driver.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

10 Software Setup A file location dialog appears. Select "SiUSBdB.INF" in the "\Drivers" folder (under a directory where SOFTUNE is installed), and click [Open] to specify the driver. In the [Copy manufacturer’s files from] box, make sure that the "\Drivers" folder (under a directory where SOFTUNE is installed) is selected, and click [OK].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

11 Software Setup The [Driver Files Search Results] screen appears. Click [Next] to start installing the driver. The [Completing the Found New Hardware Wizard] screen appears. Now that the USB driver installation has completed, click [Finish] to exit the Wizard. ■ Installing sample program Copy only a folder named "\fsg" under "\MANUAL\FirstStepGuide" in SOFTUNE CD into the "\sample" folder under a directory where SOFTUNE is installed. All the data in the "\fsg" folder is set to "read-only". Open the folder’s properties, and deselect the [Read Only] checkbox, and click [OK].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

12 Software Setup In the [Confirm Attribute Change] dialog, check [Apply Changes to this folder, sub-folders, and files], and click [OK] to confirm the attribute change. Note: This software application uses the reload timer, so it cannot be used in 48-pin package or less, which does not implement the reload timer. When using this software, set 64-pin package or more in the product selector switch on MCU Board. 2.2 Operation of SOFTUNE This section describes how to start SOFTUNE Workbench and operate it using the sample program. ■ Starting SOFTUNE Workbench Start SOFTUNE and configure the SOFTUNE development environment. From the [File] menu, click [Open Workspace].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

13 Software Setup In a file location dialog, select the "\sample\fsg\8fx_sample" folder under a directory where SOFTUNE is installed, and specify "fsg_sample.wsp", then click [Open].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

14 Software Setup Select and right-click "emu_dbg.sup" under the "Debug" folder, then click [Change Settings] to start the setup wizard. The setup wizard is started. Click [Next]. In [Debug Type], specify [Emulator Debugger], and click [Next].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

15 Software Setup In [ICE Type], specify [MB2146-09], and click [Next]. In [Device Name], specify [USB], and click [Next]. In [Output Frequency], set the frequency of oscillator connected to MCU Board, and click [Next].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

16 Software Setup The [Batch file] setting is not required. Click [Next]. Check [Auto-load when starting debug], and specify "fsg_sample.prc" in [After] under [Specification batch file before/after load], then click [Next].

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

17 Software Setup Check [Select All], and click [Next]. Click [Finish] to complete the setup of SOFTUNE development environment. ■ Starting Debugging Before starting debugging, turn the Evaluation Board on. Push POWER-SW on the Board to ON (to the side of " | ") to turn it on (See "Connecting BGM Adapter" for information about POWER-SW) . After the Evaluation Board is turned on, click [Start debug] from the [Debug] menu to start debug- ging. When you start debugging, the sample program is automatically loaded.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

18 Software Setup

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

19 Software Setup ■Initializing MCU Initialize MCU. To do so, click the Reset button on the task bar. ■ Running the program You can run the program by clicking the "execution-related buttons" on the task bar. You can also set a breakpoint by clicking the " " mark in the Source window. Reset button

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

20 Software Setup Source window [Execution-related buttons] [Go] [Step In] [Step Over] [Step Out] [Run Until Cursor] Breakpoint

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

21 Software Setup ■Aborting the program After you have run the program, you can stop it by clicking the Abort button on the task bar. ■ Ending Debugging To end debugging, click [End debug] from the [Debug] menu. After you have finished debugging, turn the Evaluation Board off for safety. Push POWER-SW on the Board to OFF (to the side of " ") to turn it off. (See "Connecting BGM Adapter" for information about POWER-SW.) Abort button

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

22 Software Setup ■ Exiting SOFTUNE Workbench To exit SOFTUNE Workbench, click [Exit] from the [File] menu.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

23 3. Additional Informations For more informations on F2MC-8FX Starter Kit, BGM Adaptor and the MCU Board please visit our websites: http://www.cypress.com/documentation/development-kitsboards/mb2146-401 http://www.cypress.com/documentation/development-kitsboards/mb2146-09a-e http://www.cypress.com/documentation/development-kitsboards/mb2146-301a-e Please contact your local support team for any technical question.

F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide, Doc. # 002-07367 Rev. *A

24 Revision History Document Revision History Document Title: F2MC Series F2MC-8FX Starter Kit (ver. 3V) MB2146-401-01 Setup Guide Document Number: 002-07367 Revision ECN# Issue Date Origin of Change Description of Change **  03/10/2005 HUAL Initial release *A 5283210 05/30/2016 HUAL Migrated to Cypress format

Other Controller Manuals