LOAD Function                                                                                                                             

Sets the port pins on the devices in the scanchain

 

LOAD [NOSAMPLE]

 

Arguments

Optional  NOSAMPLE – Puts the data on the pins but does not read back the state of any pins. Used to optimise speed. USE WITH CAUTION  

 

Remarks

Transfers the local port pins values specified by BUS and variable assignments to the devices in the chain. This statement also updates the value of any input pins.  

 

Example

// Set up some buses

BUS ADDRESSBUS = {DEVICE1.IO30, DEVICE1.IO31 DEVICE1.IO32, DEVICE1.IO33 }

BUS DATABUS = { DEVICE2.IO34, DEVICE2.IO35, DEVICE2.IO36, DEVICE2.IO37 }

BUS WE = DEVICE1.IO38

 

// Give them some values 

ADDRESSBUS = STRV(i-1, 4, OUTPUT)

DATABUS = DATAARRAY[i-1]

WE = "0"

 

// Put the address and data values on the PINS

LOAD  NOSAMPLE

// Put the address and data values on the PINS and read back the datapins

LOAD