The Complete datasheet says about the Brown out detector threshold of the ATTINY 416/816:
If the BOD/VLM is enabled in sampled mode, only VLMCFG=0x1 (crossing threshold from above) in
BOD.INTCTRL will trigger an interrupt.
OK, but then VLMCFG says:
Bits 2:1 – VLMCFG[1:0]: VLM Configuration
These bits select which incidents will trigger a VLM interrupt.
Value
0x0 - Voltage crosses VLM threshold from above
0x1 - Voltage crosses VLM threshold from below
0x2 - Either direction is triggering an interrupt request
So which is it?
Is it that You only get an IRQ in sampled mode when VLMCFG is 0 (Contradictory to first statement) OR
When VLMCFG is 1, which is a threshold from below IRQ (Also Contradictory to first statement).
Also, which ever way it is, if the VLMCFG is 0x2, will one still get the IRQ for crossing the threshold in the appropriate direction, in sampled mode, OR does it need to be 0x1 ONLY to function in sampled mode.
My hope is that its actually IRQ crossing from Below, because an IRQ crossing from above in sampled mode is pretty useless.