5. I/O Bootup Library

5.1 Overview

The I/O bootup library monitors the connection status of dedicated I/O Box and notifies user of the status.

5.2 Function

This library supports only one function, iobox_chk(). The iobox_chk() function monitors and detects, for a specified period, whether PA-2400W is mounted on I/O Box, and returns the result (mounting detected, timeout error, or error). Each time this function is used, it is necessary to also execute "Permit interrupt, Wait for interrupt and time-out, and Prohibit interrupt". The following diagram shows the range covered by this library.

Fig. 5.1

PA-2400W

User Application

 

 

 

 

 

 

(1) iobox_chk ( TIME_OUT_SEC ) ;

 

 

 

 

(5) Return

 

 

 

Detection, Timeout

 

 

Error

 

IOBOX1.DLL

 

 

 

Karnel

(4)

Timeout

 

 

 

(4) Interrupt Signal

 

 

 

I/O PORT: 0

 

 

(2) Mounting

(3) I/O Box ON Signal

I/O Box

Because the interrupt signals are detected by their signal levels, they can be detected even if the order of (1) and (2) is changed. (The connection status can be detected whether this function is called before or after the PA-2400W is mounted on I/O Box is mounted, unless a timeout occurs.)

35

Page 35
Image 35
Casio PA-2400W manual O Bootup Library Overview, Function, IOBOX1.DLL, Port