Microchip PIC: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Manpaz (talk | contribs)
m Manpaz moved page Mu-pic to Microchip PIC
Manpaz (talk | contribs)
No edit summary
Line 1: Line 1:
__NOTOC__
= PIC =

== Cautions ==
== Cautions ==
=== Config ===
=== Config ===

Revision as of 07:02, 30 May 2013

Cautions

Config

  1. NEVER disable the PIC's /MCLR (Reset) pin function
  2. NEVER program a PIC 'in circuit' with ANY other connections to the target board

The config options must have always `MCLRE_ON` and a 10K pull-up resistor to Vdd.

Initialization

  1. ALWAYS set the input pins and clear the output pins, excepting UART TX/RX.
i.e. SDO should have TRISX bit cleared, SDI should have TRISX bit set.