Home

AN706-00039-2v0-E

image

Contents

1. No Is it the time for getting sensor measurement value Get the measurement values from the accelerometer then send it by wireless Figure 13 Operation of slave devices in remote control mode 16 FUJITSU AN706 00039 2v0 E 2 3 3 About MFS This software provides a driver for operating each of the 8 channels of MFS built into the MB9BF506R as each of the 12C SPI and UART functions A block diagram of the MFS related drivers is shown in Figure 14 IC driver SPI driver UART driver SPI driver API C driver CSIO SPI UART driver API driver API MFSC MFS CSIO MFS UART driver J driver driver MFS driver Figure 14 Block diagram of MFS related drivers Each of the I C driver SPI driver and UART driver shown in the software block diagram in Figure 9 are divided into an API block and a driver block For the SPI driver since the MFS is used as CSIO the driver block consists of a CSIO SPI driver and a MFS CSIO driver ee 1 Functions of Each Block of the MFS Related Drivers pe pee oe a UART driver UART driver API API of UART driver MFS UART driver Driver that operates MFS as UART MFS driver MFS management driver Performs interrupt control 17 FUJITSU AN706 00039 2v0 E In this software six of the eight MFS channels are used to control the various sensors hygro thermometer illumination sensor and accelerometer LCD real time clock RS232C
2. ee ee T E ee 8 2 2 1 External Appearance of the Microcontroller Board and Wireless Board 8 2 2 2 Hardware Block DidQra ccccccccccsssseeceseeceecseeeeeeseeeeeeseeseeeeseeeeeessaneeessaaes 10 ies E 0 1 fc gt eee ene eee 11 2 3 1 Software Block Diagram cccccccccceesesseeeeeeeeeeeseeceeeeeeesaaaseeceeeeessaaaseeeeeeees 11 2 3 2 Overall Application Operating FIOW ccccccccccssssseeeeeeeeeeeeeseeeeeeeeeesaaeaeeees 12 2 3 2 1 Operation from Startup to Demo Mode Selected ccccseeeeeeeeeeeeees 12 2 3 2 2 Operation of Host Device in Sensor Logger Mode and Remote Control Mode 13 2 3 2 3 Operation of Slave Devices in Sensor Logger Mode cccccssseeeeees 14 2 3 2 4 Operation of Slave Devices in Remote Control Mode ccccceeeees 16 23o 2 1 0 010 oem eee Se T ere 17 FUJITSU AN706 00039 2v0 E Target products This application note is described about below products TYPE MB9B500B MB9BF504NB MB9BF505NB MB9BF506NB m anaa MB9B400B MB9BF404NB MB9BF405NB MB9BF406NB _ aa MB9B300B MB9BF304NB MB9BF305NB MB9BF306NB PS amermar MB9B100B MB9BF102NB MB9BF104NB MB9BF105NB MB9BF106NB BON amerre arenor ooroo one FUJITSU AN706 00039 2v0 E 1 INTRODUCTION This application note is for people who are considering designing a wireless system using a Fujitsu Semiconductor FM3 family microcontroller It gives specific examples of a system that performs wi
3. B connector Power LED Power switch Accelerometer LED1 LED2 Z eb O 9p G WY ip id ICE connection connector Demo switch 1 Demo switch 2 Demo switch3 gt 40 Cc Cc w Peer ane Pa PTO IE EEE EEG ETN OES RSH E SUL LL A E E E EE EE EEE EE EEEE EE EEE EEEE EEEE EEEE EEEE EEEE D T O pa See E OQ EEEE EEEE EEEE EEEE CeCe Cc rs CECE ECE ECE EEE ERE ECE ECE CO Oc Oc O O pu O a oF g 2 oO 2D E O o mM o O0 M 5 5 2 D O eb C c O O O Ww O N v m Aa S V C B lao G amp Oo o O P MBIBFS06 EVa ee D K11060005 p Rev AO D ba gt e5 trsi O I d O Cc O A oO p 5 Figure 6 Photograph of external appearance of microcontroller board and wireless board front surface FUJITSU AN706 00039 2v0 E Reset switch AAA battery box Real time clock Mode switch Button battery and battery box Figure 7 Photograph of external appearance of microcontroller board and wireless board rear surface FU IT SU AN706 00039 2v0 E 2 2 2 Hardware Block Diagram A hardware block diagram of this system is shown in Figure 8 Wireless board Batteries Wireless USB function transceiver u l 950MH2 ON d NE A 5 1 L J Accelerometer nE Hygro thermometer ae e Voltage monitor 1 1 Voltage monitor Illumination senso
4. PERFORM The following document contains information on Cypress products Although the document is marked with the name Spansion and Fujitsu the company that originally developed the specification Cypress will continue to offer these products to new and existing customers Continuity of Specifications There is no change to this document as a result of offering the device as a Cypress product Any changes that have been made are the result of normal document improvements and are noted in the document history page where supported Future revisions will occur when appropriate and changes will be noted in a document history page Continuity of Ordering Part Numbers Cypress continues to support existing part numbers To order these products please use only the Ordering Part Numbers listed in this document For More Information Please contact your local sales office for additional information about Cypress products and solutions About Cypress Cypress NASDAQ CY delivers high performance high quality solutions at the heart of today s most advanced embedded systems from automotive industrial and networking platforms to highly interactive consumer and mobile devices With a broad differentiated product portfolio that includes NOR flash memories F RAM and SRAM Traveo microcontrollers the industry s only PSoC programmable system on chip solutions analog and PMIC Power Management ICs CapSense capacitive touch sensi
5. and wireless transceiver The functions of each channel are as shown in Table 2 Table 2 MES Allocation and Functions UART 115 2kbps Used for RS232C communication for sending 2 PR EA jenna i ne yates ero a e Used for LCD 400kpbs Used for accelerometer sensor control otused 7 400kbps Used for real time clock control 400kbps Used for hygro thermometer and illumination sensor control Refer to the FM3 32 bit Microcontroller MB9Axxx MB9Bxxx Series Peripheral Manual for details on how to use the MFS End 18
6. ctual property right such as patent right or copyright or any other right of Fujitsu or any third party or does Fujitsu warrant non infringement of any third party s intellectual property right or other right by using such information Fujitsu assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein The products described in this document are designed developed and manufactured as contemplated for general use including without limitation ordinary industrial use general office use personal use and household use but are not designed developed and manufactured as contemplated 1 for use accompanying fatal risks or dangers that unless extremely high safety is secured could have a serious effect to the public and could lead directly to death personal injury severe physical damage or other loss i e nuclear reaction control in nuclear facility aircraft flight control air traffic control mass transport control medical life support system missile launch control in weapon system or 2 for use requiring extremely high reliability i e submersible repeater and artificial satellite Please note that Fujitsu will not be liable against you and or any third party for any claims or damages arising in connection with above mentioned uses of the products Any semiconductor devices have an inherent chance of failure You must pro
7. e 3 gt mode 1 Refer to the wireless system board user s manual for details on the CPU operation modes A check is performed of whether it is the periodic time to acquire the sensor measurement values If it is the periodic time to get the sensor measurement values the measurement values are got from the hygro thermometer and illumination sensor and the got measurement values are sent by wireless The program then waits for the sending to finish Once the sending is complete a check is performed for whether the standby conditions are met The standby condition is that the CPU operation mode is mode 3 For the standby conditions the CPU clock changes to the CR oscillator 4MHz A check is performed for whether the standby time has elapsed The standby time is the value of the sensor measurement value getting period minus the time taken to get the measurement values from the sensors and the time to send by wireless Once the standby time has elapsed the CPU clock is changed to the PLL oscillator 8OMHZ The above flow is shown in Figure 12 14 cO FUJITSU Was demo switch 1 pressed Change CPU operation mode 1 CPU 80MHz Peripheral 40MHz 2 CPU 60MHz Peripheral 30MHz CPU 80MHz Peripheral 40MHz 3 CPU Stopped Peripheral 4MHz CR 4MHz Sleep AN706 00039 2v0 E Is it the time for getting sensormeasurement value Get the measurement va
8. lues from the hygro thermometer and illumination sensor then send them by wireless Is sending complete y Standby conditions Change the CPU clock to CR oscillator 4MHz Has the standby time elapsed Change the CPU clock to PLL oscillator 80MHz Figure 12 Operation of slave devices in sensor logger mode 15 cO FUJITSU AN706 00039 2v0 E 2 3 2 4 Operation of Slave Devices in Remote Control Mode Presses of demo switch 1 are detected lf a press of demo switch 1 is detected the CPU operation mode changes The CPU operation mode is initially mode 1 and changes cyclically as mode 1 gt mode 2 gt mode 3 gt mode 1 Note that in remote control mode the operation of mode 3 is the same as mode 1 Refer to the wireless system board user s manual for details on the CPU operation modes A check is performed of whether it is the periodic time to acquire the sensor measurement values If it is the periodic time to get the sensor measurement values the measurement values are got from the accelerometer the got measurement values are sent by wireless and the program then waits for the sending to finish The above flow is shown in Figure 13 No Was demo switch 1 pressed Yes Change CPU operation mode CPU 80MHz Peripheral 40MHz CPU 60MHz Peripheral 30MHz CPU 80MHz Peripheral 40MHz l N 3
9. ng controllers and Wireless BLE Bluetooth Low Energy and USB connectivity solutions Cypress is committed to providing its customers worldwide with consistent innovation best in class support and exceptional system value FUJITSU AN706 00039 2v0 E SESS Fujitsu MB3Be 32 BIT MICROCONTROLLER FM3 family Application Note Wireless System Solution Wireless Control Sensor Control LCD Control Application Note T M ARM ARM and Cortex M3 are the trademarks of ARM Limited in the EU and other countries FUJITSU AN706 00039 2v0 E All Rights Reserved The contents of this document are subject to change without notice Customers are advised to consult with FUJITSU sales representatives before ordering The information such as descriptions of function and application circuit examples in this document are presented solely for the purpose of reference to show examples of operations and uses of Fujitsu semiconductor device Fujitsu does not warrant proper operation of the device with respect to use based on such information When you develop equipment incorporating the device based on such information you must assume any responsibility arising out of such use of the information Fujitsu assumes no liability for any damages whatsoever arising out of the use of the information Any information in this document including descriptions of function and schematic diagrams shall not be construed as license of the use or exercise of any intelle
10. r Microcontroller 7 LCD Realtime clock EE EE A RS232C RS232C Button battery driver interface Figure 8 Hardware block diagram 10 FUJIT SU AN706 00039 2v0 E 2 3 Software 2 3 1 Software Block Diagram A software block diagram of this system is shown in Figure 9 Application Application RTC ensor LCD control control control UART Timer LED driver PC control control driver Hardware Target board O Fujitsu Electronics Library Figure 9 Software block diagram Note Fujitsu Electronics Library is developed for only this demonstration not for business So it is not given to the customers When they want to make the same system they will prepare the programs for their hardware system by themselves 11 FUJITSU AN706 00039 2v0 E 2 3 2 Overall Application Operating Flow 2 3 2 1 Operation from Startup to Demo Mode Selected When the power is turned on the pressed status of demo switch 1 is detected If demo switch 1 was not pressed the device enters sensor logger mode 3 If demo switch 1 was pressed the device enters remote control mode The operation up to this point is common to the host device and slave device The above flow is shown in Figure 10 Power ON Startup as demo switch pressed v Switch to Sensor Logger Mode Switch to Remote Control Mode Figure 10 Operation from startup to demo mode selected Refer to the wi
11. reless system user s manual for details on sensor logger mode and remote control mode 12 FUJITSU AN706 00039 2v0 E 2 3 2 2 Operation of Host Device in Sensor Logger Mode and Remote Control Mode The host device has the same operation in both sensor logger mode and remote control mode Presses of demo switch 1 are detected If apress of demo switch 1 is detected the CPU operation mode changes The CPU operation mode is initially mode 1 and toggles between mode 1 and mode 2 Refer to the wireless system board user s manual for details on the CPU operation modes 8 A check is performed for whether there is a valid wireless reception from a slave device 4 If there is a valid wireless reception from a slave device the received data is sent to the PC via RS232C The above flow is shown in Figure 11 Change CPU operation mode CPU 80MHz Peripheral 40MHz CPU 60MHz Peripheral 30MHz _ NO Was valid data received No Yes Send the received data to the PC via RS232C Figure 11 Operation of host device in sensor logger mode and remote control mode 13 FUJITSU AN706 00039 2v0 E 2 3 2 3 Operation of Slave Devices in Sensor Logger Mode D Presses of demo switch 1 are detected lf a press of demo switch 1 is detected the CPU operation mode changes The CPU operation mode is initially mode 1 and changes cyclically as mode 1 gt mode 2 gt mod
12. reless transceiver control via the SPI interface and sensor control and LCD control via the I C interface with the FM3 family 2 ABOUT THE WIRELESS SYSTEM BOARD The evaluation system that was used to measure the performance described in this application note performs the following operation Refer to the wireless system board user s manual for details on the operation Controls various sensors hygro thermometer illumination sensor accelerometer 2 Sends and receives data by wireless communication of the various sensor measurement values 8 Sends the various sensor measurement values that were acquired by wireless communication to a PC from the microcontroller via RS232C communication and displays them on the PC monitor 4 Displays the various measurement values etc on the LCD on the board Sensor control d N 950MHz as _ Slave 1 Wireless LCD control ee i communication Sensor measurement values display RS232C eee communication Figure 1 Wireless system overview diagram FUJITSU AN706 00039 2v0 E 2 1 System Operation This system has two operation modes The network is made up of one host device and either one or multiple slave devices depending on the mode Refer to the wireless system board user s manual for details on the operation modes The following describes the system operation 1 The microcontroller on the slave device reads the sensor measurement values at fixed time inter
13. tect against injury damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy fire protection and prevention of over current levels and other abnormal operating conditions If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan the prior authorization by Japanese government will be required for export of those products from Japan The company names and brand names herein are the trademarks or registered trademarks of their respective owners Copyright 2011 2012 FUJITSU SEMICONDUCTOR LIMITED all rights reserved FUJITSU AN706 00039 2v0 E Revision History Aug 23 2011 First Edition 2 0 Feb 6 2012 Updated to latest format Deleted about FW and GUI part FUJITSU AN706 00039 2v0 E Table of Contents FYCVISI ON FAISLONY sjoriscisceniniuainairaininatnaivanntsinaivainaiaatniaiatrateniabaivainainnialasmalbus uueeeuesemereuiseneteyaruneburaENARLENENEARL ENTE 2 TANGO DUOOUCNS siiesatcctoratcauisuaboisiuustasctettssuboiatousenatmudtasseededasaseueseda E 4 1 INTRODUCTION cccccccccseesseseseeeeeeeeeeeeeeeeeeeseeeeseeaesseeeeeeeeeesssessauaeaaessseeeeeseeeesenees 5 2 ABOUT THE WIRELESS SYSTEM BOARD 10 00 ccccccccccccsssssseseeeeeeeeeeeeeeeseessaaeeesseeeeeees 5 om We 00 ODEA 10 g eee eemeermn te enter arnt tn ts erste ee ne ae eee 6 22 ATONIO ee
14. vals l2C Microcontroller CK Read sensor measurement values Figure 2 Reading the sensor measurement values on the slave device 2 The slave device displays the sensor measurement values etc on the LCD Display sensor measurement values etc Figure 3 Displaying the sensor measurement values etc on the LCD 3 The slave device performs wireless control to send the sensor measurement values to the host device after reading the sensor measurement values The host device receives the sensor measurement values sent from the slave device Microcontroller or measurement values Host Receive sens Send sensor measurement values Figure 4 Sending the sensor measurement values from the slave device FUJITSU AN706 00039 2v0 E 4 The host device sends the received sensor measurement values to the PC via RS232C communication The PC displays the sensor measurement values received from the host device on the PC screen RS232C Temperature C Humidity 8 C K Microcontroller Host llluminance lx SLAVE1 SLAVE3 SLAVE2 SLAVE4 Figure 5 PC screen display of sensor measurement values AN706 00039 2v0 E cO FUJITSU 2 2 Hardware External Appearance of the Microcontroller Board and Wireless Board 2 2 1 Photographs of the external appearance of the microcontroller board and wireless board are shown in Figure 6 and Figure 7 Wireless board Microcontroller board US

Download Pdf Manuals

image

Related Search

AN706 00039 2v0 E a06b-0032-b075#7008 40-a703-000-p00 a06b-0590-b004#7008 a06b-0034-b675#7000 a903 v72.678012

Related Contents

View - Farnell  Cooler Master B500 ver.2  File Server Apple III SOS User`s Guide  User ManUal HG 8 Hot spray scraper  MC5、 SC2  Instruction Manual  Samsung SCH-850 Series User's Manual  2º 3º 1º  

Copyright © All rights reserved.
Failed to retrieve file