Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColor#ffffff
titleQ

How to make use of the BOD?

Panel
bgColor#ffffff
titleA

The basic circuit (source: technical data reference guide) is shown below.

with the following values:


Symbol

Min

Typ

Max

Unit

BOD

0


3.6

V

BOD_T

1.11

1.14

1.17

V

BOD_H

47

60

73

mV

BOD_P

5


20

μs

The 24V is splitt up by the resistors R1 and R2. If it will drop below 1.14V with an hystresis of 60mV for more than 5μs to 20μs, an internal signal is generated.

The usage of this signal will depend on the kind of power supply that was monitored and how it is available inside the system.

In the netX90 the internal signal is bound to a bit of a register in the asic_ctrl and as an interrupt input of the nested vector interrupt controller (NVIC). The generated interupt might be used in case that the supervised voltage was the main power supply to finish critical tasks and close non reentrant contexts.

Panel
bgColor#ffffff
titleQ

Is there a driver available?

Panel
bgColor#ffffff
titleA

The peripheral driver package of the netX90 has an integration of the BOD as an input via the DIO drivers.

Code Block
languagecpp
firstline1
titleExample
#include "Examples.h"
#include "netx_drv.h"

void bodcallback(void* pvDriver, void* pvUser){
  __NOP();
}

void bodexample(void) {
  // Attach the BOD callback to the bod signal
  (void) DRV_DIO_ChannelIRQAttach(DRV_DIO_ID_BOD,bodcallback,(void*)0xaa55aa55);
  // Issue the interrupt controller to generate the interrupt for testing purposes
  DRV_NVIC_SetPendingIRQ(DRV_BOD_IRQ);
}
Panel
bgColor#ffffff
titleSee also...

Content by Label
showLabelsfalse
spaces@self
showSpacefalse
cqllabel = "faq" and space = currentSpace()
labelsfaq