Difference between revisions of "Microchip PIC"

From Bashlinux
Jump to: navigation, search
Line 2: Line 2:
 
= PIC =
 
= PIC =
   
  +
== Cautions ==
  +
=== Config ===
 
# NEVER disable the PIC's /MCLR (Reset) pin function
 
# 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.
<pre><nowiki>#!wiki caution
 
'''JDM specific warnings'''
 
   
  +
=== Initialization ===
1. NEVER disable the PIC's /MCLR (Reset) pin function
 
  +
# ALWAYS set the input pins and clear the output pins, excepting UART TX/RX.
2. NEVER program a PIC 'in circuit' with ANY other connections to the target board
 
  +
i.e. SDO should have TRISX bit cleared, SDI should have TRISX bit set.
</nowiki></pre>
 
 
 
The config options must have always `MCLRE_ON` and a 10K pull-up resistor to Vdd.
 

Revision as of 08:14, 14 April 2011

PIC

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.