The Output Function

Important: Configuring the Output Mode:

Unless you have special hardware, build your K-Box Digital 1, Digital 2 and Digital 3 MUST be configured as 3.3V if used in output Mode due to the Outputsign of the circuitry:

Unless you have a unique hardware build, your K-Box Digital 4 MUST be configured as Open Collector (if used in output Mode due to the design of the circuitry):

Operation of the Output Signals

If any of the PINs are set to an “Output”, the output CAN ID becomes active, and you can select the CAN ID, which will receive messages that will be output on the appropriate pins of the K-BOX.

If the CAN ID were set to 0x400, when the Kbox receives a CAN message with Ident 0x400, the first byte is interpreted as an 8-bit command as follows:

b0: Dig1OutLevel

b1: Dig1OutSet

b2: Dig2OutLevel

b3: Dig2OutSet

b4: Dig3OutLevel

b5: Dig3OutSet

b6: Dig4OutLevel

b7: Dig4OutSet

OutLevel indicates whether the PIN should give output 1 or 0. “OutSet” sets the OutLevel on the PIN if it is = 1 (enable); if the OutLevel is 0 (disable), then the OutLevel value in the message is not set.

Example:

If the KBox receives a CAN message with DLC = 1 and CAN ID = 0x400.

Data byte = 0x30 (00110000 ) High Level on Digital 3, Digital 3 enabled. Outputbyte = 0x20 (00100000 ) don’t care about Digital 3; keep old level on Digital 3.

In this, the command controls all Digital Outputs at once and at any time.

The Output level can only be changed with a new CAN message with Ident 0x400, re-configuration with B-Box Cal, or turning the KBox power off.

If NONE of the PINs is set to Output, the Outputs CAN ID will become greyed out, and the K-Box will not enable the Output on the Digital pins when CAN messages are received.

Last updated