Captured data may be retrieved with one of three dump commands:
Each time one of these commands is issued, a finite set of samples is dumped to the host via the serial port. The first dump (after a trace completes) starts at the last recorded sample address. Each subsequent dump continues where the previous one left off allowing the entire contents of capture memory to be uploaded to the host using multiple dump commands.
The size of each dump is determined by the values programmed to the Dump Size register R15 which ranges from 1 to 256 samples (the value 0 implies 256). The dump size should not be larger than the number of samples the host can accept in one hit without hardware handshake.
The format of the dumped data depends on the dump command used:
If suitable pre and post trigger delays are programmed, the capture buffers will be completely filled. By reading from the sample address at which capture stopped, and issuing the required number of dump commands, a contiguous dump from the first captured sample to the last can be uploaded to the host without reference to the sample address at all.
If less than a full buffer has been recorded, it is of course possible to program the sample address counter to start the first dump at any sample address regardless of where the most recent trace left off.
Copyright © 2021 BitScope Designs