SPLatco Knowledge Base

<OBCA Mode> = m

This instruction sets the mode of subsequent OBCA operations to m.

Valid mode numbers are:

ModeDescription
0OBCA Disabled
1Measure input frequency with 0.1S timebase [D>=9]
2Measure input frequency with 1S timebase [D>=9]
3Measure input frequency with 10S timebase [D>=9]
4Totalizing counter (See note 2 below)
5Measure Period (only on 32 bit controllers)

Here is the mode list in SPLat equated form ready for use in your code:


;OBCA modes
OBCAkMode_Off #EQU 0
OBCAkMode_0s1 #EQU 1
OBCAkMode_1s0 #EQU 2
OBCAkMode_10s #EQU 3
OBCAkMode_Count #EQU 4
OBCAkMode_Period #EQU 5
Note 1. This instruction modifies UV
Note 2. Mode 4 is not available in MMi99 Firmware versions before 3.22 or SL99 firmware versions before 3.41

Dialect exclusions: Not available in dialects before 9. Not available on SPLat controllers that do not have OBCA support (please check the documentation for your specific board and firmware version).

If you are using the MMi200 please click here for information on a restriction on using this instruction.