µPAC-5000 Series (C Language Based) User Manual, Version 1.0.1 Page: 4
Copyright © 2010 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
2.3. Boot Configuration ------------------------------------------------------------------- 32
2.4. Uploading μPAC-5000 Programs -------------------------------------------------- 33
2.4.1. Establishing a connection between PC and µPAC-5000 -------------------------------- 34
2.4.1.1. RS-232 connection ------------------------------------------------------------------------- 35
2.4.1.2. Ethernet Connection ---------------------------------------------------------------------- 38
2.4.2. Uploading and executing µPAC-5000 programs ------------------------------------------ 43
2.4.3. Making programs start automatically------------------------------------------------------- 44
2.5. Updating μPAC-5000 OS image --------------------------------------------------- 46
3. “Hello World” - Your First Program --------------------------------------- 49
3.1. C Compiler Installation -------------------------------------------------------------- 50
3.1.1. Installing the C compiler ----------------------------------------------------------------------- 51
3.1.2. Setting up the environment variables ------------------------------------------------------ 55
3.2. μPAC-5000 APIs ----------------------------------------------------------------------- 58
3.3. First Program in μPAC-5000 -------------------------------------------------------- 59
4. APIs and Demo References ------------------------------------------------ 70
4.1. API for COM Port --------------------------------------------------------------------- 74
4.1.1. Types of COM port functions ----------------------------------------------------------------- 75
4.1.2. API for MiniOS7 COM port -------------------------------------------------------------------- 76
4.1.3. API for standard COM port -------------------------------------------------------------------- 79
4.1.4. Port functions Comparison -------------------------------------------------------------------- 82
4.1.5. Request/Response protocol define on COM port ---------------------------------------- 84
4.2. API for I/O Modules ----------------------------------------------------------------- 85
4.3. API for EEPROM ---------------------------------------------------------------------- 87
4.4. API for Flash Memory --------------------------------------------------------------- 89
4.5. API for NVRAM------------------------------------------------------------------------ 91
4.6. API for 5-Digital LED ----------------------------------------------------------------- 93