• AVR Freaks

PicKit 2 with PIC16F886

Author
john_ive
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2017/05/22 22:22:08
  • Location: 0
  • Status: online
2019/08/25 22:33:34 (permalink)
0

PicKit 2 with PIC16F886

Please refer the image file.
 
Here i'm using PIC16F886
 
Two push button including PULLUP resistor are connected with RB7 and RB6 pins. When these two pins (RB6,RB7) are connected with PICKIT2 means it showing the error “Please check the voltage level”.
When the PULLUP resistor is removed means it working fine. Is it ok to use push button without using PULLUP resistor..?
Or is there any way to solve this issue..?

Attached Image(s)

#1

6 Replies Related Threads

    ric
    Super Member
    • Total Posts : 23585
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: PicKit 2 with PIC16F886 2019/08/25 22:49:40 (permalink)
    0
    Why are you using RB6 and RB7 for this?
    The PK2 instructions specifically tell you NOT to connect pullup resistors to those pins.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    john_ive
    Super Member
    • Total Posts : 204
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: online
    Re: PicKit 2 with PIC16F886 2019/08/25 23:26:24 (permalink)
    0
    shall we use an resistor like above between the switch and RB6,RB7.?

    Attached Image(s)

    #3
    ric
    Super Member
    • Total Posts : 23585
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: PicKit 2 with PIC16F886 2019/08/25 23:32:14 (permalink)
    0
    You ignored my question, WHY use those two pins for your buttons?
    Do you need this to work with the PK2 connected?
    Are you using the PK2 for debugging, or just programming?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    john_ive
    Super Member
    • Total Posts : 204
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: online
    Re: PicKit 2 with PIC16F886 2019/08/26 00:01:42 (permalink)
    0
    I used remaining pins for other operation,remaining these two pins only available.
    So I need to use this pins for switch.
     
    For programming the PIC controller only.
    #5
    pcbbc
    Super Member
    • Total Posts : 1253
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: online
    Re: PicKit 2 with PIC16F886 2019/08/26 01:41:10 (permalink)
    0
    Without the pull-up and with the switch open, the input pin will just be left floating. So this won’t work.
    You could put jumpers on your board and disconnect the pull-ups when you want to program.
    Or remove the pull-ups for the board and put them on a special plug you make and plug that into the programming header when not in use for programming.
    Of course this won’t help you debugging if you need to debug the operation of the switches.
    #6
    PStechPaul
    Super Member
    • Total Posts : 2378
    • Reward points : 0
    • Joined: 2006/06/27 16:11:32
    • Location: Cockeysville, MD, USA
    • Status: offline
    Re: PicKit 2 with PIC16F886 2019/08/26 23:40:37 (permalink)
    0
    Pullup resistors are usually on the order of 4.7k to 10k or higher - 1k causes 5 mA current when the switch is pressed. Try higher values - they might work. Otherwise, perhaps use pull-down resistors and put the switches from the input pins to Vdd. This is usually not recommended but might be necessary in this case.

     
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5