ViewPAC Demo list

- About the detailed steps to compile demo programs, please refer to the Compiler.pdf.

Folder | Files | Explanation
Lib | vp2k.lib & vp2k.h | CPU Library (includes basic APIs for DI, DO, DIO modules, keypad, buzzer, dual battery backup SRAM, etc.)
vp2k_lcd.lib & vp2k_lcd.h | LCD Library (includes APIs for LCD)
tcp_dm32.lib & tcpip32.h | Ethernet Library

Folder | Demo | Explanation
lcd_key | showchar | Shows characters
showbmp | Shows BMP pictures
showTC | Shows Traditional Chinese Font
lcd_backlight | Adjusts LCD backlight
cursor | Shows cursor
keystatus | Shows status of key down/up.
presskey | Shows key value
testkey | Shows key value
viewpac | Over all function test.
sound | change_key_sound | Changes sound of key pressing.
sound1

Following demo programs can be used in ViewPAC.

Folder | Demo | Explanation
File | Config_1_Basic | Reads information from text files(basic).
Config_2_Advanced | Reads config file (text file)(advanced).
Hello | Hello_C | Reads library version and flash memory size.
Hello_C++
Misc | Reset | Software's reset.
Runprog | To select item and run it.
Serial | To get 64-bit hardware unique serial number.
Watchdog | Enabled WDT or bypass enable watchdog.
Smmi | SystemKey | User can operate systemkey simple and easily.
Led | To control red led and 7-segment display.
Memory | S256 | To read or write 256K bytes battery backup.
Eprom, Flash, Nvram |
DateTime |  | User can read and write the date & time of RTC.
Timer |  |
Com Port | C_Style_IO | (1) Show how to write a function for input data. (2) To get a string. (3) To use C function: sscanf or just use Scanf().
Receive | Receive COM port. Slv_COM.c is non-blocked mode Receive.c is blocked mode.
Slv_COM | Slave COM port demo for (request/reply) or (command/response) application.
ToCom_In_Out | How to Read/Write the byte data via COM port.
7K87K_for_Com | 7K87K_demo_for_com | User can use "Com port" to connect and control 7k or 87k modules. Com port: 8410/8810/8411/8811 can use, Com2,Com3. 8430/8830/8431/8831(CPU 40 and 80M) can use Com3,Com4.
7K87K_DI_for_Com
7K87K_DO_for_Com
7K87K_DIO_for_Com
7K87K_AI_for_Com
AO_22_26_for_Com
AO_024_for_Com
8142 |  | Demo program for I-8142 as NPORT server. There are 2 COM ports in the I-8142.That is COM1 and COM2.

Folder | Demo | Explanation
IO_in_Slot | 8K_DI | This demo program is used in 8K's DI module. Such as 8040, 8051...
8K_DO | This demo program is used in 8K's DO module. Such as 8041, 8056...
8K_DIO | This demo program is used in 8K's DO module. Such as 8042, 8054
8050 | 8050 is a 16-channel Universal Digital I/O Module. I/O Type: I/O select by programming User can refer to the demo to write 8050's code.
8017H | 8017H is a 14-bit 100K sampling rate 8-channel analog input module. User can refer to the demo to write 8017H's code.
8024 | 8024 is a 4-channel Isolated Analog Output Module. User can refer to the demo to write 8024's code.
8048 | DI | Read DI.
Int_Ch | Multi-channels as rising or falling edge interrupt in single slot.
Int_Int | CPU accept external interrupt request during ISR.
Int_Slot | Single-channels as rising or falling edge interrupt in multi-slots.
8072 | Demo1 | This demo is designed for printer.
Demo2 | This demo is designed for sram256K read/write.
Demo3 | This demo is designed for sram512K read/write.
8073 | The demo program is for 8073 General Function.
8077 | This demo program is written for I-8077 Module,8 Digital Output & 8 digital input. The I-8077 no have real Digital Output, you can monitor status of digital output on the LED. And you can control the switch to set digital input (High or Low).
8080 | Basic | Demo for 8080 (Basic mode).
Config | Demo for 8080 (Read/Set config).
Eeprom | Demo for 8080 (Read/Write EEPROM).
Freq | Demo for 8080 (Frequency mode).
Mix_mode | Demo for 8080 (Mix mode).
Pulsedeir | Demo for 8080 (Pulse/Dir mode).
Up | Demo for 8080 (Up counter mode).
Updown | Demo for 8080 (Up/Down mode).
8081 | Demo for 8081 (Up counter mode).
8090 | The demo program is for 8090 General Function.
87K_Demo | This demo program is for 87K General Function in Com0.
87K_DI | This demo program is for 87K Digital Input Module in Com0. Such as 87040, 87051...
87K_DO | This demo program is for 87K Digital Output Module in Com0. Such as 87041, 87057...
87K_DIO | The demo program is for 87K DIO Module in Com0. Such as 87042, 87054, 87055
87K_AI | This demo program is for 87K Analog Input Modules. Such as 87013,87015,87017,87018...
87022_26 | This demo program is for 87022 and 87026 Module.
87024 | This demo program is for 87024 Analog Output Module.
FIND_IO | This demo program is the basic function. Let you know how to get the card information in the MCU of I-8000 series.