ADLINK ACL-7120A/6 User Manual
Page 33
Advertising
Programming
• 27
♦
Write operation:
The digital output states are written as 1 single byte to the port at
address BASE+N (N=0,1,2,3). Data is written to all 8 bits as a single
byte.
For example:
In BASIC:
05 BASE=&H2A0
06 VALUE1% = &H3F
07 VALUE2% = &HF3
10 OUT(BASE + 0), VALUE1% ‘ the digital outputs (DO0-DO7) will’
be (00111111)
20 OUT(BASE + 2), VALUE2% ‘ the digital outputs (DO16 - DO23)
will be (11110011)
Advertising