Difference between revisions of "Microchip PIC"
From Bashlinux
m (Manpaz moved page Mu-pic to Microchip PIC) |
|
(No difference)
|
Revision as of 07:00, 30 May 2013
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.
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.