How to disable CVREF on PIC16F690?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378

    Default How to disable CVREF on PIC16F690?

    The data sheet for the 16F690 says that one of the things to do to minimize power during SLEEP mode is to disable CVREF. I looked at all the registers and can't find where I can disable CVREF. Can anyone tell me how to do this?

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    CV1REN, CV2REN and VP6EN bits of the VRCON Register.

    See 8.10.1 and Register Table 8-5.

  3. #3
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Same question for T0CKI?

    Thanks so much Melanie. As much as I searched the data sheet I somehow missed this.
    I have a similar question regarding T0CKI. Data sheet sheet says to minimize power during SLEEP the T0CKI pin should be at Vdd or Vss. Since T0CKI is multiplexed win pin RA2, I have been searching datasheet looking at how to select T0CKI and only register I see it referenced in is OPTION_REG bits 4 and 5. Don't see T0CKI mentioned in any other registers.
    If I set bits 4 and 5 to 1 in OPTION_REG does that select T0CKI on pin RA2??? If that is the way to make the selection, I presume I would then just make the PBASIC statement PortA.2 = 0 to set it to Vdd for minimum power consumption????

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Tricky... simply setting the pin to Output could clash with whatever external circuitry you're using to drive the Clock. Obviously what Microchip wants you to do is not toggle the pin, that will naturally stop the PICs internals from doing their thing. If you have a pull-up on that pin, pulling it to 0v will start drawing current... a little more thought is needed as to what how and where before a decision is made on this one.

Similar Threads

  1. PIC16F690 code help please
    By hysteria92 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 24th February 2010, 16:17
  2. Replies: 1
    Last Post: - 19th February 2009, 13:35
  3. Replies: 0
    Last Post: - 13th February 2009, 03:34
  4. Migrating from PIC16F690 to PIC18F4525 and having LCD issues
    By jblackann in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th June 2008, 20:05
  5. Enable and Disable in Interrupts
    By stevecrunch in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th October 2007, 01:10

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts