Skip to content

Wiring diagram for pic16f887 #1

@vido89

Description

@vido89

Hi there !

I have old PIC 16f887 and I would like to program it using Arduino UNO, but it's not clear to me from this description

// Pin mappings for the PIC programming interface
#define PIN_ACTIVITY LED_BUILTIN // LED that indicates read/write activity
#define PIN_VDD      2           // 1: Power the PIC
#define PIN_MCLR     3           // 0: reset PIC, 1: MCLR is VPP voltage
#define PIN_CLOCK    4           // Clock pin
#define PIN_DATA     5           // Data pin
#define MCLR_RESET   LOW         // PIN_MCLR state to reset the PIC
#define MCLR_VPP     HIGH        // PIN_MCLR state to apply 13v to MCLR/VPP pin

how to connect my PIC to arduino UNO

Edit:
Should I connect
Pin 4 from arduino to pin PGC (Pin 39) Clock (ICSPCLK) on PIC and
Pin 5 from arduino to pin PGD (Pin 40) Data (ICSPDAT) on PIC ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions