5.2.3
Writes
• WriteMask: Has bits that determine which, if any, of the parameters will be written.
• TimerCounterConfig: Used to enable/disable timers and counters. Timers/counters will
be assigned to IO pins starting with FIO0 plus TimerCounterPinOffset (which is a value
from 0-8). Timer0 takes the first IO pin, then Timer1, Counter0, and Counter1.
Whenever this function is called and timers are enabled, the timers are initialized to
mode 10, so the desired timer mode must always be specified after every call to this
ConfigIO
and reads the current IO configuration.
Command:
Byte
0 Checksum8
0xF8
0x03
1
2
4
5
Bit 2: FIOAnalog
Bit 1: DAC1Enable
Bit 0: TimerCounterConfig
7 Reserved
8 TimerCounterConfig
Bits 4-7: TimerCounterPinOffset
Bit 3: Enable Counter1
Bit 2: Enable Counter0
Bits 0-1: Number of timers enabled
9 DAC1Enable
Bit 1: Reserved, Pass 0
Bit 0: Enable DAC1
10 FIOAnalog
11 EIOAnalog
Response:
30x0B
Checksum16 (LSB)
Checksum16 (MSB)
6 WriteMask
Bit 4: Reserved, Pass 0
Bit 3: EIOAnalog
Byte
0 Checksum8
10xF8
20x03
30x0B
4 Checksum16 (LSB)
5 Checksum16 (MSB)
6 Errorcode
7 Reserved
8 TimerCounterConfig
9 DAC1Enable
10 FIOAnalog
11 EIOAnalog
84