3.4.9 AVR SP Sampler

Used to poll the Stack Pointer on an AVR device. Only AVR devices UPDI have this capability.

Table 3-53. AVR PC Sampler
FieldSizeDescription
DATA_SAMPLER1 byte0x8A
SAMPLE_AVR_SP1 byte0x0A
ENABLE1 byte

0x00: disable

0x01: enable

FLAGS4 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 3-54. AVR PC Sampler Response
FieldSizeDescription
DATA_SAMPLER1 byte0x8A
SAMPLE_AVR_SP1 byte0x0A
Status1 byte

Status code

0x00: OK

0xFF: Error