58 Chapter 8. Simple table mode
IO3H Set pin 3 of associated high-speed bank to output HIGH
IODT Toggle the output of the associated DOUT pin on the DB15
connector
IOA2P Output a short pulse on pin 2 of high-speed bank A
IOB1L Set pin 1 of high-speed bank B to output digital LOW
Theexamplebelow showshowtotoggleanoutput inthe high-speed
bank, resulting in the output shown in Figure 8.2.
MODE,1,TSB
# set HSB−A to output
EXTIO,MODE,1,HSB,WRITE
# set HSB pin A1 to AUTO mode
EXTIO,CONTROL,1,HS1,AUTO
# define table −− same frequency, five different amplitudes
TABLE,ENTRY,1,1,100MHz,0x200,0,2
# next entry sets pin 1 high
TABLE,ENTRY,1,2,100MHz,0x600,0,2,IO1H
# 2us later, set pin 1 low
TABLE,ENTRY,1,3,100MHz,0x1000,0,2,IO1L
TABLE,ENTRY,1,4,100MHz,0x1400,0,2
# create 500ns pulse
TABLE,ENTRY,1,5,100MHz,0x2000,0,2,IO1P
TABLE,ENTRY,1,6,100MHz,0x200,0,2
# toggle pin 1 (from low to high)
TABLE,ENTRY,1,7,100MHz,0x600,0,2,IO1T
TABLE,ENTRY,1,8,100MHz,0x1000,0,2
# toggle pin 1 again (i.e. from high to low)
TABLE,ENTRY,1,9,100MHz,0x1400,0,2,IO1T
TABLE,ENTRY,1,10,100MHz,0x2000,0,2
TABLE,ENTRIES,1,10
Listing 8.2: Simple example showing digital output in table mode.
8.3.2 Simultaneous digital output
As of firmware v1.3.0, it is possible to simultaneously set multiple
digital outputs in a single table instruction using the IOSET and
IOMASK flags. Both instructions take a 16-bit number, where each