AVR PC Sampler

Used to poll the Program Counter on an AVR device. Only AVR devices with UPDI have this capability.

Table 1. AVR PC Sampler
Field Size Description
DATA_SAMPLER 1 byte 0x8A
SAMPLE_AVR_PC 1 byte 0x09
ENABLE 1 byte

0x00: disable

0x01: enable

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. AVR PC Sampler Response
Field Size Description
DATA_SAMPLER 1 byte 0x8A
SAMPLE_AVR_PC 1 byte 0x09
Status 1 byte

Status code

0x00: OK

0xFF: Error