Programming Examples In C, Pascal, Assembler, Basic - Addi-Data ADDINUM PA 200 Technical Description

Digital output board
Table of Contents

Advertisement

PA 200
9.3

Programming examples in C, Pascal, Assembler, Basic

/* TURBO C
/* Writes digital outputs of a PA200 board
/* Used compiler: TURBO C version 2.0 mode SMALL
#define Basic_Adr_PA200
void main (void)
{
/* Example 1 :
/* Writing occurs in 4 x 8 bits
outportb (Basic_Adr_PA200, 0xAA);
outportb (Basic_Adr_PA200 + 1, 0x55);
outportb (Basic_Adr_PA200 + 2, 0xAA);
outportb (Basic_Adr_PA200 + 3, 0x55);
*/
}
(* TURBO PASCAL
(* Writes digital outputs of a PA200 board
(* Used compiler: TURBO PASCAL version 4.0
PROGRAM
PA200;
USES DOS;
CONST
Basic_Adr_PA200 = $390;
BEGIN
(* Example 1 :
(* Writing occurs in 4 x 8 bits
PORT [Basic_Adr_PA200]
PORT [Basic_Adr_PA200 + 1] := $055;
16
*)
PORT [Basic_Adr_PA200 + 2] := $0AA;
17
*)
PORT [Basic_Adr_PA200 + 3] := $055;
END.
0x390
/* Basic address of PA200 board*/
/*
/* Bit 0 of value 0xAA on
/* digital output number 1 */
* Bit 7 of value 0x55 on
/* digital output number 16 */
/* Bit 0 of value 0xAA on
/* digital output number 17
/* Bit 7 of value 0x55 on digital
/* output number 32
(* Basic address of PA200 board
(*
****
:= $0AA;
(* Bit 0 of value $0AA
(* on digital output number 1
(* Bit 7 of value $055
(* on digital output number
(* Bit 0 of value $0AA
(* on digital output number
(* Bit 7 of value $055
(* on digital output number 32
Functions of the board
***** Main program
Main program
****
*/
*/
*/
***** */
*/
*/
*/
*/
*/
*/
*/
*)
*)
*)
*)
*)
*)
*)
*)
*)
*)
*)
*)
*)
25

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADDINUM PA 200 and is the answer not in the manual?

Table of Contents