Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAISE_V*(), LOWER_V*(), VPP_BEFORE_VDD macros #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

psmay
Copy link

@psmay psmay commented Jun 11, 2014

  • Added macros to make experimenting with other interface hardware easier.
    • RAISE_VPP(), RAISE_VDD(), LOWER_VPP(), LOWER_VDD() call their digitalWrite() counterparts.
    • VDD_ON and VDD_OFF complement MCLR_VPP and MCLR_RESET as a means to change Vdd from active-high to active-low.
    • Previous behavior remains the default.
  • Added VPP_BEFORE_VDD define. When true (default), Vpp is raised before Vdd when entering program mode (this is the previous behavior). When false, Vdd is raised before Vpp instead.
  • I needed to mess with this for my 16F88, probably due to an internal oscillator setting that needed to be cleared.

…sier.

    *   `RAISE_VPP()`, `RAISE_VDD()`, `LOWER_VPP()`, `LOWER_VDD()` call their `digitalWrite()` counterparts.
    *   `VDD_ON` and `VDD_OFF` complement to `MCLR_VPP` and `MCLR_RESET` as a means to change Vdd from active-high to active-low.
    *   Previous behavior remains the default.
*   Added `VPP_BEFORE_VDD` define. When true (default), Vpp is raised before Vdd when entering program mode (this is the current behavior). When false, Vdd is raised before Vpp instead.
    *   I needed to set this to false for my 16F88, probably due to an internal oscillator setting that needed to be cleared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant