Programming the
board
Programming the board is much like programming the K8055
- but there is one basic difference which forced me to
slightly alter all the programs written for the K8055 in order to make
them work on the K8061. To write to the
K8055 one has to open the device with its address - 0 to 3. To write to
another device, one closes the first device and opens the second for a
write operation.
To communicate with the K8061 one
interrogates
the K8061 hardware, which returns a unique address. This address must
be
included in every instruction. One example will make the point clearer.
To write the number 255 to the K8055 digital outputs, one would use
SYS OpenDevice,0
: REM Open
device number 0
SYS WriteAllDigital,255 : REM Set all outputs high
To do the same thing with the K8061 you use
SYS OpenDevice TO Adr%
: REM Get the
card address and put it into Adr%
SYS OutputAllDigital,Adr%,255 : REM Write 255 to the card
There are also subtle variation in the code using Output instead of Write for example
Most of my projects have the K8061 BBC BASIC for Windows code
supplied via the write-ups, but below is a link giving the code of the
PROCK8061_init which has to be appended to every program. Also included
is a procedure for changing the output window size and an error
procedure.
K8061_init.zip
|