Maxiflex P3 PAC User Manual
88
-© Omniflex
UMM126XR18.pdf
12.6.1.4.
DITBTWR - Write a bit in a DIT
Arguments:
Name
In/Out Type
Description
DIT
IN
Integer
The DIT Register Address to be written to
BIT
IN
Integer
The BIT of the DIT register to be written to.
BIT must be in the range 0 to 15.
BIT 0 is the least significant bit.
BIT 15 is the most significant bit.
STATUS
IN
Boolean
The Bit value to be written
F
OUT
Boolean
“True” if write is successful
Description:
Use this function to write a Boolean value to a BIT in a local DIT register.
This function cannot be used to access the extended DIT Range (Use the MxDIT_CPY
function to copy extended DIT’s to/from an unused local DIT area).
12.6.1.5.
DITRDD - Read a double word from the DIT
Arguments:
Name
In/Out Type
Description
DIT
IN
Integer
The DIT Register Address from which to read the
double word.
DVAL
OUT
Integer
The 32-bit double word read from the register 'DIT' and
'DIT +1'
Description:
Use this function to read a double word from a local DIT register.
NOTE: the word order for a double word read from DIT register
n
is as follows:
DIT
n
= Most significant word
DIT
n
+1 = Least significant word
This function cannot be used to access the extended DIT Range.
12.6.1.6.
DITWRD - Write a double word to the DIT