Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
boards:sdxl [2015/03/09 09:15] – [Majenko SDXL] darron | boards:sdxl [2019/07/10 07:56] (current) – [Pickle Microchip PIC ICSP] darron | ||
---|---|---|---|
Line 11: | Line 11: | ||
A popular use of this board and the original is to run [[tools: | A popular use of this board and the original is to run [[tools: | ||
- | Since this is such a large device I chose to mount it adjacent to a bread-board | + | Since this is such a large device I chose to mount it adjacent to a solder-less breadboard |
rather than acquire a breadboard capable of housing it. This is something to | rather than acquire a breadboard capable of housing it. This is something to | ||
- | consider before | + | consider before |
+ | |||
+ | It must be pointed out that the PIC32MX795F512H only has a guaranteed cell endurance of 1000 erase/write cycles. It's hard to recommend this device for development work. | ||
=== Pinout === | === Pinout === | ||
Line 21: | Line 24: | ||
| | ||
| | ||
- | | + | |
- | | + | RX4 |
| | ||
- | | + | |
| | ||
| | ||
| | ||
- | 7 | + | TX4 |
- | | + | RX1 |
- | 9-TX RD3 RB8 | + | TX1 |
- | | + | |
- | | + | |
- | | + | |
| | ||
- | | + | |
- | | + | |
| | ||
| | ||
| | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
- | LED 23 RE7 RG6 | + | LED 23 RE7 RG6 |
| | ||
| | ||
Line 54: | Line 57: | ||
=== Pickle Microchip PIC ICSP === | === Pickle Microchip PIC ICSP === | ||
- | Using [[: | + | Using [[: |
== Configuration == | == Configuration == | ||
- | The device configuration will vary depending on what version of a RPi you have, here is an example for my RPi 2B (see bottom photo). | + | The device configuration will vary depending on what version of a [[boards: |
< | < | ||
Line 67: | Line 70: | ||
PGC=19 | PGC=19 | ||
PGD=13 | PGD=13 | ||
- | PGM=255 | + | PGM=-1 |
</ | </ | ||
Line 91: | Line 94: | ||
| | ||
</ | </ | ||
+ | |||
+ | === Boot loader === | ||
+ | |||
+ | USB boot loader firmware can be built with the [[: | ||
+ | |||
+ | Here we program the loader then verify it. | ||
+ | < | ||
+ | p32 program firmware/ | ||
+ | Total: 5648 | ||
+ | Time: 0:00.60s | ||
+ | p32 verify firmware/ | ||
+ | Total: 5648 Fail: 0 | ||
+ | Time: 0:00.47s | ||
+ | </ | ||
+ | |||
+ | === Standalone === | ||
+ | |||
+ | If you program this board without a boot loader you can use the following configuration which is the default used by this device. | ||
+ | < | ||
+ | /* DEVCFG3 */ | ||
+ | #pragma config FVBUSONIO = OFF | ||
+ | #pragma config FUSBIDIO = OFF | ||
+ | #pragma config FCANIO = ON | ||
+ | #pragma config FETHIO = ON | ||
+ | #pragma config FMIIEN = ON | ||
+ | #pragma config FSRSSEL = PRIORITY_7 | ||
+ | #pragma config USERID = 0x0000 | ||
+ | |||
+ | /* DEVCFG2 */ | ||
+ | #pragma config FPLLODIV = DIV_1 | ||
+ | #pragma config UPLLEN = ON | ||
+ | #pragma config UPLLIDIV = DIV_2 | ||
+ | #pragma config FPLLMUL = MUL_20 | ||
+ | #pragma config FPLLIDIV = DIV_2 | ||
+ | |||
+ | /* DEVCFG1 */ | ||
+ | #pragma config FWDTEN = OFF | ||
+ | #pragma config WDTPS = PS1024 | ||
+ | #pragma config FCKSM = CSECME | ||
+ | #pragma config FPBDIV = DIV_1 | ||
+ | #pragma config OSCIOFNC = OFF | ||
+ | #pragma config POSCMOD = EC | ||
+ | #pragma config IESO = OFF | ||
+ | #pragma config FSOSCEN = OFF | ||
+ | #pragma config FNOSC = PRIPLL | ||
+ | |||
+ | /* DEVCFG0 */ | ||
+ | #pragma config CP = OFF | ||
+ | #pragma config BWP = OFF | ||
+ | #pragma config PWP = OFF | ||
+ | #pragma config ICESEL = ICS_PGx2 | ||
+ | #pragma config DEBUG = OFF | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Resources === | ||
+ | [[http:// |