EasyManuals Logo
Home>C&T>Control Unit>PC400 Series

C&T PC400 Series User Manual

Default Icon
71 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #69 background imageLoading...
Page #69 background image
PC400 / PC410 l User’s Manual
69
GPIO Sample Code
GPI 1 ~ GPI 8
GPO 1 ~ GPO 8
#define GPI1to4_ADDR 0xA03
#define GPI5to8_ADDR 0xA06
#define GPO1to4_ADDR 0xA02
#define GPO5_ADDR 0xA06
#define GPO6_ADDR 0xA04
#define GPO7_ADDR 0xA08
#define GPO8_ADDR 0xA04
#define GPO1_DataHigh 0x01
#define GPO2_DataHigh 0x02
#define GPO3_DataHigh 0x04
#define GPO4_DataHigh 0x08
#define GPO5_DataHigh 0x10
#define GPO6_DataHigh 0x80
#define GPO7_DataHigh 0x01
#define GPO8_DataHigh 0x80
#define WriteByte outportb
#define ReadByte inportb
Appendix WDT & GPIO
GPI 1 GPI 2 GPI 3 GPI 4 GPI 5 GPI 6 GPI 7 GPI 8
IO Address
0xA03h
0xA03h
0xA03h
0xA03h
0xA06h
0xA06h
0xA06h
0xA06h
Bit 4 5 6 7 0 1 2 3
Sample code
#1
GPO 1 GPO 2 GPO 3 GPO 4 GPO 5 GPO 6 GPO 7 GPO 8
IO Address
0xA02h
0xA02h
0xA02h
0xA02h
0xA06h
0xA07h
0xA08h
0xA04h
Bit 0 1 2 3 4 7 0 7
Sample code
#2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the C&T PC400 Series and is the answer not in the manual?

C&T PC400 Series Specifications

General IconGeneral
BrandC&T
ModelPC400 Series
CategoryControl Unit
LanguageEnglish