Home

begv627m user manual

image

Contents

1. select Device Configuration Bits Device Family Microchip Tool Support Programmers i PICSTART Plus MPLAB REALICE i PRO Il MPLAB ICD 2 PlCkit 2 MPLAB MPLAB ICD 3 3 Language and Design Tools ASSEMBLER COMPILER o v3 00 v3 00 Debuggers 3 MPLAB SIM MPLAB ICD 2 PlCkit 2 MPLABREALICE 88 MPLAB ICD 3 8 PlCkit 3 MPLAB ICE 2000 MPLAB ICE 4000 ICEHCD Headers Module Module Q AC152034 Oph BEGV627M User Manual Ver 01 Preliminary 48 5 w Step 7 click Programmer Select Programmer 5 MPLAB ICD3 x MPLAB IDE v8 36 Untitled Workspace File Edit View Project Debugger ascii Tools Configure Window Help E melect Programmer v None 1 PICSTART Plus 2 MPLAB ICD 2 3 starter 4 PICkit 3 5 MPLAB ICD 3 B ANSSI Quick P T PIC kit 2 B MPLAB 3 0 REAL 10 PRO MATE II 11 PICkit 1 yo grammer B Note target device is not powered as yet Therefore there is display on LCD BEGV627M User Manual 01 Preliminary 49 ws r Step 8 Change programmer settings to use ICD3 as power supply to target device Click Programmer Settings select Power tab check on Power target circuit from MPLAB ICD3 Then click OK MPLAB IDE v8 36 Output File Edit View P
2. PICM4FJ 4GADU2 ab sab IPO dcnovzc BEGV627M User Manual Ver 01 Preliminary 40 r NNNM Step 6 Here comes the same old warning message complaining about configuration bit as in step 2 For the same token belay the message and click No m BEGV627M DTP MPLAB IDE v8 36 ti IL ares rh zl M 8 rile EGIL Weal PFO ECL LIEDUQGOe Pr agr amrmrier x 1005 Configure W 4 Doe Pr Le j rs IRE E 627 _ q Output 2 J 27 1 8 Source Files 55 8 Variable ne cg The configuration bits in the File are invalid and may cause problems if programmed Header Files Do you want to set them to their default value G Object Files Please note that you will need to either rebuild the File or export memory again to correct the File d d a Other Files Config Field SOSCSEL 3 x disp x disp v PORT l CAB TER E qaa eRe PH RI 015 0 variable prac a gt D Errors 1 vvarnings Executing CAPragram filessPiccy CCS C exe FD _ Memory usage B M 3 7 2 41 1 E
3. 2 xl BOL Y MI ET BEGV639M PIC24FJ64GA004 PA BOLYMIN _ BEGV639M sr PIC24F J6 4GAD04 2 BEGV639M x BEGV639M 01 S BEGV641A LY My Network File name Places Save as type uc Hint to turn grid on On msPaint click view zoom larger size then click view zoom show grid or press Ctrl G to toggle grid BTImg2LCD exe BTIme2LC Step 2 Double click U torun BTilmg2LCD exe Here is the main screen a BTImg2LCD v1 00 Height _ LYMIN Output devi BEGV641A e Transfer wa Save As Select all Copy OG HMM BEGV627M User Manual 01 Preliminary 92 Step 3 Click button to select the bitmap file you created Step 4 Select the device you used from the output device list Step 5 Click d button to transfer the selected bitmap file to source code All generated source code will be added into the editor as following picture shows a BTImg2LCD v1 00 eos BOLYMIN BEGV639M PIC24F J64GA004 BOLYMIN BEGV639M PIC24F J64GA004 Width 240 Height 128 LYMIN EN unsigned char qImaqe PROGMEM Output device waa MESE BEGV641A OXFE OxFF 0 lOx00 Ox n 401 eoo M Select
4. 1 4 Mechanical Dimensions Drawing 1 4 Front amp top view 9 1 0 5 66 53 33 25 16 4 M A X BEGV627M User Manual 01 Preliminary 10 r Side amp Back view Hirose DF11C 12DP 2V or EQ BEGV627M User Manual 01 Preliminary 11 w 1 5 Board Specifications Table 1 5 MCU Memory Display Touch Panel Serial Ports High performance Low power PIC 16 bit microprocessor Microchip PIC24FJ64GA002 64K Bytes In System Programmable Flash 8K Bytes Internal SRAM 1 x 64K Bytes External I2C EEPROM Additional 64KB optional Support 2 interface resolution 128 x 64 monochrome STN LCD with edge LED white backlight only use ST7588t for LCD controller Support four wired resistive touch panel Support 1 x RS232 port and 1 x RS232 RS422 RS485 co shared port 1 6 Ordering Information RS232 A RS232 B 85422 RS485 BEGV627M Dual RS232 BEGV627M1 One RS232 ___ o J BEGV627M2__ RS232 One 8522 627 3 RS232 One RS485 x Display FSTN Positive LCD LED White Backlight Default BEGV627M User Manual Ver 01 Preliminary 12 _ ww w Chapter 2 Installation Abstract This chapter is to offer designer fundamental information of BEGV627M connectors in order to help designer conf
5. 13 IOB CN2 10 OC RP11 19 CN2 12 BEGV627M User Manual 01 Preliminary 22 _ ww r Chapter 4 Software Development Tool amp Utility Abstract This chapter explains PIC24FJ64GA002 MCU software development tool Microchip ICD3 and Bolymin free software utilities BEGV627M User Manual Ver 01 Preliminary 23 y Ee M Please follow the step guide to set up Microchip PIC24FJ64GA002 004 Software Development Tools 4 1 Install CCSC 4 093 Welcome ta Setup program This program will install on your computer WARMING This program protected by copyright law and International treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and Will be prosecuted the maximum extent possible under law PCWHD Licence SOFTWARE LICENSE AGREEMENT 1 License Custom Computer Services 05 grants a license to use the software program Licensed Materialz on a single user computer Use of the Licensed Materials on network requires payment of additional fees 2 Applications Software Derivative programs create using the licensed materials identified as Applications Software are not subject to this Agreement ig Wise Installation Wizard Cancel BEGV627M User Manual Ver 01 Preliminary 24
6. ola 212 Enter details for the phone number that you want to dial MPLAB IDE v8 36 Countregion awan 996 Area code 02 Phone number Connect using bh Cancel Choose a suitable COM port and click Yes to continue Disconnected Aut ec 9 6 18 PM start Ej E Control Panel amp c3 HyperTerminal 2 BEGV627M User Manual 01 Preliminary 61 r wa Step 8 It is required to set the serial communication as follows 115200 bps N 8 1 None Recycle Bin PIC C Compiler zri Hwnerlerminz SICUMS Properties 3 x Part Settings Bits per second 115200 PIFLAE IDE s a Data bits MPLAB IDE bi WO Parity None Stop bits gt Flow control None Restore Defaults Key in COM port setting 115200 8 No 1 No and click Yes to start Ej gt Control Panel e c3 HyperTerminal continue BEGV627M User Manual Ver 01 Preliminary 62 m A Step 9 Press Enter to bring up top menu Press 1 to get to i2c 24c512 File Edit view Cal Transfer Help 218 DEMO 5 62 ver 1 81 lt 24 129 2nd UART Test LOD Test Brightness Touch Calibration 5 point gt 2 0 00 35 Auto detect 115200 8 N 1 SCROLL
7. System Tools 7 Network Connects to other computers Internet telnet sites bulletin board systems online services and hast computers using gt Windows Media 65 Internet Explorer J Address Book ts New moder cable 57 MSN Calculator Wireless Network Setup Wizard 2 Windows Messe a Outlook Express Command Prompt i Remote Assistance Notepad 55 PIC C Compiler gt windows Media Player 4 Paint b Windows Messenger Program Compatibility Wizard Tour Windows Sb Windows Movie Maker Remote Desktop Connection PIC C k tJ Synchronize All Programs Micrachip h 33 Tour Windows XP gt Windows Explorer Log OFF o Turn OFF Com i 4 WordPad 2 search Results _ MP CWINDOW Sisyste 2 T 6 3 52 23 Computer Step 3 Click No if you do not use hyper terminal to telnet to UNIX host Default Telnet Program Wee recommend that you make your default telnet program Do you want to do this BEGV627M User Manual Ver 01 Preliminary 59 on Step 4 enter country and area code as appropriate 2 xX Location Information Before You can make any phone modem connections Windows needs the following information about your current location
8. 2 9 25 41 Errors Wrarnings nadar TTE gf BUILD SUCCEEDED Thu Feb 24 16 08 00 2011 PIC24FJ64GAO002 sab dcnovzc Also note that a new BEGV627M DTP hex file the program HEX code for EEPROM programming is generated In the next section we will introduce you the steps for writing EEPROM HEX code to target device using ICD3 BEGV627M User Manual 01 Preliminary 41 oun ww f Step 8 The generated file locates in the working folder as follows Double check the time stamp will be identical to the build time at the last line of above screen C BEGV627M pre Seles 3 File Edit View Favorites Tools Help 2 Ple 27 2 B Xx e Address a CHBEGY627Miprg El au Folders X Mame Size Date Modified 3 s Local Disk lib amp 27M File Folder 2123 2011 6 19 amp E BEGV627M DTP File 12 16 2009 4 21 PM 25 BEGV627M W sEGv627M_ C Source File 12 16 2009 4 21 BEGV627M DTP cof 309 KB C Object File 212412011 4 05 PM lib amp 27M BEGV627M DTP err 1KB ERR File 2124 2011 4 05 PM BEGv6239M EH BEGV627M DTP esym 1KB ESYM File 2124 2011 4 05 GM BEGV627M DTP hex 87KB C Object File 212412011 4 05 PM 36 3 C Output File 41 objects
9. 5 E inl PLAB Tools meias Tos Start Copying Files Review settings before copying Files MiCROC HIP Setup has enough information to start copying the program files vau want review or change any settings click Back If you are satisfied with the settings click Next ta begin copying files Current Settings Destination Directory C Program FilezsMierachip Setup type selected Complete Components selected Serial Memory Devices B bit MCUs and devices 16 bit MCUs and DSCs 32 bit MCUs REAL ICE IER My Computer 2 C Documents MPLAB Tools x lt 3 08 PM MPLAB Tools gt MPLAB Tools x N MICROCHIP Setup Status MPLAB Tools v8 35 iz configuring Your new software installation Copying new files Cancel F Start e E My Computer CA Documents and Settin pu Tools lt lt 9 3 08 BEGV627M User Manual 01 Preliminary 33 Aor MN m gt T y Tools xi MICROCHIP Setup Status MPLAB Tools v8 35 Is configuring vour new software installation The HI TECH installer is in external executable IE is not controlled this installer IE will be uninstalled
10. 627 DTP mcw EER m Output mE Build Version Control Find in Files MPLAB ICD 3 Source Files Header Files _ Object Files _ other Files Symbols 164640027 oabsabIPO denovzc BEGV627M User Manual Ver 01 Preliminary 39 r Step 5 Now you are all set for 1 compilation Click Project Build all BEGV677M_DTP MPLAB IDE v8 36 File Edit View 288 Debugger Programmer Tools Configure Window Help Quickhuild no asm File ld Version Control Find in Files MPLAB ICD 3 Package in Clean 210 CCS C Help F11 Build Configuration k Build Options k Save Project Save Project As Files to Project New File to Project Remove File From Project Select Language Toolsuite Set Language Tool Locations sab IPO dc n pv z c version Control You will see CCSC compiling in progress as illustrated m BEGV627M_DTP MPLAB IDE v8 36 File Edi View Project Debugger Programmer Tools Configure Window Help 0 db E 0 3951 nx CCS C Compiler GENERO 7 BEGV627M_DTP mcw BEG 627M_DTP mcp Ga Source Files 8 Header Files g Object Files E Other Files ESPORT RUE 1815 9 variable EXPORT 18 5 9 Variable Files Symbols www
11. _ ww f PCWHD Destination Location Setup will install Pw HD in the following Folder install into a different folder click Browse and select another folder can choose nat to install PE HD clicking Cancel to exit Setup Destination Folder C Program Files PICC Browse Wise Installation PCWHD Select Program Manager Group Enter the name of the Program Manager group to add POWHD icons C L Accessanes Administrative Tools Games Oracle VirtualBox Guest Additions Startup Wize Installation Cancel BEGV627M User Manual 01 Preliminary 25 _ ww f 3 PCWHD Start Installation TOU are now ready to install Press the Next button to begin the installation or the Back button to reenter the installation Information Wise Installation SV rzard e Current File Copying C Program Files PICC csc chim TTT TTT TT ty All Files Time Remaining minutes 1 second Wise Installation Wizard lt Back Mes BEGV627M User Manual 01 Preliminary 26 CCS Registry and INI file Installati n At PCWHD has been successfully installed Recent compiler changes are listed in the README txt file Install DIR C Program Files PICC 2 User DIR C Documents and Settings martin Application Dat
12. eg pa e 2 n 5 A wi b sl Computer b Disk drives Display adapters p 58 DVD CD ROM drives Interface Devices rcg IDE ATA ATAPI controllers How do you want to search for driver software 2 Search automatically for updated driver software Windows will search your computer and the Internet for the latest driver software for your device unless you ve disabled this feature in your device installation settings ERES a 2 Browse my computer for driver software Mice and other pointing devices Locate and install driver software manually p A Monitors p EP Network adapters a Other devices HM MPLAB ICD3 tm www microchip col Update Driver Software Disable Uninstall Poo Unknown device b 3 Ports COM amp LPT p n Processors Scan for hardware changes Properties T Sound video and game controllers System devices F Universal Serial Bus controllers Launches the Update Driver BEGV627M User Manual 01 Preliminary 96 Select driver from as illustrated and bypass the warning Windows Security Windows can t verify the publisher of this driver software Browse for driver software on your computer Search for driver software in this location gt Don t install this driver software C Program Files Mi
13. 3 3V GND P 3 Logic power supply ground ISP Power amp Ground Table 2 1 1 EC NE NUM E Auxiliary moment reset for external input PGD Bi 4 ISP Programming Data PGC Bi 5 ISP Programming Clock BEGV627M User Manual 01 Preliminary 14 Note the variance in pin definition by ordering option as highlighted Drawing 2 1CN2 _ oun ww 2 1 2 Connector CN2 12 2 CN3 16 UT JE qu i E AI m US ni TITITIT E ee HIC 5 IKE vor CN2Pin Definition of BEGV627M Dual 5232 Table 2 1 2a Signal Signal IOB loc C Signal gt 2 0 LLLLL 1 BEGV627M User Manual 01 Preliminary 15 CN2 Pin Definition of BEGV627M3 One RS232 One 85485 Table 2 1 24 Here summarize all CN2 pins applicable on 627 embedded system categorized by signal type Pin Types Input Output Bi Input Output Bi Directional U User defined Power Power amp Ground Table 2 1 26 P 1 VDD Logic power supply 5 GND P 2 Logic power supply ground Serial I O Tabl
14. 5 Capture Print echa Step 10 Press 1 to browse through the page content of i2c eeprom with i2c hardware address of A2 c3 HyperTerminal D x File Edit View Transfer Help D ame I26 240c512 1 Address 12 0 00 46 Auto detect 115200 8 1 SCROLL Caps Capture Print echo 2 BEGV627M User Manual 01 Preliminary 63 2 BOLYMIN ww f Step 11 Here is 2 content listing starting from OxO to Oxff HyperTerminal xj File Edit View Call Transfer Help P PREU AA 3 FF Connected 3 51 39 Auto detect 115200 8 1 SCROLL Caps Capture Print echa Step 12 Press 2 to write OxAA into whole page C3 HyperTerminal Bl x File Edit View Transfer Help P PREU H HE 3 4 FF BEGV627M User Manual 01 Preliminary 64 8 ww f Step 13 Press 3 write 0 to the whole page via i2c to eeprom starting from 0 to 00ff g C3 HyperTerminal x File Edit View Call Transfer Help P PREU HE 3 4 FF Press N for next page P for previous page to confirm the change BEGV627M User Manual 01 Preliminary 65 oun eee r Step 14 Press to browse content of next page which is with a starting address of 0x100 g c3 Hyper
15. 64 32 touch 4 425 touch Y 474 Point 2 5 16 E ED ca F BEGV627M User Manual 01 Preliminary 72 M 3 CP upper right File Edit View Transfer Help 120 24 512 2nd Test LCD Test Brightness Touch m Calibration lt 5 gt 64 32 touch Y 476 16 8 touch VY 791 112 8 Connected 4 15 17 Auto detect 115200 8 1 SCROLL CAPS Capture Print echn 4 CP lower right c3 HyperTerminal File Edit Transfer Help DEMO TESTC6527H ver 1 61 26 24c512 gt 2nd Test LCD Test Brightness Touch Calibration 5 point gt 64 32 touch Y 476 16 8 2H6 touch Y 791 345 112 8 4 197 touch 153 4 5 112 56 Connected 4 16 02 Auto detect 115200 8 1 SCROLL CAPS NUM Capture Print echa BEGV627M User Manual 01 Preliminary 73 _ ww f 5 CP ower left g c3 HyperTerminal File Edit View Call Transfer Help 120 24 12 2nd WART Test LCD Test Brightness Touch Calibration 5 point 1 5 64 32 8 418 touch Y 476 2 5 16 8 amp 2H5b touch Y 791 375 112 8 58 177 touch YV 153 4 5 112 56 668 touch Y 154 575 16 56 Connected 4 16 36 Auto detect 115200 8 1 SCROLL caps Capture Print echo Automatically return to top menu upon completion
16. Jump Ea Project Directory Remember this setting gt Auto Let MPLAB IDE guess Add Files Create SubFalder Filter 5 2588 0 touch o 3 uart o Other Files 2 BEGV627M_DTP STA 2 BEGV amp 627M 5 _ BEGV627M DTP TRE DTP main OSYM 2 E scrn proc OS YM 1 TestPattern OS M Files 7 Symbols ICD 3 PIC z4FJe4Gan 02 User File s were created especially for this project use relative path CO System File s are external to project use absolute path BEGV627M User Manual 01 Preliminary 82 M r Step 5 After clicking Open button of Add files to Project dialog you can see all necessary object files have been add into your project like below picture Now you can start to develop your application program BEGV627M DTP MPLAB IDE v8 36 BEGV627M DTP mcw File Edit View Project Debugger Programmer Tools Configure Window Help uki mm A AE m Checksum 0 3451 BEGV627M_DTP mcw am Output Slee TET Build Version Control Find in Files MPLAB ICD 3 eA screen h sTzs8 T h E stddef h eA stdio h 3 eA string h e teskpattern h e touch h Bis Object Files pywm n 2 I r n 2 21 5 7588 3 tauch a uart o __ other Files 2 BEGVE27M_DTP STA E BEGV627M_DTP SYM I BEGV627M_DTP TR
17. What country region are you in new Tawan What area code city cade are you in now I you need to specify a carrier cade what is iE IF you dial a number ta access an outside line what iz IE The phone system at this location uses Tone dialing Pulse dialing Lancel Step 5 Click OK 2 xl Dialing Rules Bo The list below displays the locatione you have specified Select the location from which you dialing Locations My Location 02 Hem Edit Delete BEGV627M User Manual 01 Preliminary 60 _ M Ar Step 6 Enter the file name to store the hyper terminal settings System will auto extension name y Recycle Bin 4 PIC C Compiler 7 New Connection HyperTerminal File Edit Transfer H E i 5 26 MPLAB IDE Mew Connection d i Enter a name and choose an icon For the connection MPLAB IDE WES Please define a name and choose a icon for this connection Disconnected Auto de and click Yes to continue mq Start Ej E Control Panel New Connection 2 E 6 18 PM Step 7 Select COM port as appropriate Hyper terminal will pull down only valid COM ports L2 Recycle Bin d Compiler g 63 HyperTerminal File Edit Transfer
18. Mame Size PIC C Compiler Desktop Datal 92 436 KB Cabinet File i My Documents I5Setup dll 2 055 KB Application Exter My Computer jS MPLAB Tools v8 36 9 112 Windows Installe 2 My Network Places 25 mplabcert ee Image set a Recycle Bin BETI 3 783 Application IDE 1 MPLAB IDE 8 36 Description Setup Launcher Company Microchip Technology In File version 14 0 0 162 Date Created 2 16 2011 3 00 Size 3 69 Description Setup Launcher Company Microchip Technology In File versio 3 69 ME My Computer start E 2 2 My Computer C Documents and Se 2 BEGV627M User Manual 01 Preliminary 29 Aor MN 5 Tools ESSEN MPLAB Tools Tools HPLAB Tools 8 35 Installation Copyright 2009 Microchip Technology Inc nights reserved Welcome to the MPLAB Tools Installation is strongly recommended that you follow these directions 1 Quit all applications before installing this product 2 Uninstall all previous MPLAB Tools 6 4 versions 3 Disable any anti virus software running on the machine Cancel LAB Tools MPLAB Tools X MPLAB IDE License Agreement MICROCHIP IMPORTANT MICROCHIP WILLING TO LICENSE THE MPLAB IDE SOFTWARE AND ACCOMPANYING DOCUMENTAT
19. User Manual 01 Preliminary 85 _ BOLYMIN on EN 5 3 2 C eeprom function Header file i2ceeprom h object file 12 i2ceeprom o i2clnitial Function Initial I2C functions User should call this function before using I2C functions Parameters None Return value None i2cReadByte Function Read 1 byte data from 2 eeprom Syntax uint8 t i2cReadByte uint8 t uDevAddr int16 nAddr y Parameters uDevAddr lC device address address of eeprom on board are A2nex A4 ne nAddr Address will be read Data reading from eeprom i2cWriteByte Function Write 1 byte data to IC eeprom Syntax void i2cWriteByte uinta t uDevAddr int16 nAddr uint8 t byData Parameters uDevAddr lC device address address of eeprom on board are 2 Address to write in byData Data to be written Return value None i2cIsSsEEPROMExist Function Check if the specified address eeprom is available or not Syntax uint8 t i2cISEEPROMExist uinta t uDevAddr uDevAddr IC device address address of eeprom on board are A2nex TRUE Eeprom with uDevAddr address is available FALSE Eeprom with uDevAddr address is not available BEGV627M User Manual 01 Preliminary 86 _ ww f 5 3 3 LCD control function BEGV627M Header file ST7588T h Object file ST7588T o Icdinit Function Initiali
20. Wizard i Ej E Mew Open Jutput Close Set Active Project Project Wizard Welcome This wizard helps you create or configure a new MPLAB IDE project E BEGV627 id Version Control Find in Files Package in zip Clean Make F10 Build CCS C Help F11 Build Configuration gt Build Options gt To continue click Next m T OM ON Save Project Save Project As Add Files to Project Add New File to Project Remove File From Project gt oab sab IPO dcnovzc J Files 1 After creating a project user need to create empty file by the of project in the directory of project so that the HEX file could be created successfully For example Project DTP 627M needs a file named DTP 627M in the same directory 2 Please include config h for all C file 3 We need to select device type of MCU while creating new project at the screen shown as follows Step 5 For BEGV627M select PIC24FJ64GA002 as device Project Wizard Step Select a device Device BEGV627M User Manual Ver 01 Preliminary 78 _ 5 2 Introduction of library Bolymin supports device driver library for application development of BEGV627M Refer to the following figure for program hierarchy Application program 5 2 1 Summary of modules of l
21. all Step 6 User may change the generated source code in the editor as appropriate There are 2 methods to use the generated source code in your program Method 1 Save the source code as a C file by button then include this C by include statement in the source code of your program For example include demo Method 2 Copy all source code into system clipboard by Select all and Copy buttons then paste it into your code BEGV627M User Manual 01 Preliminary 93 M O Appendix Important Notice We recommend using CCS compiler ver4 093 and MPLAB IDE ver8 36 The transfer cable for BEGV627M is 102 0 operate our BEGV627M the customer will need MPLAB ICD3 and MGIO2 0 ow Bolymin Inc www bolymin com tw info bolymin com tw BEGV627M User Manual 01 Preliminary 94 oun s w Appendix C Notes when running under Windows 7 1 User may notice the ICD3 status LED blinks when running under windows 7 and the OS does not recognize ICD3 as a valid USB device To fix the problem install ICD3 from the following folder for 32bit OS find driver under c Program Files Microchip MPLAB IDE ICD3 drivers for 64bit OS find driver under c Program Files Microchip MPLAB IDE ICD3 VistaXP64 2 There 15 no native hyper terminal program under windows 7 Users may copy hy
22. draw power directly from ICD3 Note external 5Vdc should be connected Remember to change ICD3 setting using MPLAB as stated at step 10 of Chapter 4 5 MGIO2 05 Either configuration works configuration 1 might be easier if there is no source code change involved Also configuration 1 provides a 5 volt rather than 3 3volt on target device BEGV627M User Manual 01 Preliminary 57 M r Use Hyper terminal to operate the demo program BEGV627M supports touch panel Bolymin calibrated the touch panel before shipping out User may try demo program by using touch panel as input device Please use hyper terminal for terminal emulation and kernel debugging The PC keyboard can then emulate as a input device to 627 Here 15 the step guide Step 1 Make sure you have at least one RS 232 serial port available The following example shows a is available n system Properties E 21x System Restore Automatic Updates Remote Action View Help General Computer Hardware Advanced eb e evice Manager m 3 488 Batteries The Device Manager lists all the hardware devices installed E Computer your computer Lise the Device Manager to change the properties af any device He Disk drives Fl Display adapters Device Manager SEN DVD CD ROM drives H IDE ATA ATAPI controllers Keyboards Driv
23. 2010 4 02 212412011 3 40 212412011 3 40 12 16 2009 4 21 2 24 2011 3 40 PM 2 24 2011 3 40 PM computer BEGV627M User Manual 01 Preliminary 37 _ w 4 4 Compile source code using MPLAB IDE ver 8 36 Please follow the step guide to make your 1 successful compilation Step 1 click left icon on desktop Start All programs Microchip MPLAB IDE c Remote Assistance 15 C Compiler windows Media Player A 8 Windows Messenger PI Tour Windows Windows Movie Maker MPLAB IDE fj 2 MPLAB IDE Help All Programs f Microchip A MPLAB C32 iF setup Location C Program Files Microchip MPLAB IDE Core wTCTCSs ASOEa MPLAB IDE 9 26 Visual Procmd Log OFF Turn OFF E L3 Computer Ir Maestro Documentation AS MPASMWIN x 3 13 PM H Start Step2 Click File Open Workspace browse into c BEGV627M prg folder and open BEGV627 DTP mcw Open Workspace MPLAB IDE v8 35 Look in File Edit View Project Debugger Pragrar ay My Recent Documents Mew Desktop Add File bo Project Dacuments Open 3 Computer Close Documents lt Local Disk C m em BEBVB2 M Save Save All CEr H SHilE4 5 w A BEGVOZ7M DTP mc
24. 5 RJ 11 ICD3 MGIO2 05 DE Here are requirements for HEX code EEPROM programming Hardware Requirements HW Item PC with COM port CHE Requires RS 232 port 22 1 __ r0 102 0 1 1 Straight through 5 232 extension cable DB 9 maile DB 9 male or use a USB serial cable SWitem Description o 1 Programming IDE MPLAB IDE 4 83 by Microchip 2 Terminal Emulation Hyper Terminal XP build in M Bolymin DEMO program Demo source code DLL and program HEX BEGV627M User Manual 01 Preliminary 45 _ 57 w Step 1 Connect RJ 11 and A USB cable to ICD3 Step 2 Connect RJ 11 and cables to 02 0 i Se 4 k Step 3 Connect MGIO2 0 to PC using a RS 232 cable m 2 BEGV627M User Manual 01 Preliminary 46 2 BOLYMIN wx Step 4 Connect MGIO2 0 to BEGV627M E POWER ACTIVE STATUS PA AT 5 PLAB ICD T TEL 8 inva r mut BEGV627M User Manual 01 Preliminary 47 ww ff Step 5 Open MPLAB IDE v8 36 Click on Configure Select Device MPLAB IDE v8 36 Untitled Workspace File Edit View Project Debugger Programmer Tools Window Help
25. BEGV627M USER MANUAL LCD Embedded System Microchip PIC24FJ64GA002 MCU 64KB program flash 8KB SRAM I 64KB Additional 64KB option Dot Matrix 128 64 I C STN LCD w white LED backlight 1 RS232 shared RS232 RS422 RS485 GPIOs 4 wire resistive touch panel Operating at 150 mA Free SDK Support Jovis Bolymin Inc www bolymin com tw info bolymin com tw oun ww Ar Table of Content Chapter _ __________ _ 6 8 1 2 ____ ____ __ _ __________ 8 9 Mechanical DIM 5 __ _________ 10 IP 12 Orderimg InrorrmidtloEi _ ___ ________ ______ 12 Chapter INST 13 2 1 Solin 14 2 1 1 Connectors amp Pin Definition of CN1 14 NAR Ie RE P 15 2 2 PIE VS Function IAS __ _____ _ _ PE 17 221 POWerTECD BSCKIIBIIE ______6_ _ 17 2 2 2 IM System Programming ______ ____ _ 17 5 22 ___________ ________________ 18 BD Fel CEE PROV 18 PERS P eT eee eT eT ee n ere _ _____ ___ tT 19 DEIN Io 19 Chapter 3 MC
26. Disk Free space 4 85 GB 12 7 MB 4 Computer BEGV627M User Manual 01 Preliminary 42 Advanced users may start playing with source code change Demo into Moon for instance Then recompile to generate new program HEX and write it into EEPROM You will see the change takes effect as expected BEGV627M DTP MPLAB IDE v8 36 File Edit View Project Debugger Programmer Tools Configure Window Help see SASAE BEGV627M_DIP mcw C BEGV627M pre scrn_proc c 0 82 0 0 92 0 82 0 0 2 0 82 0 ID mans i const unsigned char gImage 81111 OX21 0X01 0XK0B 0x00 0x08 0x0 m c MM XFE 0X82 0XFA 0XAA 0X9z 0X82 0XF5 0XD6 0XDE DX8z 0XFE AB TestPattern c Show mena at device side Header Files void DeviceShowMenn E 24 2646 002 switchic amp Screen E config h ledDisplayClr ii clear led screen 8 ctvpe h B i2ceeprom h El screen h srzsaar h E stddef h i stdio h E string h E Eeskpattern h E touch h uark h Object Files bklighk pwrn o case SCR MAIN sprintfiszS2tringq PE EST wl 1 j ledPrintStringil 0 szString strleniszStringi sprintfiszS5tring 1 2425121 1 ledPrintstring O 2 sz tring strleni szString sprintfiszString z znd Test lcdPrintString
27. E 3 DTP_main OSYM 2 scrn prac TestPattern OSYM Files Symbols 1 24 1646400 IPO denaovzc BEGV627M User Manual 01 Preliminary 83 _ ww r 5 3 Function Primitives 5 3 1 UART function Header file uart h Object file uart o uartlnit Function Initial UART Syntax void uartlnit uint8 t byPort uint32 t uBaudrate uint8 t byParity uint8 t uDatabit uint8 t uStopbit uint t aTxMode Parameters byPort UART PORTO 1st Uart port UART PORT 2nd Uart port nBaudrat Baud rate ex 9600 byParity Parity Check None EVEN O ODD uDatabit data bit 5 8 uStopbit data bit 1 2 nTxMode Transmission Mode OorFALSE RS232 1 TRUE RS485 RS422 Return value None uartSetBaudRate Function Set up baud rate for assigned UART port Syntax void uartSetBaudRate uint8 t byPort uint32 t uBaudrate Parameters byPort UART PORTO 1st Uart port UART PORT 2nd Uart port nBaudrate Baud Rate ex 9600 Return value None uartSendByte Function Send 1 byte from assigned UART port Syntax void uartSendByte uinta t byPort uint8 t txData y Parameters byPort UART PORTO 1st Uart port UART PORT 2nd Uart port txData Byte to be sent Return value None BEGV627M User Manual 01 Preliminary 84 uartSendString Function Send st
28. EBVB27M em Desktop E CD Drive 0 3E c on vboxsvr P lt 59 d drive on vboxsvr 1 3 e_dive on vbossvr 2 Shared Documents Recent Documents Documents 25 My Documents a Network Places m MPLAB IDE 8 36 Computer Network Files of type All Load Files hex cod elf I BEGV627M User Manual Ver 01 Preliminary 53 And select the HEX file BOL lib BEGV627M DTP cof Mu Recent BEGv627M DTP hex Documents Documents Computer b File name BEGVB2 M OTP hex ka Open Files of type All Load Files caf cod elf Step 12 Click on icon to program the program code Observe the output windows should display Programming Verify complete upon completion of a successful HEX programming m MPLAB IDE v8 36 File Edit View Project Debugger Programmer Toole Configure Window Help Checksum SEXO Untitled Workspace Program Belg Output mI Buid Version Control Find in Files MPLAB ICD 3 MPLAB KD 3 detected MPLAB ICD 3 Connected ICD 3EnCOA 5 You rust connect to a target device to use I MPLAB ICD 3 Device ID Revision 00005042 BEGV627M User Manual 01 Preliminary 54 y Ee r i Step 13 After HEX code programming tar
29. FJXXGAO002 13 PGD2 EMUD2 TDI RP10 CN16 PMD2 RB10 vss 15 VCAP VDDCORE OSCI CLKI CN30 RA2 16 DISVREG 7 OSCO CLKO CN298 PMAU RA3 TDO RPS SDA1 CN21 PMD3 RBS 10 11 12 13 14 VDD PGDS3 EMUDS3 RP5 ASDA1 CN27 PMDT RB5 PGCS3 EMUCS3 RP6 ASCL1 CN24 PMDG RB6 RP7 INTO CN23 PMD5 RB7 SOSCI RP4 PMBE CN1 RB4 c TCK RP8 SCL1 CN22 PMD4 RB amp SOSCO T1CK CNO PMA1 RAA to BEGV627M User Manual 01 Preliminary 21 f 3 2 MCU Port Mapping 3 2 1 LCD Controller Table 3 2a MCU PIC24FJ64GA002 LCD Controller RP2 SDA2 3 LSDA RP3 SCL2 4 LSCL 152 O TDO SDA1 RP9 15 LCD RST 3 2 2 Touch Panel Table 3 2b MCU PIC24FJ64GA002 Touch Panel ANO 27 X1 CN3 1 AN1 28 Y1 CN3 2 AN11 21 X2 CN3 3 AN12 20 Y2 CN3 4 3 2 3 RS 232 RS 422 RS 485 Table 3 2c MCU PIC24FJ64GA002 RS 232 422 485 RP14 22 RX0 CN2 6 RP15 23 TXO CN2 4 RP6 PGC3 12 422 TN 485N RX1 CN2 9 RP5 PGD3 11 422TP 485N TX1 CN2 7 Table 3 2d MCU PIC24FJ64GA002 RS 485 RA4 T1CK 9 Enable RS 485 3 2 4 Backlight PWM Table 3 2e MCU PIC24FJ64GA002 LED backlight RP10 18 Backlight PWM 3 2 5 I2C EEPROM Table 3 21 MCU PIC24FJ64GA002 EEPROM RP2 SDA2 3 EEPROM SDA RP3 SCL2 4 EEPROM SCL RP8 TCK 14 EEPROM WP 3 2 6 General Purpose I O Table 3 24 PIC24FJ64GA002 General Purpose I O RP4 8 2 8
30. ION OFFERED TO YOU ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE FOLLOWING TERMS THE TERMS OF THIS LICENSE CLICK I ACCEPT AND PROCEED WITH THE DOWNLOAD OR INSTALL IF YOU DO NOT ACCEPT ITHESE LICENSE TERMS IDO NOT ACCEPT AND DO NOT OPEN DOWNLOAD OR INSTALL THIS SOFTWARE MPLAB IDE LICENSE accept the terms of the license agreement t donot accept the terms of the license agreement lt Back BEGV627M User Manual Ver 01 Preliminary 30 Aor MN Tools Setup Type Select the setup type to install MiCROC HIP Please select a setup type All program features will be installed Requires the most disk space Select which program features you want installed Recommended for advanced users la A RE ILES RELI EL W pq pee MPLAB Tools Choose Destination Location Select folder where setup will install files MiCROC HIP iB x Setup will install MPLAB Tools v8 35 in the following folder install to this folder click install to a different folder click Browse and select another folder Destination Folder C Program Files Microchip Browse Back gt Cancel BEGV627M User Manual 01 Preliminary 31 w 2 m Tools MPLAB Tools Application Maestro License MICROCHIP
31. MAESTRO SOFTWARE LICENSE AGREEMENT YOU ARE PERMITTED TO ACCESS THE SOFTWARE AND DOCUMENTATION ONLY IF YOU ACCEPT THE TERNS AND CONDITIONS OF MICROCHIP S NON EXCLUSIVE LICENSE AGREEMENT FOR MAESTRO SOFTWARE HEREAFTER THE AGREEMENT IF YOU AGREE TO THE TERMS OF THE AGREEMENT INDICATE gt f accept the terms af the license agreement Print da nat accept the terms of the license agreement Back M est gt Cancel start 3 2 My Computer L C iDacuments and Tools 2 PLAB Tools x HPLAB C32 License MICROCHIP B 3 08 PM IMPORTANT MICROCHIP WILLING TO LICENSE THE C32 C COMPILER SOFTWARE AND ACCOMPANYING DOCUMENTATION OFFERED TO YOU JONLTY ON THE CONDITION THAT YOU ACCEPT ALL OF THE FOLLOWING TERMS TO ACCEPT THE TERMS OF THIS LICENSE CLICK I ACCEPT AHD PROCEED WITH THE DOWNLOAD OR INSTALL IF YOU DO NOT ACCEPT THESE LICENSE TERMS CLICK NOT ACCEPT AND DO NOT DOWNLOAD OR INSTALL THIS SOFTWARE NON EXCLUSIVE SOFTWARE LICENSE AGREEMENT FOR MICROCHIP MPLAHG C32 C COMPILER SOFTWARE accept the terms of the license agreement Print t do not accept the terms of the license agreement Back gt Cancel La My Computer 2 C Documents and Settin Tools 2 lt 0 3 08 PM BEGV627M User Manual 01 Preliminary 32 Aor MN
32. O CHANGE WITHOUT NOTICE BOLYMIN INC RESERVES THE RIGHT TO MAKE CHANGES WITHOUT FURTHER NOTICE TO ANY PRODUCTS HERIN TO IMPROVE RELIABILITY FUNCTION OR DESIGN BOLYMIN INC DOES NOT ASSUME ANY LIABILITY ARISING OUT OF THE APPLICATION OR USE OF ANY PRODUCT OR CIRCUIT DESCRIBED HERIN NEITHER DOSE IT CONVEY ANY LICENSE UNDER ITS PATENT RIGHTS NOR THE RIGHTS OF OTHERS CUSTOMERS ARE ADVISED TO CONSULT WITH BOLYMIN INC OR ITS COMMERCIAL DISTRIBUTORS BEFORE ORDERING BOLYMIN INC 5F 38 Keya Road Daya Dist 42881 Taichung City Taiwan R O C WEB SITE http www bolymin com tw 886 4 2565 8689 FAX 886 4 2565 8698 BEGV627M User Manual Ver 01 Preliminary 100
33. P mcp EE Directories Custom Build Trace CCS C Compiler Directories and Search Paths Show directories for Include Search Path 5 Browse For Folder 2 Select a directory 5 Local Disk C BEGven6M BEGV627M c3 BOL lib 627M BEGV6z9M BEGV639M Documents and Settings Folder BOL lib 627M Make New Folder Suite Defaults lt Build Directory Policy Assemble Lompile source file directory link in output directory Assemble Lompile Link in the project directory BEGV627M User Manual 01 Preliminary 81 ww_ w r Step 4 Click Object File of mew window shown below by right clicking mouse and select Add Files to bring up Add Files to Project windows Click on the o object file and click open button to add necessary object files into your projec Move into the directory of object files of device library and select necessary object files BEGV627M DTP MPLAB IDE v8 36 BEG File Edit wiew Project Debugger Programmer T Sheen Add Files to Project BEGV627M_DTP mew fE 0 r Look in lib 627M i2ceeprom h DTP main a i screen h scr proca x ST7588T h TestPattern o stddef h stdio h e string h testpattern h touch h Ej uart h Object File File name Files of type Object Files 0
34. ROLL CAPS Capture Print echo 0 to return to top menu 5 to enter Touch BEGV627M User Manual 01 Preliminary 70 2 BOLYMIN s w Step 21 Now use light pen to touch from left to right screen you will observe the DX value Increases as the click goes east bound g C3 HyperTerminal x File Edit view Call Transfer Help Step 22 Use light pen to touch from top to bottom note the DY value increase as the click goes south bound C3 HyperTerminal x File Edit wiew Call Transfer Help BEGV627M User Manual 01 Preliminary 71 M r Step 23 0 to return to top menu 6 to calibrate 5 point C3 HyperTerminal File Edit view Call Transfer Help 24c512 gt 2nd WART Test LCD Test Brightness Touch Calibration 5 point gt oint 1 5 64 32 Connected 0 50 27 Auto detect 115200 8 1 SCROLL CAPS NUM Capture Print echn Press and hold box with cross for around 2 seconds by the order to center upper left upper right lower right lower left After this calibration demo program auto return to top menu 2 CP upper left HyperTerminal File Edit View Transfer Help Fri 4 m T m E 4246512 2nd Test LCD Test Brightness Touch Calibration lt 5 gt Point 1 5
35. Terminal File Edit View Transfer Help Dll 218 FF EXIT P FREU MH 1 55 2 AA 3 HH 4 FF Connected 0 03 26 Auto detect 115200 8 1 SCROLL Caps Capture Print echa 2 Step 15 Press to browse content of previous page which is with a starting address of 0x00 Confirm that previous write operation of OxOO data to 0 00 address page is indeed succssful g C3 HyperTerminal File Edit View Transfer Help P FREU H HE 3 HH 4 FF Connected 0 03 46 Auto detect 115200 8 1 SCROLL Caps NUM Capture Print echa 2 Press 0 0 to return to top menu BEGV627M User Manual 01 Preliminary 66 Step 16 Press 3 to enter LCD test There are 8 patterns available for the demo gt C3 HyperTerminal File Edit View Transfer Dis 215 Test Full U line H line Half Cross dot Show char Picture 1 Picture 2 EXIT m Cn 2 0 04 56 Auto detect 115200 8 1 SCROLL Caps Capture Print echo Step 17 Cycle through 1 to 8 to observe the various demo patterns as shown next page HyperTerminal File Edit View Call Transfer Help Test Full pass dat Show char Picture 1 Picture 2 ERIT isplay OK Connected 0 05 34 Auto detect 115200 8 N 1 SCROLL Caps Ca
36. U port 1616 M ____ ________ __ ___ _ 20 S CONE U IU uuu un ______66__ ________ T 21 32 2 MECU gt E 22 a ER 22 9 22 TOU i _______ 22 5 2 3 RS 252 RS 4227RSd8D5 22 S 2 ______________ 22 3 2 5 ERE 22 3 2 6 General Purpose O uuu uu 22 Chapter 4 Software Development Tool amp Utility sees 23 C _____ ______6__ _ 24 2 2 Install MPLAB iere itii E masawan khapaq d 29 4 3 Install Bolymin Demo Code and library SDK esses 36 4 4 Compile source code using MPLAB IDE ver 8 36 02 002 0 2 16 nnns 38 4 5 Programming HEX code USING CD 3 44 AC Une Hyper uu u u ______ _ 55 46 Hyper Terminal uu ____ MEN OP UMIM MUI 56 BEGV627M User Manual 01 Preliminary 2 oun r s w Chapter gt Software Reference Ma uql 76 5 1 Setup development environment 77 5 2 tr6Od cti n _ __ 79 5 2 1 Summary of modules of
37. User Manual 01 Preliminary 97 2 Hyper Terminal copy hypertrm exe and hyptertrm dll from XP into folder and open the executable Organize Open Burn New folder S Favorites 3 Nam Date modified Type EE Desktop hypertrm dl 2008 4 14 LF 08 Jg Downloads hypertrm exe 2001 8 23 F 09 Application Recent Places mspaintexe 2008 4 14 08 Application EE Desktop Make sure the serial protocol is set right 115200 N 8 1 No flow control on correct COM port The resulting hyper terminal should look like the following c1 HyperTerminal File Edit View Call Transfer Help Dg 5 DEMO TEST 629M ver 1 01 1 126 24c512 2 2nd UART Test 3 LCD Test amp Contrast 00 00 28 Auto detect 1152008 N 1 SCROLL CAPS NUM Capture Print echo Now you are all set to run the development environment under Windows 7 Enjoy your ride with Bolymin BEGV6xx series display embedded systems BEGV627M User Manual 01 Preliminary 98 www w END of BEGV627 M User Manual BEGV627M User Manual 01 Preliminary 99 ww r ww Copyright Copyright 2010 BOLYMIN INC All rights reserved No part of the materials may be reproduced in any form or by any means without prior written consent of BOLYMIN INC Disclaimer THE CONTENTS OF THIS DOCUMENT ARE SUBJECT T
38. able offers sufficient ROM size for designer to develop software and operate i2c controlled dot matrix LCD and 3 GPIOs IOA IOC BEGV627M is more than simply a Microchip development board furthermore it integrates display and so that developers may start her application without the hassle of hardware integration Henceforth a quick time to market for customers innovative product is ensured 1 2 Board Layout This layout shows the location of each important IC connector and jumper Please refer to chapter 2 for further information on jumper and connector Drawing 1 2 5 2 1 mas Bas CSS DE n 4 Al E jp 8 V zm MI BEGv627M v91 WEE CNI 6 7 RS232 CN2 IO CN5 2 RS422 485 Microprocessor EEPROM CN3 S CN1 ISP C X BEGV627M User Manual Ver 01 Preliminary 8 w ws 1 3 Block Diagram Drawing 1 3 PIG 16 bit Microprocessor Default 64KB ISP Flash Touch Panel 8KB Internal SRAM C Rs232 128 x 54 STN RS 422 ST7588T LCD 64KB x 1 EEPROM e RS 485 by Option 64KB x2Optional BEGV627M User Manual Ver 01 Preliminary 9
39. as PICCS Press the Finish button to exit this installation Using previous C Documents and Settings martins amp pplication Data PICC pew ini Pit Dir C Documents and Settings martins amp pplication Datas PICC Projects File associations found and not changed Checking Registration Files Looking for MPLAB Did not find MPLAB Setup utility complete start 5 Xj PIC COMPILER C lt 2 47 PM CCS Registry and INI file Installation E Install DIR C Program Files PIC User C Documents and Settingssmartins amp pplication Data PI ELA Using previous C Documents and Settingssmartins amp pplication Datas PICC pew ini Fit Dir C Documents and Settings martin Application Data PICC Projecta File associations found and not changed Checking Registration Files Looking for MPLAB Did not find MPLAB Setup utility complete Click Next to complete installation of CCSC 4 093 BEGV627M User Manual 01 Preliminary 27 2 BOLYMIN www Now check the CCSC complier version Le Internet Internet Explorer Documents Fe Recent Documents E mail 2 Outlook Expres Set Program Access and Defaults Windows Catalog Compiler Versio T windows Update Accessories MSN Games Oracle VirtualBox Gues
40. c essym proc a scrn proc asym W TestPattern c TestPattern err TestPattern esvm W Testpattern h TestPattern o TestPattern osym Tvpe File Folder File Source File Object File ERR File File Object File Output File Microchip MPLAB Pr Microchip MPLAB WW MPT AGS File Source File Output File Qutput File TAGSRC File Output File Object File Object File Object File Object File Object File Object File Source File Source File File ESYM File File SYN File Source File File Source File File ESYM File File SYN File Source File File File Source File File SYN File 12 7 MB Date Modified 2 23 2011 6 19 PM 12 16 2009 4 21 PM 12 16 2009 4 21 PM 212412011 3 41 PM 212412011 3 41 PM 212412011 3 41 PM 212412011 3 41 PM 212412011 3 41 PM 2123 2011 6 24 PM 212412011 3 39 3 9 2010 5 43 212412011 3 41 2 24 2011 3 41 PM 212412011 3 41 PM 3 9 2010 5 43 PM 2 24 2011 3 41 PM 12 24 2009 9 38 AM 12 24 2009 9 40 AM 12 24 2009 9 41 AM 31912010 5 01 3 9 2010 5 02 31912010 5 48 3 9 2010 4 00 3 9 2010 5 48 212412011 3 41 PM 212412011 3 41 PM 212412011 3 41 PM 2124 2011 3 41 PM 3 9 2010 5 03 PM 12 16 2009 5 47 3 9 2010 4 34 212412011 3 41 PM 2 24 2011 3 41 212412011 3 41 PM 2 24 2011 3 41 PM 3 9
41. crochip MPLAB IDE ICD3 Drivers rOwse You should check your manufacturer s website for updated driver software for your device Include subfolders Install this driver software anyway Only install driver software obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or steal information i gt Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device Wait for a while for driver installation user will see the following screen upon completion Update Driver Software Microchip MPLAB ICD3 _ o Windows has successfully updated your driver software Windows has finished installing the driver software for this device y Microchip MPLAB ICD3 Note the status LED on ICD is now off and the device manager will show ICD3 driver installed File Action Help e 5 G8 2 8 5 4 wi b Computer b ac Disk drives Display adapters p i DVD CD ROM drives b Human Interface Devices gt IDE ATA ATAPI controllers MicrochipTools Microchip MPLAB ICD3 Monitors Network adapters 4 Other devices gt Ports COM amp LPT Processors b E Sound video and game controllers b System devices b y Universal Serial Bus controllers BEGV627M
42. e 2 1 2f 6 Receiveroffirst RS232 with diver 1 3 noinveringreceiverof R8422 1 When is configured as RS422 it act as no inverting transmitter 7 When is configured as RS 485 it acts as positive differential IO When is configured as RS232 Transmitter of second RS232 When is configured as RS422 it acts as inverting transmitter When is configured as RS 485 it acts as negative differential IO When is configured as RS232 Receiver of second RS232 Description Auxiliary moment reset for external input I O port PIC24FJ64GA002 port RP4 8 I O port PIC24FJ64GA002 port 7 13 Note that there is a series resistor of 100 ohm on the 3 GPIOs also with ESD protection circuit The RS 232 voltage is elevated from CMOS 3 3v to TTL 5 volt level through ICL3232 BEGV627M User Manual 01 Preliminary 16 Jorn rr s 2 2 Pin vs Function Diagram 2 2 1 Power LCD Backlight Diagram of system power supply 2 2 2 In System Programming Customer need to buy Microchip ICD3 for ISP Also need to buy converter ISP cable to connect ICD3 to ISP port on 627 OC GHD GHD BEGV627M User Manual Ver 01 Preliminary 17 BOLYMIN w 2 2 3 5 232 627 offers RS 232 port to contact PC or other RS232 device directly without ICL232 RSA Hcet dave 2 2 4 2 BEGV627M offers C port Via this I C port designer may con
43. ect Project Set Language Tool Locations to confirm default complier is CCS C v4 093 complier User may not need to change the setting if she follows chapter 4 1and 4 2 installation procedure since installation program will automatically configure accordingly BEGV627M DTP MPLAB IDE v8 36 Seles Project Wizard TEE g E Checksum 0 69 3 Mew Open Clase Set Active Project Output x Quickbuild no File Build Version Control Find in Files MPLAB ICD 3 Package in zip Clean Make Build All CCS C Help Build Configuration Build Options Save Project Save Project Add Files to Project Add New File to Project Remove File From Project Select Language Toalsuite Set Language Tool Locations version Control PIC24FJ64GA0D2 sab IPO dcnovzc Select Language Joolsuite Active Toolsuite LCS Compiler Far PILTU0 12714 15 18 24 dsPIC30 dsPI C33 Ww Toolsuite Contents CES Compiler fecec exe Location C Program fles PiccSlCSC exe Store tool locations in project BEGV627M User Manual 01 Preliminary 77 8 mwwrD s w Step 4 Select Project Project Wizard to create a new project and start development Click Next to skip the Welcome screen 627 _ MPLAB IDE v8 36 File Edit View 27245 Debugger Programmer Tools Configure Window Help L Project
44. er Signing lets you make sure that installed drivers are uds g dg compatible with Windows Windows Update lets you set up EY Monitors how Windows connects to Windows Update for drivers Eg COM amp LPT Driver Signing Windows Update 2 Communications Port COMS Printer Port LPT13 m Processors Hardware Protiles I Sound video and game controllers Hardware profiles provide for to set up and store M System devices different hardware configurations Universal Serial Bus controllers Hardware Profiles Cancel Apply BEGV627M User Manual 01 Preliminary 58 2 BOLYMIN Step 2 On XP PC Start gt All programs Telecommunication HyperTerminal or Windows R hypertrm Recycle Bin the name of a program Folder document or gt Internet resource and Windows will open it Far you Open hypertrm OK Browse Ed e PIC C Compiler MPLAB IDE Internet Internet Explorer Documents Set Program Access and Defaults 5 E mail il Outlook Expres W Windows Catalog windows Update lt Compiler versia Accessories k fan Accessibility rm Games k f Communications F amp HyperTerminal 3 MSN Oracle VirtualBox Guest Additions F Entertainment k e Network Connections Startup
45. f specified area UNIT pixel y_end Y coordinate of the bottom right point of specified area UNIT pixel pic data Byte value will be filled Mode DRAW NORMAL Fill input value normally DRAW REVERSE Reverse the input value and then fill it on the specified area Return value None IcdPrintString Function Print input string to specified location of text layer Syntax void IcdPrintString uint8 t start uint8 start char string uint8 t str count Parameters x start X coordinate of start location that input string will be printed UNIT character 8 8 pixel y start Y coordinate of start location that input string will be printed character 8 8 pixel string string will be printed to LCD str count character count of input string Return value None IcdDrawBit Function ON OFF the pixel on specified location of graphic layer Syntax void IcaDrawBit uint t x 16 t bit value Parameters X X coordinate of the location will be drawn UNIT pixel y Y coordinate of the location will be drawn UNIT pixel bit value 1 ON the pixel 0 OFF the pixel Return value None IcdDrawRect Function Draw rectangle by single line on graphic layer Syntax void IcdDrawRect uinti6 t start uinti6 t start uint t x end uintG t y end Parameters X coordinate of the top left point of rectangle UNIT pixel Y coordinate of the top left point of rectangle UNIT pixe
46. from ICD3 and observe the output windows message as follows blue LED on ICD3 is off 627M LCD display is off MPLAB IDE v8 36 File Edit View Project Debugger Programmer Tools Configure Dull 2 Ad A Untitled Workspace Output MPLAB ICD 3 MPLAB ICT 3 detected Connecting to MPLAB KD 3 Fino ware Verson 01 25 20 Firra vare dsPIC33FAZMEAZAH 5 You must connect to a target device to use MPLAB KT 3 Device ID Revision 00005042 Now switch back to powered by ICD3 Output MPLAB ICD 3 Build Version Control Find in Files 3 detected Connecting to MPLAB KT 3 Fiona ware Sule Version 01 25 20 You must connect to a target device to use MPLAB 3 Device ID Revision 00003042 Target Eernowed Device ID Revision 00003042 BEGV627M User Manual 01 Preliminary 52 wa Step 11 Select the Hex code for programming MPLAB IDE v8 36 Output MEA Edit View Project Debugger Programmer To 104 Mew File to Project D3 Ct E Dave Cales save Open Workspace save Workspace HOUSE save Workspace Close Workspace Import k Recent Files Recent Workspaces Exit Browse into c BEGV627M prg folder Look ir Documents P Computer gt Local Disk B
47. get device is reset and BEGV627M LCD should display as follows For more detail operation about ICD3 please also refer to Micrcochip URL http www microchip com stellent idcplg ldcService SS GET PAGE amp nodeld 1406 amp dDocNa me en537580 amp redirects icd3 In case user wanted to change to folder structure remember to change mcp file with appropriate folder name Traverse through the mcp and modify target folder as appropriate BEGV627M DIP mcp Notepad File Edit Format View Help HEADER magqic caaokle i1566EGGB 7 E 7 65 46898 GEBR U GB258288905A13 file versionszl E dewvice PIC24FJ64dGAQ002 PATH INFO BuildbirPalicysBuildpirrssourcaenpir dir src BEGV627M User Manual 01 Preliminary 55 w 4 6 Running Hyper Terminal After EEPROM programming is done disconnect ICD3 and power target device using 5Vdc Now connect RS 232 from convert board to XP Win7 PC Photo applies configuration 1 see next page BEGV627M User Manual 01 Preliminary 56 _ M r Configuration 1 for hyper terminal operation As highlighted pink apply External DC 5v only J2 CN2 connection needed and RS 232 to support hyper terminal operation from XP PC end MGIO2 05 Configuration 2 for hyper terminal operation Alternative connection is have target device
48. hit FLASH SE Ah Gn board EEF ROM MGIO2 0 ISP converter board option BEGV627M User Manual Ver 01 Preliminary 5 _ M r Chapter 1 Introduction Abstract This chapter is to offer you basic information regarding 627 to help you incorporate BEGV627M into your system Contents include 1 1 Features 1 2 Board Layout 1 3 Block Diagram 1 4 Mechanical Dimension 1 5 Board Specifications 1 6 Ordering information BEGV627M User Manual 01 Preliminary 6 Sorin zs w BEGV627M User Manual Ver 01 Preliminary 7 1 1 Features 627 is designed based on PIC24FJ64GA002 microprocessor and ST7588T LCD controller Bolymin offers free Software Design Kit SDK for single chip program development Together with 128x64 I2C STN LCD and LED backlight built in this all in one LCD embedded system BEGV627M offers designer a ideal solution to save hardware software integration cost space and design time Armed with RS232 RS422 485 3 GPIOs BEGV627M may communicate a variety of devices and peripherals The BEGV627M is targeted for a industrial control panel for factory automation equipment electronics instrument HMI human machine interface office automation equipment medical equipment parking system ticketing system and so on 64 in system programmable ISP flash additional 64 extend
49. iF you uninstall MPLAB IDE Do vau want bo run the HI TECH C installer now IF nok you can Find it at Ci Program Files Micrachip HCPIC pro 9 65PL1 Cancel 23 6 My Computer 2 C Documents and MPLAB Tools x lt WU 3 0 PM Click No Bolymin driver supports only CCSC v4 093 binary object file and henceforth user have to apply the same compiler such that binary objects can be linkable lol xj ILL EXIT MPLAB Tools MPLAB Tools InstallShield Wizard Complete Setup has finished installing MPLAB Tools v8 35 on your computer Serer eee eee 7 Start My Computer 23 C Documents and Settin MPLAB Tools jcc QU 3 10 PM BEGV627M User Manual Ver 01 Preliminary 34 c Recycle Bin PIC C Compiler Device Support MPLAB ICD 2 USB Device Driver Installation Microchip On The web E MPLAB ICD 3 USB Device Driver Installation Programmer Command line Interfaces Release Notes MPLAB ICE 2k Parallel Port Driver Installation Release Mates for 16 Bit Language Tools For MPLAB I MPLAB ICE 2k USB Converter Device Driver Installation MPLAB IDE Assembler Release Notes d MPLAB ICE 4k USE Device Driver Installation ems MPLAB C Compiler For PIC32 MCUs v1 05 Release MPLAB PMS USB Device Driver Installat
50. ibrary 627 driver library consists of 5 modules There are several functions for each module Following table is a summary of modules in library UART Include all functions about uart h uart o operation of UART port 2 eeprom Read and write functions for C I2c h I2c o eeprom I2ceeprom h 2 LCD display LCD display fuctions ST7588T h ST 588T o PWM for oet or get current PWM value to bklight pwm o bklight pwm h backlight adjust backlight of LCD Touch Touch panel touch h touch o BEGV627M User Manual 01 Preliminary 79 5 2 2 How to use library in application program Please follow below steps to use device library provided by Bolymin 2 BOLYMIN M ww Step1 refer to 4 2 and 4 3 for Bolymin library and demo code installation Follow 4 4 to step 4 Step 2 Select Project Build Options Project BEGV627M DTP MPLAB IDE v8 36 BEGV627M_DTP mcw BEE Fie Edit view 777289 Debugger Programmer Tools Configure Window Help Project Wizard gi m a Mew Open Clase Set Active Project Output Quickbuild no asm File Build Version Control Find in Files MPLAB ICD 3 Package in zip Clean Make Build All CCS C Help Build Configuration Build Options scrn prac c DTP main c Save Project Save Project Add Files to Project Project Add New File to Project Remove File From Pr
51. igure correct setting and connection between BEGV627M and system application Contents include 2 1 Connectors BEGV627M User Manual Ver 01 Preliminary 13 MUN mmm 2 1 Connectors Connectors are the key link between BEGV627M and external devices Detail locations and functions of available connectors are tabled and illustrated below Connectors Table 2 1 Label Pin No ISB 5 In System Programming ISP __ 5100 Canne for GPIO m IO Reset and Power DF1 1C 12DP 2 57 Connect CN2 of 627M to J2 of MGI 02 for powering up target board 627M and for Hyper terminal operation 2 1 1 Connectors amp Pin Definition of CN1 Drawing 2 1CN1 CN3 16 CNS 1 e 05 ERR v _ TIT un iiu d p a di MEN a BEGV606M LI LI 1 K 1 B B Pin Definition noe 2 1 1a Reset MPLAB controllable voltage power target device from ICD3 ranges from 3 to 3 5 volt see page 48 a 6008 x 4 PGD 24 646 002 pot RPOIPGD1 1 5 PGC PIC24FJ64GA002 port RP1 PGC1 2 ISP Power amp Ground Table 2 1 1b VCC P 2 Logi power supply
52. il 3 szString strleni szBString sprintfiszString 3 LCD Test ledPrintStringil 4 zzString strleniszString Sif DEVICE TTPE BECVEZSM sprintfi iszString 4 Contrast Helse sprintfiszString 4 Brightness Bon endif Ua ledPrintString 0 5 szString strleniszString n E i ceeprom o ST75BBT n 1 FUNC TOUCH DN sprintfi szString 5 Touch Symbols i PIC24FJe4GADUZ sab IPO dcnovzc BEGV627M User Manual Ver 01 Preliminary 43 _ ww ff 4 5 Programming HEX code using ICD3 ER EM 1 mu i Inside ICD3 1 designer will get DVD ICD3 device 2 RJ 45 cable 3 and USB cable 4 Please purchase MGI02 0 4 a Bolymin proprietary converter board to interface between ICD3 and target device BEGV627M 5 You need RS 232 straight through cable pin 2 3 5 used for hyper terminal operation by PC Windows XP recommended Prepare a DC 5v 500mA adapter to connect to MGIO2 0 4 to supply power to target device User may custom may consider using 5volt from PC USB 7 as power source ICD3 is always self powered by PC USB cable 2 Note to remove 5 volt power from target board before ICD3 is connected to MGIO2 0 Configuration for EEPROM programming Apply only connection marked with blue BEGV627M User Manual Ver 01 Preliminary 44 cr ww a N2 amp CN1 R5 232 281
53. ion MPLAB ICD 2 Release Motes MPLAB REAL ICE USB Device Driver Installation MP LAE IDE MPLAB ICD 3 Release Notes Multi tool USB Device Driver Clean MPLAB ICE 2000 Release Notes Quick Start As MPLAB ICE 4000 Release Notes MPLAB IDE 64 Bit USB Device Drivers Installation MPLAB IDE LLL Select vi Recycle Bin T PIC C Compiler MPLAB IDE IDE a MPLAB IDE the IE IDE v8 36 is added on the desktop BEGV627M User Manual Ver 01 Preliminary 35 8 s w 4 3 Install Bolymin Demo Code and library SDK Here is the URL to download latest version of source code and libraries with pre configured compile environment http www bolymin com tw embedded BEGV627M rar Decompress the rar file into cABEGV627M and here is the file listing gt 627 folder contains version info README file and BTlmg2L CD a bitmap font conversion utility program Please refer to last appendix for step guide C BEGV627M NIE 3 File Edit View Favorites Tools Help Oo 7 m X i i aw Address Eacipecverm gt Folders x Mame Size Date Modified 3 se Local Disk 2 pra File Falder 2124 2011 3 41 PM E E BEGv6D6M BEGV627M_ReleaseDTP_20100316_ 1EB Text Document 2023 2011 6 34 E EC E 32 KB Applicatio
54. ion Draw all calibration cross marks on LCD Syntax uint8 t teuchDrawCalPoint POINT ptCal int n char bDraw Parameters Calibration Coordinates Calibration Coordinate No TRUE Draw all marks FALSE Clear all marks Return value None touchDrawCross Function Draw the specified calibration cross mark on LCD Syntax uint8 t touchDrawCross POINT ptCal int iNX char bDraw Parameters Calibration Coordinates The index of the cross will be draw TRUE Draw the specified mark FALSE Clear the specified mark Return value None touchDrawFixPoint Function Draw a fixed mark at specified position which finished calibration on LCD Syntax uint8 t touchDrawCross POINT ptCal int inx Parameters ptCal Calibration Coordinates n The index of the cross will be draw Return value None BEGV627M User Manual 01 Preliminary 91 Appendix A Simple operation guide of BTImg2LCD program Requires Windows XP or Win7 with framework 3 5 or later BTImg2LCD is a tool program provided by Bolymin to transfer a bitmap file to source code which could be used in user s program This document will describe the operation steps of BTImg2LCD program Step 1 User needs to create a monochrome bitmap file no grayscale by drawing software such as msPaint before running BTlImg2LCD program It is recommended that the width and height of the picture to be a multiple of 8 aif
55. l X coordinate of the bottom right point of rectangle UNIT pixel Y coordinate of the bottom right point of rectangle UNIT pixel Return value None BEGV627M User Manual 01 Preliminary 88 2 BOLYMIN ww 5 3 4 Backlight PWM control function Header file bklight pwm h object file bklight pwm o bkIPWM Init Function Initialize all parameters of backlight PWM control function User should call this function before use backlight PWM control functions Parameters None Return value None bklSetBrightness Function Set current brightness value of backlight Syntax void bklSetBrightness int8 t brightness Parameters Brightness New brightness value OFF backlight 1 100 Control the brightness of backlight Return value None bklGetBrightness Function Get current brightness value of backlight uint8 t bklGetBrightness Current brightness value of backlight 0 100 BEGV627M User Manual 01 Preliminary 89 _ BOLYMIN f 5 3 5 Touch function Header file touch h object file touch o touchlnit Function Initial Touch panel Syntax void touchInit int res x int res y Parameters res x X resolution of touch panel res y Y resolution of touch panel Return value None touchGet Function Read touch data from touch panel uint8 t touchGet uint16 t uint16 t uin
56. le Edit View Favorites Tools Address i CBEGve27MIprg Folders 8 Desktop i E Documents 4 Computer s Local Disk 4 BEGV6D6M BEGv627M 25 BOL lib 627M C BEGV6z9M BEGV639M Documents and Settings Inetpub Program Files E WINDOWS El i 21 2 BEGV amp OSm 00 rele Hir ccs Data Sheets I FC Tools C Microchip ug In MPLAB Plug I qa VirtualBox Guest Additions D z drive an vboxsvr i d drive vboxsvr gi i drive an Z gt Control Panel Shared Documents martin s Documents EZ Network Places Recycle Bin MPLAB IDE 8 36 41 objects Disk Free space 4 85 GB Mame lib 627M BEGV627M DTP BEGV627M DTP c BEGV627M DTP caf BEGV627M DTP err BEGV627M DTP esym BEGV627M DTP hex W BEGV627M 27 _ FE EGV627M DTP mcw BEGV627M DTP mptags W BEGV627M DTP PJT WA BEGV627M DTP sta BEGV627M DTP sym BEGV627M DTP tagsrc W BEGV627M DTP tre BEGV627M DTP 5100 Full hex BEGV627M DTP 1400 Mocali BEGvaz27M DTP 1 BEGV627M DTP 101 Full hex BEGV627M DTP 101 DTP MaTP pic c A DTP main c DTP main err DTP main esvm DTP main a DTP main asvm screen h screen h bak scr prac c scrn proac err scrn pro
57. library 144 2 44 4 lt nna 79 5 2 2 How to use library in application 2 47 1 474 4 4 80 SO FUM ONP AIV O S e E __ ___ _____ 84 SL UART ON O 84 5 3 2 eeprom 86 cem 87 5 3 4 Backlight PWM control Co auci 89 Ou 90 Appendix Simple operation guide of BTImg2LCD program eese 92 Appendix NOCE sees scttsm 94 Appendix C Notes when running under Windows 7 95 BEGV627M User Manual 01 Preliminary 3 5 r Precaution FCC WARNING CAUTION This device is designed to meet the requirement in part 15 of the FCC rules Operation is subject to conditions ruled under FCC part 15 BEGV627M User Manual Ver 01 Preliminary 4 oun M r Please check packing content upon receiving BEGV627M parcel make sure that all materials and options are packed inside parcel according to your order Packing Contents Check List BEGV627M Embedded module Software Utility Disc i LT a and ISP cable option _ Display Embedded oyster llic FE chip Plc 1 h
58. n 11 26 2010 2 27 PM El BOL lib 527M BEGV629M gt 3 objects Disk Free space 4 85 GB 4 Computer gt Header file h and linkable object files use default folder as follows C BEGV627M pre BOL_lib_627M File Edit View Favorites Tools Help Oo 2 51 gt e aw Address c BEGv627Miprg BOL_lb_627M So Folders gt x Mame Size Date Modified 2 Desktop A W bklight_pwm h 1 Source File 12 16 2009 4 21 2 Documents 1 lj bkliqht_pwm o 46 O File 12 16 2008 5 47 PM 4 Computer 4 config h 4 Source File 12 16 2009 5 47 PM lt a Local Disk C Bizch 3KB C Source File 12 16 2008 4 21 PM 3 BEGveneM 12 0 86 O File 12 16 2008 5 47 23 BEGv627M W izceeprom h Source File 12 16 2009 4 21 E prg 2 SOKB File 12 16 2009 5 47 PM e strsest h 3KB Source File 12 16 2009 4 29 PM 23 BEGv629M ST7588T n 129KB 12 16 2008 5 47 23 BEGv amp 39M QE touch h Source File 12 16 2009 5 46 PM 5 Documents and Settings touch n 208 O File 12 21 2008 12 26 PM Inetpub W amp uart h Source File 12 16 2009 4 21 4 NA uart o 168 KE OQ File 12 16 2009 5 47 PM 13 objects Disk Free space 4 85 GB 696 KB Computer BEGV627M User Manual 01 Preliminary 36 C ABEGV627MMprg Fi
59. of 5 CP calibrations c3 HyperTerminal x File Edit View Call Transfer Help 24c512 5 2nd UART Test LCD Test BKrightness Touch Calibration 5 point gt lt 12L end LCD Bri Touc Cal a E 3 2 Connected 4 16 51 Auto detect 115200 8 1 SCROLL caps Capture Print echo BEGV627M User Manual 01 Preliminary 74 M r Step 24 Close hyper terminal HyperTerminal Click yes to save into c3 ht the serial communication protocol com3 115200bps N 8 1 Next time open the hypertrm simply click file open and select c3 ht BEGV627M User Manual 01 Preliminary 75 M r i Chapter5 Software Reference Manual Abstract This chapter introduces all functions of device driver library for BEGV627M device and describes major issues about application program development BEGV627M User Manual 01 Preliminary 76 M r NEN 5 1 Setup development environment Bolymin recommends to use the Integrated Development Environment IDE provided by Microchip MPLAB IDE v8 36 and CCS C complier v4 093 to develop new application software Here is the step guide to set up the development environment Step 1 Install CCS C complier v4 093 refer to 4 1 Step 2 Install MPLAB IDE v8 36 refer to 4 2 Step 3 Open MPLAB 8 36 then sel
60. oject TestPattern c Select Language Toolsuite Set Language Tool Locations Version Control PIC24FJ64GADD2 sab IPO dc n pv z c Checksum 0 69 3 2 _ MER BEGY527M DTP mcp 2 1 Source Files DTP main c scrn prac c be TestPattern c Header Files 24226464002 bklight config h E ctvpe h h iZceeprom h h screen h ST7588T h touch h iod uart h J L Object Files Other Files BEGVE27M_DTP SYM 627 _ DTP main O5YM prac TestPattern OSYM BEGV627M User Manual 01 Preliminary 80 r Step 3 Set Include Search Path to the path of header files of library provided by Bolymin Build Options For Project BEGV627M Directories Custom Build Trace CCS C Compiler Directories and Search Paths PM C Program Suite Defaults Build Director Policy Assemble Lampile in source file directory link in output directory Assemble Compile Link in the project directory vm Click on New to bring up a new row and a folder browse button Click on browse button to bring up a Browse For Folder dialog windows to add it to include search path FE LM iJ z Build Options For Project BEGV627M DT
61. pertrm exe and hypertrm dll from XP PC to Windows 7 PC and still works fine Or users may use putty a 3 party utility program as terminal emulation program Here is the step guide 1 ICD3 driver installation After plug in ICD3 with PC USB user will notice the blink of status LED on ICD which indicates an error condition Blinking when errors BEGV627M User Manual 01 Preliminary 95 Now to windows 7 Press Win Break key and click on Device Manager click on control panel hardware and sound Devices and printers Device Manager Note system will identify ICD3 as unknown devices in the other devices Action Help B 119121915 mit 4 ig w p 9 Computer 5 e Disk drives 1 ICD3 tm www s Display adapters b g DVD CD ROM drives gt M3 Human Interface Devices M Unkn IDE ATA ATAPI controllers RE p lt gt Keyboards Location Port amp 0004 Hub 20003 b A Mice and other pointing devices gt Monitors Device status The drivers for this device are not installed Code 28 There is no driver selected for the device information set or element i Unknown device To find a driver for this device click Update Driver p 1 Ports COM amp LPT b B Processors b E Sound video and game controllers gt System devices p Q Universal Serial Bus controllers File Action View Help
62. pture Print echa Now press 0 to return to top menu BEGV627M User Manual 01 Preliminary 67 Ju 1 Full on 2 Vertical line 4 Half blocks KE H a an mu sa 8 Picture Pattern 2 BOLYMIN BEGVBE27M Microchip MGU PFIC24FJ64GADO02 BEGV627M User Manual 01 Preliminary 68 MN mwsw lt irn Step 18 Press 4 to enter brightness test c3 HyperTerminal Piel x File Edit Call Transfer Help Brightness Test 1 Brightness 0 Brightnezss b EXIT Brightness 5H Connected 0 06 36 Auto detect 115200 8 1 SCROLL Caps Capture Print echo Step 19 Press 1 to increment brightness level by 5 The brightness ranges from 0 to 100 with step of 5 for each adjustment HyperTerminal File Edit Call Transfer Help Digg elg Brightness Test 1 Brightness 5 Brightness 5 EXIT Brightness 55 0 06 36 Auto detect 1 15200 8 N 1 SCROLL 5 Capture Print echo BEGV627M User Manual 01 Preliminary 69 MN ww w Step 20 Now try press 2 2 to reduce brightness level by 10 c3 HyperTerminal E E ioj x File Edit wiew Call Transfer Help Brightness Test 1 Brightnesst5 Brightnezss b EXIT Brightness 45 Connected 0 07 20 Auto detect 115200 8 N 1 SC
63. ring from assigned UART port void uartSendString uint8 t byPort uint8 t str Parameters byPort UART PORTO 1st Uart port UART PORT 2nd Uart port str Memory pointer of string to be sent ending with O Return value None uartSendBuffer Function Send buffer from assigned UART port void uartSendBuffer uint8 t byPort uint8 t buffer uintG t nBytes Parameters UART PORTO 1st Uart port UART PORT 2nd Uart port Memory pointer of data to be sent Bytes of data to be sent Return value uartReceiveByte Function Read 1 byte data from assigned UART port uint8 t uartReceiveByte uint8 t byPort uint8 Parameters byPort UART PORTO 1st Uart port UART PORT 2nd Uart port rxData buffer used to put received data Return value TRUE UART port receive data and put in rxData FALSE There is no data in assigned UART port uartReceiveBufferlsEmpty Function Check if the receive buffer of assigned UART port is empty or not Syntax void uartReceiveBufferlsEmpty uint8 t byPort UART PORT1 2nd Uart port Return value TRUE Thereceive buffer of assigned UART port is empty FALSE There is data in receive buffer of assigned UART port uartFlushReceiveBuffer Function Clear receive buffer of assigned UART port Syntax void uartFlushReceiveBuffer uint8 t Parameters byPort UART PORTO 1st Uart port UART PORT1 2nd Uart port Return value None BEGV627M
64. roject Debugger Toole ConHzur mm S select Programmer Build Version Control Find in Files P Verity Read MPLAB ICD 3 detected Blank Check All Connecting to MPLAB ICD 3 m Running self test Erase Flash Device Self test passed Eelease From Reset Fico ware Suite Version 01 25 13 Hold In Reset dsPIC33EAAE Abort Operation Reconnect ICD 5 You must connect to a target MPLAB ICT 3 ICD 3 Settings BEGV627M User Manual 01 Preliminary 50 M r Step 9 As soon as the power setting is done note target device is now powered by ICD3 and LCD will display the default demo program as illustrated Also on ICD3 observe the blue Active LED is on Notice a Device ID Revision will display on the last line of output window MPLAB IDE v8 36 File Edit View Project Debugger Programmer Toole Configure Window Help ime ma qam ch 5 Checksum Untitled Workspace 3 BEES Output Build Version Control Find in Files MPLAB ICD 3 MPLAB ICD 3 detected ICD3Ezr0015 You must connect to a target device to use EL Device ID Revision 00002042 BEGV627M User Manual 01 Preliminary 51 M S Step 10 User may try toggle the power target device
65. rrors Warnings Files PICS4F 16464002 gab sab IPO dr r pv z c 5 Step 7 check the compilation result go to output window by clicking Windows Output maximize it and read the last line BUILD SUCCEEDED Congratulations for what you have achieved this far BEGV627M DTP MPLAB IDE v8 36 Output File Edit View Project Debugger Programmer Tools Configure Window Help gt gt gt Warming zU3 DIP Line TUZ T 1 Condition always RUE gt gt gt Warming 202 CABE GY bar BOL _lib_bz Line 185 9 Variable never used rs232 errors gt Warning 202 D T main c Line 740314 Variable never used x gt gt gt Warning 202 DTP main c Line 74016 17 Variable never used vy gt gt gt Warning 202 D TP main c Line 51 0 16 Variable neverused disp x gt gt gt Warning 202 DTE main c Line 5 18 24 Variable newer used disp v CABEGY be fMyorg 0TP_main o gt 0 Errors 6 sSarnings Executing files Picc CCSC exe FD scrn_proc c EXPORT I CABEGV62 lib Be M C Program Files PIC gt gt Warning 202 GWB Miyprg BOL_lib_be Miuarth Line 18 5 8 variable never used 18230 errare Miyorg scrm_proc a gt 0 Errors 1 Executing CA Program files Picc lCSC FD TestPattem r BOL lib 62 zl Memor usage
66. t Additions Windows r gt Startup Internet Explorer 2 Windows Messe MSN E E Outlook Express PIC C Compiler Remote Assistance d User Data Windows Media Player lt Compiler Version e jj Tour Windows 8 windows Messenger C Compiler Location C Program E Windows Movie Maker PIC C Help All Programs Mfg prc c 4 V Supported Devices Log OFF Turn OFF Computer 2 49 5 version is 4 093 2 Recvcle Bin 1 CCS Compiler PIC C Compiler Hegistered 10 IDE Version 4 093 Version 4 093 PCM Version 4 093 PCH Version 4 093 PCD Version 4 093 Copyright i 1994 2011 Custom Computer Services Inc All Rights Reserved start 2 W COMPILER 2 2 49PM BEGV627M User Manual Ver 01 Preliminary 28 M r 4 2 Install ver 8 36 Designers may download software development too MPLAB ver 8 36 from the following URL http www microchip com stellent idcplq ldcService SS GET PAGE amp nodeld 1406 amp dD 023073 http ww1 microchip com downloads en DeviceDoc MPLAB IDE 8 36 zip or from BOLYMIN utility disk E e C Documents and Settings martini Desktop MPLAB IDE 8 36 ecvcle Bin File Edt view Favorites Tools Hep Address E C Documents and Setti 50 0 m a x x EH
67. t8 t is calibration Parameters pX X Coordinate value from touch data pY Y Coordinate value from touch data is calibration Flag to indicate current operation is for calibration or not Return value There is data from touch panel and the data is saved at pX and FALSE There is no data from touch panel setCalibrationMatrix Function Set Calibration calculation matrix void setCalibrationMatrix POINT ptDisplay POINT ptTouch int n Parameters ptDisplay LCD reference Coordinate for calibration ptTouch Touch Coordinate for calibration n Coordinate No for calibration Return value None getDisplayPoint Function Translate touch coordinate into LCD coordinate void getDisplayPoint uintG t x uinti6 t y int16 pX int16 pY Parameters Touch X Coordinate Touch Y Coordinate LCD X Coordinate translated from Touch X Coordinate LCD Y Coordinate translated from Touch Y Coordinate Return value touchSaveCaliParam Function Save calibration parameters into i2c eeprom Syntax void touchSaveCaliParam Parameters None Return value None BEGV627M User Manual 01 Preliminary 90 www f touchReadCaliParam Function Read calibration parameters from i2c eeprom Syntax void touchReadCaliParam Parameters None __ 0 Return value TRUE Read calibration parameters successfully FALSE There is no calibration parameters in eeprom touchDrawCalPoint Funct
68. trol 64Kbytes x 2 in system EEPROM BEGV627M User Manual 01 Preliminary 18 BOLYMIN rrn z w 2 2 5 RS 422 BEGV627A offers 1 x RS 422 isolated port 570 GHD RS 422 Trans mitter RS 422 Recever 2 422 Transmitter Recewer RS 4d22 Recever RS 422 Transmitter 85 422 Recever 53 422 Transmitter 2 2 6 RS 485 BEGV627A offers 1 x RS 485 isolated port RS 485 Transmitter Recewer 5 498 Transmitter Re ce wer E pte 155 Transmitter Re er AS 48 5 Transmitter Recewer BEGV627M User Manual 01 Preliminary 19 Chapter 3 MCU port mapping Abstract This chapter explains PIC24FJ64GA002 MCU pin configuration and port mapping toward key elements such as LCD Touch Panel RS 232 RS 422 RS 485 LED Backlight EEPROM and 3 General purpose I O BEGV627M User Manual Ver 01 Preliminary 20 ww _ w r 3 1 MCU Pin Configuration Drawing 3 1 PIC24FJ64GA002 ANT1O CVREF RT CC RP14 CN12 P MWR RB14 ANS RP15 CN11 PMCS 1 RB15 ANT1 VREF CN3 RA 1 ANO VREF CN2 RAO MCLR VDD Vss 28 27 26 25 242322 PGD1 EMUD1 AN2 C2INRPO CNA RBO 1 e AN11 RP13 CN13 PMRD RB13 PGC1 EMUC1 AN3 C2IN RP1 CNS5 RB1 o AN12 RP12 CN14 PMDO RB12 ANA CATIN RP2 SDA2 CNG RB2 19 PGC2 EMUC2 TMS RP11 CN15 PMD1 RB11 ANS C1IIN RP3 SCL2 CN7 RB3 4 PIC24
69. w Look in M Open Workspace Save Workspace Save Workspace As lose Workspace My Recent Documents Import Export Print My Documents Recent Files Recent Workspaces Camputer Exit File name BEGVE27M DTP mew Network Files of type MPLAB Workspace Files mew fi BEGV627M User Manual Ver 01 Preliminary 38 w w Step3 Click No The configuration bits setting is written in C source code already and belay the warning message m BEGV627M_DIP MPLAB IDE v8 36 Output Eg z 3 File Edit View Project Debugger Programmer Tools Configure Window Help D x bd Bm k m P t m P es p Checksum Build Version Control Find in Files MPLAB IDE The configuration bits in the File are invalid and may cause problems if programmed vou want to set them bo their default value Please note that you will need to either rebuild the File ar export memory again to correct the File Config Field 505 PIC24FJ64GAD02 oabsabIPO dcnovzc Step 4 Your screen should be like this Mind the checksum for version ver 1 00 source code Later version may vary 627 _ MPLAB IDE v8 36 BEGV627M_DIP mcw File Edit View Project Debugger Programmer Tools Configure Window Help Checksum Ox3d51 i
70. ze all parameters of LCD display User should call this function before use functions of LCD display Parameters None Return value None IcdDisplayClr Function Clear screen Parameters None Return value None IcdDraw Function Draw input binary picture on specified area of graphic area Syntax void IcdDraw uintG t x start uinti6 t start uint t x end uinti6 t end uint8 t pic data 8 t mode Parameters x start X coordinate of the top left point of input picture UNIT pixel y start Y coordinate of the top left point of input picture UNIT pixel x end X coordinate of the bottom right point of input picture UNIT pixel y end Y coordinate of the bottom right point of input picture UNIT pixel pic data Bit map data will be drawn Input O will reverse pixels of specified area mode DRAW NORMAL Draw the picture normally DRAW REVERSE Reverse the picture and then draw the picture Return value None BEGV627M User Manual 01 Preliminary 87 MUN IcdFillByte Function Fill input byte value on specified area of graphic layer Syntax void IcdFillByte uintG t x start uinti6 t start uintG t end uintG t y end uint8 t data 8 t mode Parameters x start X coordinate of the top left point of specified area UNIT pixel y start Y coordinate of the top left point of specified area UNIT pixel x end X coordinate of the bottom right point o

Download Pdf Manuals

image

Related Search

Related Contents

mercredi 27 janvier 1999  IntelliVue Patient Monitor - Frank`s Hospital Workshop  Lutter contre l`ambroisie : mode d`emploi    WinPCChrom_files/WinPCChrom Manual de usuario      MS7320 Series Installation and User's Guide  Spectracide HG-96381 Instructions / Assembly  Télécharger le manuel utilisateur. - La boutique  

Copyright © All rights reserved.
Failed to retrieve file