Knowledge Base

Programming of the OBCA is quite simple, and requires the following steps:

  1. initialize to the required mode (time base interval)
  2. Wait for the OBCA to accumulate a reading (you can programmatically test if a reading is available)
  3. Read out the accumulated count from the OBCA
  4. Process the count, for example scale to rmp, wind speed or whatever.

The OBCA contains a timebase generator which can be set for 0.1S, 1S or 10S, a counter, a result register and a reading available flag. At the end of each timebase interval, the counter contents is transferred to the result register, the counter is cleared and the flag is set. When the result is read out the flag is cleared again. That allows you to make sure you only process fresh readings. If you do a readout when the flag is clear, you will simply get the previous reading.

Note: At time of writing there is no simulation of the OBCA in SPLat/PC