Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Got to be able to do something with this? iots in the data sheet and they never lie --lolThe HLVD module has an additional feature that allows
the user to supply the trip voltage to the module from an
external source. This mode is enabled when bits,
HLVDL<3:0>, are set to ‘1111’. In this state, the
comparator input is multiplexed from the external input
pin, HLVDIN. This gives users flexibility because it
allows them to configure the High/Low-Voltage Detect
interrupt to occur at any voltage in the valid operating
range.
I connected it up and dosn't make much difference between setting bit 7 or not.
...Am rethinking this HLVD for detecting the battery status and contemplating just using a voltage divider connected to say portA.0 and use the ADC feature. Have a button press to apply the battery voltage to the port.
Using the same HLVD code that Jon posted over at DDIY etc.
I guess the data sheet is full of hot air as I suspected.
The HLVD module has an additional feature that allows
the user to supply the trip voltage to the module from an
external source. This mode is enabled when bits,
HLVDL<3:0>, are set to ‘1111’. In this state, the
comparator input is multiplexed from the external input
pin, HLVDIN. This gives users flexibility because it
allows them to configure the High/Low-Voltage Detect
interrupt to occur at any voltage in the valid operating
range.
There are however a couple limitations:
It can only be used to measure VDD, so it cannot be used to monitor a battery supplying power through a voltage regulator.
Device = 18F2420
Clock = 20
// external xtal
Config OSC = HS
// import usart and conversion modules...
Include "usart.bas"
dim led as porta.0
SetBaudrate(br9600)
While true
led=1
delayms(1000)
toggle(led)
USART.Write("Hello World",13,10)
DelayMS(1000)
Wend