Velleman К8063 User Manual

Page 17

Advertising
background image

17

EX3: To turn on all segments on all units with address ‘1’ : Execute the ‘B’-command and supply address
‘1’. Next, execute the ‘S’ (strobe) command.

Data to be sent to serial port :

Chr$(13) (Init

command)

Chr$(1)

(Address 1)

Chr$(66)

“B” = Byte command

Chr$(255)

(255 = sum of segments)

Chr$(177) (Checksum : 2-compliment of the sum of the 4 previous bytes)
100ms pause
Chr$(13) (Init

command)

Chr$(8)

(Don’t care)

Chr$(83)

“S” = strobe command

Chr$(1)

(Don’t care)

Chr$(151) (Checksum : 2-compliment of the sum of the 4 previous bytes)

Note : Our website www.velleman.be features some example programs written in VB6 which
can be used as a guide for writing your own software (source code is supplied).

Hook-up

Advertising