Microchip PIC
From Bashlinux
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
Circuit Design
- ALWAYS set
MCLRE_ONin the config options and haveMCLRpin with a 10K pull-up resistor to Vdd.
Initialization
- 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.