ARK-3400 User Manual 72E.1 Programming GPIOAdvantech provides SUSI (Secure & Unified Smart Interface) API for customers. It isa set of user-friendly, intelligent and integrated application programming interfaces,which shortens development time, enhances security and offers add-on value forAdvantech platform users. SUSI makes applications easier and simpler to build andoperate. For the detailed GPIO register, please refer to below contents.E.2 GPIO ProgrammingFor DOS GPIO control is through INT 15 HookIn windows XP system please use SUSIBelow is an example of how to call sub routine °×Get Number of GPIO group°±========================================mov ax,5e87hmov bh,00hint 15hDetail information of INT 15 sub routine£½;===============================================================; Get Number of GPIO group; one group mean 8 gpio pins (one GPIO Chip); Input:; ax=5E87h; bh=00h; output:; ax=5E78 ;function success, other value means function fail; cl= n group of gpio;===============================================================;===============================================================; Get GPIO Config; Input:; ax=5E87h; bh=01h; cl= n ; n means which group of GPIO you want to get; output:; ax=5E78 ;function success, other value means function fail; bl= the n group of gpio config; bit 0 = gpio 0 , 0 => output pin; 1 => input pin; bit 1 = gpio 1 , 0 => output pin; 1 => input pin; .....; bit 7 = gpio 7 , 0 => output pin; 1 => input pin;===============================================================;===============================================================; Set GPIO Config; Input:; ax=5E87h