
TinyScope-32 captures four digital inputs on rising clock edges. A rising ARM sample in idle or after DONE latches the trigger mask from UIO[7:4] and value from UIO[3:0]. The following rising edge writes the first sample. Hold all sampled inputs stable around the active edge. Reset is synchronous, active low, and aborts an acquisition or invalidates a frozen record.
Each mask bit selects a channel to compare with its corresponding value bit. After 16 writes, READY_TO_TRIGGER goes high. The next sampled transition from a nonmatching word to a matching word triggers. A match held through prefill must first clear and return. A zero mask disables triggering for that capture; use reset to abort. With mask 1, value 1 selects a CH0 rising edge and value 0 selects a falling edge. Changes to the configuration pins after ARM have no effect on the active capture.
The circular buffer retains the last 16 samples before the trigger. The trigger sample and 15 subsequent samples complete the record. DONE then goes high and the buffer freezes. While DONE is high, drive the five-bit logical read address on {UIO[1:0], UI[7:5]}. The oldest word is at address 0, the trigger at 16 and the newest word at 31. Outputs UO[3:0] update asynchronously with the read address and are zero before DONE. UO[4] is DONE, UO[5] is READY_TO_TRIGGER and all UIO pins are inputs. ARM edges during acquisition are ignored. To re-arm after DONE, ensure ARM has been sampled low and then raise it with the desired configuration on UIO.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | CH0 | RD_CH0 | TRIG_VALUE0 / RD_ADDR3 |
| 1 | CH1 | RD_CH1 | TRIG_VALUE1 / RD_ADDR4 |
| 2 | CH2 | RD_CH2 | TRIG_VALUE2 |
| 3 | CH3 | RD_CH3 | TRIG_VALUE3 |
| 4 | ARM | DONE | TRIG_MASK0 |
| 5 | RD_ADDR0 | READY_TO_TRIGGER | TRIG_MASK1 |
| 6 | RD_ADDR1 | TRIG_MASK2 | |
| 7 | RD_ADDR2 | TRIG_MASK3 |