Home

Wireless Data Transfers Using Vinculum-II

image

Contents

1. FT 000496 AN 179 Wireless Data Transfers with VNC2 Chip Version 1 0 Clearance No FTDI 217 pU Y li FirePlug Figure 1 2 Roving network Bluetooth Dongle Copyright 2011 Future Technology Devices International Limited 12e FIDI AN 379 Wireless Date Transfers with VN A Chip Clearance Nar Frola as Table of Contents 1 Introductions oni nob KO RR OR OO RES A C ROCA RR COR QUA RR CN RE 1 1 1 VNC2 Devices isis usu usua uasa EusuzuvckuuxEzszsgezusuiwExErEEEREuEsEREREunwEVRwadn 1 1 2 Roving Network USB Bluetooth Dongles 1 2 Block Diagrari icis son xus sunu uaEu NU ER MEE UE EN NUMEN MN UN M MEN MR ER 4 3 Interconnect iin iscsi cxx ax xin xin xx DUR ERR KR AR ER nr RUE ERR RE x UN KR UA NUR EROR 5 3 1 PC 1 V2EVAL ansuu ura a c ccc c c oc c c s o a c ie 5 Bet PC 2 lssassssisaisAAREARRGRRARERRRRRARESRRXRARESRRESRRRRRRESSRKSRERSARESRERISRESARNSRAESRREE 5 4 Source code for the VNC2 Application 6 4 1 VNC2 InitialisatiOn iiieisuususuuxuu au inan uu unEASRREHARRSRESERRRERRRERSRVARANRR AEN 6 48 2 Init devices aussscsiuasuceasuGuca ua E Fev ESEvEE sus uses aseo EAE P VxEF REM E E RE EwE 7 4 3 The Main Thread firmware 1ee eere nnn 7 5 Building and Loading the Firmware into the VNC2 12 6 Configuring the Bluetooth Dongles and running the app 13 7 Contact Information eoe eene enne nnn
2. VNC2 transparently handles the FAT file structure Communication with non USB devices such as a low cost microcontroller is accomplished via either UART SPI or parallel FIFO interfaces VNC2 provides a new cost effective solution for providing USB Host capability into products that previously did not have the hardware resources available VNC2 allows customers to develop their own firmware using the Vinculum II software development tool suite These development tools provide compiler assembler linker and debugger tools complete within an integrated development environment IDE The Vinculum II VNC2 family of devices are available in Pb free RoHS compliant 32 lead LQFP 32 lead QFN 48 lead LQFP 48 lead QFN 64 Lead LQFP and 64 lead QFN packages For more information on the ICs refer to http www ftdichip com Products ICs VNC2 htm 1 2 Roving Network USB Bluetooth Dongles This application example uses two of the Roving Network USB Bluetooth dongles RN USB X These dongles were chosen as they use the FT232 device as the USB interface and the Vinculum IDE provides drivers for this chipset for free Configuration of the dongle is done via this USB interface and the Bluetooth interface is handled entirely in the dongles See http www rovingnetworks com Docs Bluetooth RN USB X UM pdf For more information on the Bluetooth dongle Copyright 2011 Future Technology Devices International Limited 1 FTDI Document Reference No
3. Shop URL http www ftdichip com Branch Office Taipei Taiwan Future Technology Devices International Limited Taiwan 2F No 516 Sec 1 NeiHu Road Taipei 114 Taiwan R O C Tel 886 0 2 8791 3570 Fax 886 0 2 8791 3576 E mail Sales tw salesiQftdichip com E mail Support tw support1 ftdichip com E mail General Enquiries tw admini ftdichip com Web Site URL http www ftdichip com Branch Office Hillsboro Oregon USA Future Technology Devices International Limited USA 7235 NW Evergreen Parkway Suite 600 Hillsboro OR 97123 5803 USA Tel 1 503 547 0988 Fax 1 503 547 0987 E Mail Sales us salesQftdichip com E Mail Support us support ftdichip com E Mail General Enquiries us admin ftdichip com Web Site URL http www ftdichip com Branch Office Shanghai China Future Technology Devices International Limited China Room 408 317 Xianxia Road ChangNing District ShangHai China Tel 86 21 62351596 Fax 86 21 62351595 E Mail Sales cn sales ftdichip com E Mail Support cn support ftdichip com E Mail General Enquiries cn adminiQftdichip com Web Site URL http www ftdichip com Distributor and Sales Representatives Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 Please visit the Sales Network page of the FTDI Web site for the contact details of our distr
4. nnns 14 Appendix A ReferelicBS oidusansssuuSsaENEASERKEFERRVWE RE ERYRRIEENESERANEFEESVERRE SERE 15 Appendix B List of Figures and Tables s 16 List of FIgUEBS aus esca ae suan sudes sues asas ua ead sssascsdussusessessusssdussexeseessusessuas cess 16 Appendix C Revision History e cesse eese eene nnne 17 Copyright 2011 Future Technology Devices International Limited 3 TT FTDI Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 N Chip Version 1 0 Clearance No FTDIZ 217 2 Block Diagram This block diagram Figure 2 1 shows the interconnect required for the demonstration FT4232H Figure 2 1 VNC2 Bluetooth Demo Block Diagram Copyright 2011 Future Technology Devices International Limited 4 Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 3 Interconnect 3 1 PC 1 V2EVAL PC 1 is the development PC This PC is used to run the FTDI VNC2 toolchain IDE to develop the VNC2 application code and load it onto the V2EVAL board via the debugger interface The FT4232H channel C on the V2EVAL board is the debugger interface which the IDE will automatically find When the application code is compiled and loaded into the VNC2 the V2bEVAL Board Terminal application can be used to configure the Bluetooth dongle 1 and is also used for sending and receiving data
5. patents or other intellectual property rights is implied by the publication of this document Future Technology Devices International Ltd Unit 1 2 Seaward Place Centurion Business Park Glasgow G41 1HH United Kingdom Scotland Registered Number SC136640 Copyright 2011 Future Technology Devices International Limited uy pU FA FTDI Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 ca Chip Version 1 0 ld Clearance No FTDI 217 1 Introduction This application note will demonstrate how the VNC2 device can be used to host a Roving Networks USB Bluetooth dongle and configure it Data will be passed to and from the dongle via the VNC2 to a PC connected to the VNC2 UART port A second Roving Networks Bluetooth Dongle will be connected to another PC to allow for data transfer over the Bluetooth link For development puposes a V2EVAL development board with V2EVAL 64 daughter card was used http www ftdichip com Support Documents DataSheets Modules DS_ V2EVAL Rev2 pdf AAR AES ea NN 3 siog Figure 1 1 V2 EVAL with daughter card 1 1 VNC2 Devices VNC2 is the second of FIDI s Vinculum family of embedded dual USB host controller devices The VNC2 device provides USB Host interfacing capability for a variety of different USB device classes including support for BOMS bulk only mass storage Printer and HID human interface devices For mass storage devices such as USB Flash drives
6. 20 0x2000 firmware Application FTDI ECT vos start scheduler main loop goto main loop Note Starting the VOS scheduler is always the last thing to be done as all configuration must be complete before this starts 4 2 Init devices This section initialises the drivers for the USB host port the UART port and the usbHostFT232 class driver void init devices void UART Driver configuration context uart context t uartContext USB Host configuration context usbhost context t usbhostContext Initialise USB Host usbhostContext if count usbhostContext ep count 16 usbhostContext xfer count 2 usbhostContext iso xfer count 2 usbhost init 1 VOS DEV USBHOST 2 amp usbhostContext ct ct Initialise USB Host FT232 Driver usbHostFt232 init VOS DEV USBHOST FT232 Initialise UART uartContext buffer size VOS BUFFER SIZE 128 BYTE uart init VOS DEV UART amp uartContext 1j ca 4 3 The Main Thread firmware This is the section where the USB host port is checking for the Bluetooth dongle then enumerating and attaching it if it is present If this succeeds the code runs in an inner loop that checks and transfers data between the VNC2 UART and VNC2 USB port 2 NOTE The UART port settings can be changed by the user but must match the setting used in the V2EVAL Board terminal application on PC 1 Copyrig
7. Debugger Interface Connect Quick Watch Figure 5 2 Vinculum II IDE Flash Button Note the Debugger Interface is listed as V2EVAI Board C It is important that this box shows a device is connected before attempting to flash a device Copyright 2011 Future Technology Devices International Limited C74 FTDI Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 NEN Clearance No FTDIZ 217 EN Chip Version 1 0 6 Configuring the Bluetooth Dongles and running the app The Bluetooth dongles are configured over the USB port One device is set to be the master and the other the slave Either the master or slave dongle can be connected to the Vinculum host You can do this configuration via the VNC2 or by simply connecting them to a PC and setting them up before use with your terminal application will enter the dongle into command mode D lt rtn gt will give the basic configuration of the device The most interesting configuration parameter at this stage will be the address BTA V2EVAL Board A 0X E Terminal Edit i Board 9 UU z m Nm Ww a p i Baud Rate 115200 DataBits 3 Assert RTS V Local Echo Fi H X its X m l low Control CTS RTS Stop Bits 1 Assert DTR V Use CRLF T Disconnect parity None m Load Save Connection ma Settings Tu Control rz Display ra Configuration rz A CMD 2 D Settings BTA 000A3A500114 BTName FireFly 0114 Baudrt S
8. SET DTR vos dev ioctl hUSBHOST FT232 amp CommonIoctl Set RTS needed to start the Bluetooth dongle CommonIloctl ioc VOS IOCTL tl code USBHOSTFT232 SET RTS vos dev ioctl hUSBHOST FT232 amp CommonIoctl start polling CommonIlIoctl ioc VOS IOCTL the connected devic tl code USBHOSTFT232 START POLL vos dev ioctl hUSBHOST FT232 amp CommonIoctl KR KR KR RK KKK KK kk KK KK IK OK OR KK IK KK RK KC k kk k KK KK koe ke kk Loop data between UART and USB port RR KR KR RK KKK KK KR KK KK OR OK KK IK OK RK KK KK ORK KK OK UART checking queue status do memset buf UART to USB 0x0 64 num_written 0 CommonIoctl ioctl_ code vos dev ioctl hUART num_written if num_written 0 UART reading num read 0 vd Copyright 2011 Future Technology Devices International Limited VOS IOCTL COMMON GET RX QU vos dev read hUART buf UART to USB EUE STATUS amp CommonIoctl Commonloctl get queue stat num written A FTDI Document Reference No FT_000496 AN 179 Wireless Data Transfers with VNC2 SN Chip Version 1 0 Clearance No FTDIZ 217 amp num read UART OK write it out the USB port counter 0 vos dev write hUSBHOST FT232 buf UART to USB num read amp counter USB host checking for data num_written 0 Commonloctl ioctl code VOS IOCTL COMMON GET RX QUEUE STATUS vos dev ioc
9. V VINCULUM BINDING USB TECHNOLOGIES Future Technology Devices International Ltd Wireless Data Transfers with VNC2 Application Note AN 179 Document Reference No FT 000496 Version 1 0 Issue Date 2011 08 17 This application note demonstrates how the FTDI VNC2 USB Host controller can connect to another device wirelessly with a USB Bluetooth dongle Future Technology Devices International Ltd FTDI Unit 1 2 Seaward Place Centurion Business Park Glasgow G41 1HH United Kingdom Tel 44 0 141 429 2777 Fax 44 0 141 429 2758 E Mail Support supporti ftdichip com Neither the whole nor any part of the information contained in or the product described in this manual may be adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder This product and its documentation are supplied on an as is basis and no warranty as to their suitability for any particular purpose is either made or implied Future Technology Devices International Ltd will not accept any claim for damages howsoever arising as a result of use or failure of this product Your statutory rights are not affected This product or any variant of it is not intended for use in any medical appliance device or system in which the failure of the product might reasonably be expected to result in personal injury This document provides preliminary information that may be subject to change without notice No freedom to use
10. W4 2115K Parity None Mode Slav 4uthen 0 Encryp 0 PinCod 1234 Bonded 0 Rem NONE SET Hex Terminali V2EVAL Board 4 FTTPF4R6A Board Control _ V2EVAL Board D FTTPF4R6D Ho File E Figure 6 1 Bluetooth Dongle descriptors read by the Vinculum In this example the dongle connected to the Vinculum device is shown to be in slave mode with address 000A3A500114 To connect to this device with the master dongle use the terminal connected to the master dongle to send the command C 000A3A500114 lt rtn gt This instructs the master Bluetooth Dongle to wirelessly connect with Bluetooth device address 000A3A500114 whcih is connected to the Vinculum When connected any data typed in the V2EVAL Board terminal on PC 1 will appear in the terminal application on PC 2 and vice versa For additional commands for the Bluetooth dongle see the user manual http www rovingnetworks com Docs Bluetooth RN USB X UM pdf Copyright 2011 Future Technology Devices International Limited 13 LN y q 2 FTDI a Chip 7 Contact Information Head Office Glasgow UK Future Technology Devices International Limited Unit 1 2 Seaward Place Centurion Business Park Glasgow G41 1HH United Kingdom Tel 44 0 141 429 2777 Fax 44 0 141 429 2758 E mail Sales salesiQftdichip com E mail Support supporti ftdichip com E mail General Enquiries admini ftdichip com Web Site URL http www ftdichip com Web
11. aud rate UART BAUD 115200 to uart determined by handle amp CommonlIoctl to 8 e VOS IOCTL UART SET DATA BITS UART DATA BITS 8 to uart determined by handle amp CommonlIoctl to 1 e VOS IOCTL UART SET STOP BITS UART STOP BITS 1 to uart determined by handle amp Commonloctl none e VOS IOCTL UART SET PARITY UART PARITY NON GI tup command to uart determined by handle amp CommonIoctl ol to RTS OTS e VOS IOCTL UART SET FLOW CONTROL UART FLOW RTS CTS tup command to uart determined by handle amp CommonIoctl e VOS IOCTL COMMON ENABLE DMA DMA ACQUIRE AND RETAIN vos dev ioctl hUART amp Commonloctl open host driver and FT232 host class driver hUSBHOST 2 vos dev open VOS DEV USBHOST 2 KOR KR KR KK KK IK KK I CC k KC KC KK kk CK IR KC kk k kk k ko kk ke ke ke kk Loop to check device is BK KK HK I kk kk kk kk kk kk kk kk kk kk kk ckck ckck ckck ckck ckck ck ck ck ck ckck ckck ckck ckck ckck ck ck ckck ckok ckck kok k numerated and send data back and forward Copyright 2011 Future Technology Devices International Limited 8 ty am FTDI Chip WV Y Document Reference No FT_000496 AN_179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDI 217 wait for enumeration to complete vos delay msecs 250 user ioctl to see if bus available hc
12. between the dongles The FT4232H channel A on the V2 EVAL board provides the data channel to connect the terminal application on the PC to the UART port of the VNC2 3 2 PC2 PC 2 is simply another Bluetooth terminal to allow for data to be transferred in both directions The PC connects to Bluetooth Dongle 2 via a terminal emulator such as HyperTerminal TeraTerm or TTY The default settings of the dongles were used 115200 8 N 1 and no flow control Copyright 2011 Future Technology Devices International Limited 5 C74 FTDI Document Reference No FT 000496 AN_179 Wireless Data Transfers with VNC2 A Clearance No FTDI 217 N Chip Version 1 0 4 Source code for the VNC2 Application The Vinculum II IDE is used to create application code to run on VNC2 This section gives some example source code and explains its operation In essence the code breaks down into simple steps Initialise the Vinculum Operating System VOS Initialise the UART Configure the UART Initialise the USB Host Initialise the USBFT232host Attach the USBFT232Host to the USBHost and configure the interface Then in a loop Check for data on the UART Read data from UART Write data to USB Check for data on the USB Read data from USB Write data to UART All the Bluetooth protocol is handled in the dongle and is not something the VNC2 firmware needs to handle Note the full project can be downloaded at http www ftdichip com Support Soft
13. ckck ckck ckck ck ck ckck ckck ckck ckck ckok kok sk ke Set baud rate 115200baud CommonlIoctl ioctl code VOS IOCTL USBHOSTFT232 SET BAUD RATE Commonloctl set uart baud rate USBHOSTFT232 BAUD 115200 vos dev ioctl hUSBHOST FT232 amp CommonIoctl Copyright 2011 Future Technology Devices International Limited 9 7288 FTDI SS Chip Set number of data bi Commonloctl ioc VOS CommonIlIoctl set Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 ES to 9 tl code IOCTL USBHOSTFT232 SET DATA BITS USBHOSTFT232 DATA BITS 8 param vos dev ioctl hUSBHOST FT232 amp CommonIoctl Set number of stop bi CommonIlIoctl ioc VOS Commonloc vos dev ioctl Set pa Commonloc VOS CommonlIoctl se vos dev ioctl rity CL Loe IOCTI h Set flow con Commonloctl ioc VOS Commonloc tl set IOCTL ts to 1 tl code USBHOSTFT232 SET STOP BITS e HOSTFT232 STOP BITS 1 param USB USBHOST FT232 amp CommonIoctl LO none tl code USBHOSTFT232 SET PARITY param USBHOSTFT232 PARITY NONE USBHOST FT232 amp CommonIoctl trol to none tl code USBHOSTFT232 SET FLOW CONTROL USBHOSTFT232 FLOW NONE param vos dev ioctl hUSBHOST FT232 amp CommonIloctl Set DT CommonIlIoctl ioc VOS IOCTL R needed to start the Bluetooth dongle tl code USBHOSTFT232
14. ese na a alba a a ex a SR PME dug 1 Figure 1 2 Roving network Bluetooth Dongle sssssssssssssseseseeeenemene nemen ehem sese nein 2 Figure 2 1 VNC2 Bluetooth Demo Block Diagram sse eene nemen enn 4 Figure 5 1 Vinculum II IDE Build Button ssssssssssseseesn ered 12 Figure 5 2 Vinculum II IDE Flash Button nine eese meneame sa ne suxk Rau ERR a ERR RRER SA RRREREIN RI PZRRRRER Ed 12 Figure 6 1 Bluetooth Dongle descriptors read by the ViINCUIUM ssssssssssssrsrssrrsrrssrurrrnrrnsrernrernnrrnrens 13 Copyright 2011 Future Technology Devices International Limited 16 Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 Appendix C Revision History Version 1 0 First release 17 August 2011 Copyright 2011 Future Technology Devices International Limited 17
15. ht 2011 Future Technology Devices International Limited 7 pala A 48 FTDI SS Chip Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 NOTE 2 The USBHOST FT232 settings are selected to match the default of the Bluetooth dongle void firmware decla unsigned unsigned unsigned unsigned unsigned unsigned re types used unsigned char i enum USBHOST STATUS usbStatus char status char buf USB to UART 64 char buf UART to USB 64 short counter short num read short num written open UART port vos dev open VOS DEV UART hUART configure UART port set uart baud rate to 115200 Commonloc Commonloc send se tl ioc tl set tup co tl cod mmand vos dev ioctl hUART set uar Commonloc Commonloc send se t data tl ioc tl set Eup cg bits tl cod param mmand vos dev ioctl hUART set uar Commonloc Commonloc send se L Stop tl ioc tl set tup co PLCE tl cod param mmand vos dev ioctl hUART set uar Commonloc Commonloc send se t pari tl ioc tl set Ly to tl cod param vos dev ioctl hUART set uar Commonloc Commonloc send se t flow tl ioc tl set contr tl cod param vos dev ioctl hUART enable Commonloc Commonloc UART D tl ioc tl set MA tl cod param e VOS IOCTL UART SET BAUD RATE uart b
16. ibutor s and sales representative s in your country Copyright 2011 Future Technology Devices International Limited 14 Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 Appendix A References Application and Technical Notes available at http www ftdichip com Support Documents AppNotes htm V2 EVAL datasheet http www ftdichip com Support Documents DataSheets Modules DS V2bEVAL Rev2 pdf Vinculum Il IO Cell Description http www ftdichip com Support Documents AppNotes AN 137 Vinculum II9o20IO Cell Description pdf Vinculum ll Debug Interface Description http www ftdichip com Support Documents AppNotes AN 138 Vinculum II Debug Interface Description pdf Vinculum lIl IO Mux Explained http www ftdichip com Support Documents AppNotes AN 139 Vinculum II 201IO_Mux 20Explained padf Vinculum ll Errata Technical Note http www ftdichip com Support Documents TechnicalNotes TN 118 VNC2 20Errata 20Technical 9020Note pdf Roving Networks USB Bluetooth Dongle User Manual http www rovingnetworks com Docs Bluetooth RN USB X UM pdf Copyright 2011 Future Technology Devices International Limited 15 Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Version 1 0 Clearance No FTDIZ 217 Appendix B List of Figures and Tables List of Figures Figure 1 1 V2 EVAL with daughter card ioci e
17. iocb ioctl code VOS IOCTL USBHOST GET CONNECT STAT hc iocb get amp i Is vos dev ioctl hUSBHOST 2 amp hc iocb checking USB port2 the host if i PORT STAT status 0 I _ ENUMERATED find FTDI vendor device hc iocb vendor vid USB VID FTDI hc iocb vendor pid USB PID ANY user ioctl to find first hub device hc iocb ioctl code VOS IOCTL USBHOST DEVICE FIND HANDLE BY VID PID hc iocb handle dif NULL hc iocb set hc iocb ge usbStatus if usbSta stat if status amp hc iocb vendor amp ifDev2 vos dev ioctl hUSBHOST 2 amp hc iocb us USBHOST OK 0 now we have a device intialise a driver for it hUSBHOST FT232 vos dev open VOS DEV USBHOST FT232 t232 attach ft232HostAttach hc handle hUSBHOST 2 ft232HostAttach ifDev ifDev2 ft232HostAttach ftPort USBHOSTFT232 PORTA CommonlIoctl ioctl code VOS IOCTL USBHOSTFT232 ATTACH Commonloctl set amp ft232HostAttach Af else vos dev ioctl hUSBHOST FT232 amp CommonIoctl USBHOSTFT232 OK status 1 KR KR KR KKK KKK KK KK KK KK OK KK KK AOR RK KKK KK KK KK OK Now that device is connected it must be configured NOTE BAUD RATE uses set uart baud rate all other parameters are T set with set param BK KK HK I kk kk kk kk kk kk kk kk kk kk kk ckck ckck ckck ckck ckck ckck
18. tl hUSBHOST FT232 amp CommonIoctl num written CommonlIoctl get queue stat if num written 0 USB HOST READING memset buf USB to UART 0x0 64 num_read 0 if vos dev read hUSBHOST FT232 buf USB to UART num written amp num read USBHOSTFT232 OK write it out the UART port counter 0 vos dev write hUART buf USB to UART num read amp counter while 1 vos dev close hUSBHOST FT232 while 1 Copyright 2011 Future Technology Devices International Limited 11 FA FTDI Document Reference No FT_000496 7 g 1 Ch AN 179 Wireless Data Transfers with VNC2 ON i Version 1 0 Pu Ip Clearance No FTDI 217 5 Building and Loading the Firmware into the VNC2 To build the application you simply press the Build button on the IDE ribbon bar under the build tab inculum II IDE Qo N File Edit View Build Debug p ry AJ e Debug X s Make Build Clean Libraries HeaderFiles Options Build FTDI Libraries Project Build Configuration Figure 5 1 Vinculum II IDE Build Button Loading the code is equally simple Just click on the Flash button on the ribbon bar under the debug tab Wu 00 4 File Edit View Build Debug P x P E vaEvAL Board C 3 FTTPF4R6C 1 Flash voliy Start Halt Stop Reset Step Step Into Step Out Run To Cursor yNC2 64 pin package Options Program Debug Step
19. wareExamples VinculumIIProjects Bluetooth bluetooth zip The source code is provided on an as is basis and is neither guaranteed nor supported 4 1 VNC2 Initialisation When generating firmware for VNC2 the first steps are to enable the Vinculum Operating System VOS which controls the VNC2 services and device manager defines the clock speed the core will use and defines the VNC2 pins that will be used This is done in the function labelled main The main function for this application is shown as follows KOR KR KKK KK KK KKK kk KC I I I IA kk CK KC Kk KC KC OR AK kk k kk k ko kk ke ke ek Main code entry point to firmware BK CK kk koe koe koe koe kk kk ke ke ke ke kk kk kk kk kk kk kk kk kk kc kc kc kc kc kc kc ck kc ke kc ke ck kc ke ke ke ke ke ke e e x void main void FTDI SKI Kernel Initialisation vos init 50 VOS TICK INTERVAL VOS NUMBER DEVICES vos set clock frequency VOS 48MHZ CLOCK FREQUENCY vos set idle thread tcb size 512 FTDI EKI Copyright 2011 Future Technology Devices International Limited 4 PR d FTDI Document Reference No FT 000496 AN 179 Wireless Data Transfers with VNC2 Clearance No FTDIZ 217 AN Chip 3 Version 1 0 iomux setup This is where the pinout is defined It is generated automatically by the application wizard init devices FTDI SCT Thread Creation tcbFIRMWARE vos create thread ex

Download Pdf Manuals

image

Related Search

Related Contents

MANUAL DE INSTRUCCIONES  ストラブ・フレックス Fタイプ  Belkin F8N518-189  クイックガイド ダウンロード  NA342 User`s Manual VA2  RipControl - Infralogic.net  KitchenAid KEBI101D User's Manual  modelo 4382    Manuel d`utilisation SDK-AN-13 Gradateur précoupure de phase  

Copyright © All rights reserved.
Failed to retrieve file