Demo list for £gPAC-7186EX series module

Folder

Demo program

Explanation

Hello

Hello_C

Detecting if the operation system is MiniOS7. 

Note: MSC does not support C++.  Hello _ C ++ is only supported by BC.

Hello_C++

COM_Ports

C_Style_IO

1. Shows how to write a function for input data.
2. Retrieves a string.
3. Shows how to use a C function: sscanf,or just use Scanf().

Receive

Receive COM port.

Slv_COM

The PC sends commands to the uPAC-7186EX, and receives responses from the uPAC-7186EX. Also shows how to use another COM port or LED to show information to help debug a program.

ToCom_In_Out

Reads/Writes the byte data via the COM port.

DateTime

”@

Reads the date and time from an RTC and prints it on a monitor (user can set the date and time).

LED

Led

Shows how to use DelayMs function to switch the LED ON or OFF.

Seg7led Controls red led and 7-segment display.

File

Config_1_Basic

In many applications, a text file is needed in order to record specific information so that the program can read it. FSeek can be used to retrieve specific information from a text file.

Config_2_Advanced

Extends config_1_Basic, and adds GetProFileInt,  GetProFileFloat, GetProFileStr. These functions can be used to determine the "Type" from a text file.

Memory Demo5

Read and writes to the NVRAM.

EEPROM

Writes a value to the EEPROM and shows it on the monitor.

EEPROM-r

Reads the data stored in the EEPROM.

EEPROM-w

Inputs a value and stores it in an write to EEPROM block 1 peer address (value will automatically increase by 1).

Flash

Reads, writes and erases the Flash memory.

Flash-r

Reads the value that has been written to the flash memory.

Flash-w

Inputs a value written in the flash memory (value will automatically increase by 1).

NVRAM-r

Reads the value that has been written to NVRAM.

NVRAM-w

Writes a value to the NVRAM (value will automatically increase by 1).

Top-Mem

Demonstration of the "AllocateTopMemory()" function

Misc Reset Restores the initial values.
Runprog Uses Ungetch() to run another program.
SerialNumber

The serial number of the uPAC-7186EX.

Watchdog Enables the Watchdog or bypasses the enabled Watchdog.
7K87K_Module 7K87K_demo_for_com Shows how to connect and control the 7k or 87k modules via COM2.
7K87K_AI_for_Com
7K87K_DI_for_Com
7K87K_DIO_for_Com
7k87K_DO_for_Com
AO_024_for_Com
AO_22_26_for_Com

Timer

Demo90 A demonstration program showing how to use the function.
Demo91 Shows how to use CountDownTimer function channel 0 to switch the LED ON or OFF.
Demo92 Shows how to use StopWatch function on channel 0 to switch the led ON or OFF.
Demo96 Shows how to use the User timer function to control the 5-digit LED.
Demo97 Shows how to use DelayMs function to switch the LED ON or OFF.
Demo98 Shows how to use the uPAC-7186EX timer function to send/receive data to or from 7000 series modules.

XBoard

  These demo programs for all I/O expansion boards which are applicable to the uPAC-7186EX module.

7186FD

(for 64MB flash memory on uPAC-7186EX-FD)

Utility Utility for the MiniOS7 File System. Operations Include Dir, Read, Write, etc.
MFS_QA Quality assurance program for the MiniOS7 File System.
Including function test, read/write performance test.
Puts How to write a string to a file in the 64MB flash memory.
Gets How to get a string from a file in the 64MB flash memory.