Some compatible 28pin 16 bit PIC families
PIC | Cores | Voltage | MIPS | Example |
dsPIC33CH * | Dual Core | 3.0 – 3.6V | 90/100 | dsPIC33CH64MP202 |
dsPIC33CK | Single Core | 3.0 – 3.6V | 100 | dsPIC33CK256MP502 |
* Note the CH parts are not currently supported by the Positron compiler
ICSP pin details The 16B board has these link-selectable pin pairs available:
Pair 1: PGD = 12, PGC = 13 Pair 2: PGD = 14, PGC = 15 Pair 3: PGD = 17, PGC = 18
PIC | /MCLR | PGD1 | PGC1 | PGD2 | PGC2 | PGD3 | PGC3 | ||
dsPIC33CHxxxMP502 dsPIC33CHxxxMP202 |
p27 | p17 | p18 | p12 | p13 | p14 | p15 | ||
dsPIC33CKxxxMP502 dsPIC33CKxxxMP202 |
p27 | p17 | p18 | p12 | p13 | p14 | p15 |
In bold are the most common ICSP pins for CH/CK devices. Pins 14, 15 are common to dsPIC33EP devices but 12, 13 are not. Note, there are possible clashes with I2C port pins.
I2C pin pairs
Port 1: SCL1 = 17, SDA1 = 18 Port 2: SCL2 = 15, SDA2 = 14
PIC | SCL1/SDA1 | SCL2/SDA2 | SCL3/SDA3 | Example device |
dsPIC33CH | 17, 18 | 15, 14 | – | dsPIC33CH64MP202 |
dsPIC33CK | 17, 18 | 15, 14 | 11, 16 | dsPIC33CK64MP202 |
SPI pins
These are only available via the re-mappable pins. 2 ports main, 1 secondary.
PIC | Port & Register | Comment |
dsPIC33CH (2core) |
Inputs:1 SDI1 & SCK1IN=RPINR20, /SS1=RPINR21 Inputs:2 SDI2 & SCK2IN=RPINR22, /SS2=RPINR23 Outputs:1 SDO1=RP5R, SCK1=RP6R /SS1=RP7R Outputs:2 SDO2=RP8R, SCK2=RP9R /SS2=RP10R |
2 main, (1 sec port) |
dsPIC33CK |
Inputs:1 SDI1 & SCK1IN=RPINR20, /SS1=RPINR21 Inputs:2 SDI2 & SCK2IN=RPINR22, /SS2=RPINR23 Inputs:3 SDI3 & SCK3IN=RPINR29, /SS3=RPINR30 Outputs:1 SDO1=RP5R, SCK1=RP6R /SS1=RP7R Outputs:2 SDO2=RP8R, SCK2=RP9R /SS2=RP10R Outputs:3 SDO3=RP11R, SCK3=RP12R /SS3=RP13R |
3 ports |
Board uses these pins: SCK1 = 16 (RP39), SDO1 = 17 (RP40), SDI1 = 18 (RP41), /SS1 = 9 (RP32) Note, there is a clash with one ICSP and I2C pair above.
UART pins & USB interface chip
TXD = RB0 (RP32) pin 9 RXD = RB1 (RP33) pin 10
PIC | Port & mappable pins register | Comment |
dsPIC33CH (2core) |
Inputs: U1RX=RPINR18, U2RX=RPINR19 Outputs: U1TX=RP1R, U2TX=RP3R |
2 + 1 ports |
dsPIC33CK |
Inputs: U1RX=RPINR18, U2RX=RPINR19, U3RX=RPINR27 Outputs: U1TX=RP1R, U2TX=RP3R, U3TX=RP27R |
3 ports |
SPEED
These devices are fast! See this user forum topic on getting CK devices, specifically the dsPIC33CK128MP202 to run at 200MHz List of devices supported by Positron compiler NOTE - no CH (dual core) devices currently supported.