SAM PC Sampler

Used to poll a single location (typically PC) in memory on an ARM-based target device. Generally faster than the DATA_SAMPLING function.

Table 1. SAM PC Sampler
Field Size Description
DATA_SAMPLER 1 byte 0x8A
SAMPLE_SAM_PC 1 byte 0x02
ENABLE 1 byte

0x00: disable

0x01: enable

BURST 1 byte Number of samples per loop (1 to 16)
ADDRESS 4 byte

Address to poll, MSB first.

Must be >= 0x20000000

FLAGS 4 byte
Bits 1:0: destination:
  • b00: send to DGI as data
  • b01: send to HID (reserved)
  • b10: send to DGI as print
  • b11: reserved

Response:

Table 2. SAM PC Sampler response
Field Size Description
DATA_SAMPLER 1 byte 0x8A
SAMPLE_SAM_PC 1 byte 0x02
Status 1 byte

Status code

0x00: OK

0xFF: Error