5.2.2 ConfigU3
Writes and reads various configuration settings. Although this function has many of the same
ns, most parameters in this case are affecting the power-up values,
n to flash. The U3 flash has a
rated endurance of at least 20000 writes, which is plenty for reasonable operation, but if this
function is called in a high-speed loop with a nonzero WriteMask, the flash could eventually be
damaged.
There is a hardware method to restore bytes 9-20 to the factory default value of 0x00. Power
p the U3 with a short from FIO2<=>SCL, then remove the jumper and power cycle the device
gain.
parameters as other functio
not the current values.
If WriteMask is nonzero, some or all default values are writte
u
a
Command:
Byte
0 Checksum8
10xF8
20x0A
30x08
4 Checksum16 (LSB)
5 Checksum16 (MSB)
6 WriteMask0
Bit 3: LocalID
Bit 2: DAC Defaults
Bit 1: Digital I/O Defaults
Bit 0: Reserved
7 WriteMask1 (Reserved)
8 LocalID
9 TimerCounterConfig
Bits 4-7: TimerCounterPinOffset
Bit 3: Enable Counter1
Bit 2: Enable Counter0
Bits 0-1: Number of timers enabled
10 FIOAnalog
11 FIODirection
12 FIOState
13 EIOAnalog
14 EIODirection
15 EIOState
16 CIODirection
17 CIOState
18 DAC1Enable
19 DAC0
20 DAC1
21 0x00
22 0x00
23 0x00
24 0x00
25 0x00
81