Lost in the 162 datasheet

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm looking for the working range of the comparator with VCC = 5v. My gimwhatchet seems to go spastic if I get the input to about 3v, recovering a few seconds after bringing it back down. Perhaps I need to adjust the attenuator a little. The seizure continues after bringing the voltage back down and resetting the processor, so I'm guessing it's a problem with the analog circuit.

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use the analog comparator in this part to detect "zero" crossings at 2.5V and I don't have this problem. Did you:

• AIN1/TXD1 – Port B, Bit 3
AIN1, Analog Comparator Negative input. Configure the port pin as input with the internal
pull-up switched off to avoid the digital port function from interfering with the function
of the Analog Comparator.
• AIN0/RXD1 – Port B, Bit 2
AIN0, Analog Comparator Positive Input. Configure the port pin as input with the internal
pull-up switched off to avoid the digital port function from interfering with the function of
the Analog Comparator.

??

Sorry for non Da Ali G response.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think I did, but I'll check. Have to deal with a customer first :lol:

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead.