USBPIC board for 18F{2450,2455,2553,etal} Version 3, for extended boards: TRANS, MATRIX, HBSW ***************** possible CHIPS, all 28 pin SOIC *********************** PIC18F devices, 20Mhz clock, USB: num flash RAM ADC SPI ~$ notes 2221 4Kb 512 10bit yes 3.5 No USB 2321 8Kb 512 10bit yes 3.8 No USB 2450 16Kb 768 10bit no 4 256 bytes of ram USB only 2455 24Kb 2048 10bit yes 6 " 2550 32Kb 2048 10bit yes 6.3 " 2553 32Kb 2048 12bit yes 8 " -- BitWhacker ***************** PIC PIN AND I/O CONNECTOR ASSIGNMENTS ***************** ----------------- Common to all boards ----------------------- Power -- header with gnd, VDD, external-power (for OC drivers) PIC pin and function VUSB 14 Internal USB 3.3V voltage regulator VSS 8 Ground VSS 19 Ground VDD 20 Power Crystal OSC1 9 Xtal OSC2/RA6 10 Xtal USB I/O -- USB connector with gnd, VDD RC4/D- 15 TTL USB- RC5/D+ 16 TTL USB+ ICSP programming -- header with GND, VDD (pinout to match PICkit 2 ICSP connectors) (RB6,7 shadowed in/out, optional resistor isolated) PIC pin and function I/O Connector pinout MCLR/VPP 1 Reset-ICSP-Program 1 VDD 20 +5v power 2 GND 19 power ground 3 RB7/PGD 28 TTL Int ICSP-PGD in/pgm 4 RB6/PGC 27 TTL Int ICSP-PGC in/pgm 5 RC2/CCP1 13 TTL CCP1 PWMout (aux PGM) 6 Analog IN -- opamp inputs (with bypass jumpers to go direct to chip) header with differential inputs, gnd, VDD (note: this is the only setup where 4-ADCs can be configured) (note: the matrix board uses RA3 as an output, so only 3 ADC available) PIC pin and function I/O Connector pinout +in -in RA0/AN0 2 TTL Analog in 13 15 RA1/AN1 3 TTL Analog in 9 11 RA2/AN2 4 TTL Analog in 5 7 RA3/AN3 5 TTL Analog in 1 3 VDD +5v power 2,6,10,14 GND power ground 4,8,12,16 ----------------- TRANS board ----------------------- Eight open-drain FET driver outputs, diode across out-power header with outputs, gnd, V+ PIC pin and function I/O Connector pinout RA4/C1OUT 6 TTL CompOut out1A RA5/AN4/SS 7 TTL Analog SPI-slave out1B RB2/AN8/I2 23 TTL Analog Int out1C RB3/AN9/CC 24 TTL Analog out1D RB4/AN11/IO 25 TTL Analog Int out2A RC0/T1OSO 11 TTL T1in out2B RC1/T1OSI 12 TTL CCP2 PWMout (2453) out2C RC2/CCP1 13 TTL CCP1 PWMout (shadowed) out2D Digital I/O -- Misc I/O or Serial Communications (2450 has no SPI) header with gnd, VDD (note: RB pins have optional internal input pull-up resistor) (note: pinout changed vis Version1 board) PIC pin and function I/O Connector pinout RC2/CCP1 13 TTL CCP1 PWMout (shadowed) in/out 1 RB1/SCK 22 TTL Int An SPI-clk I2C comm 3 RB0/SDI 21 TTL Int An SPI-in I2C comm 5 RC7/RX/SDO 18 TTL U-RX SPI-out comm 7 RC6/TX/CK 17 TTL U-TX SyncCK comm 9 RB5/PGM 26 TTL Int LVPgm -- LED -- in/out 11 RB7/PGD 28 TTL Int ICSP (shadowed) in/pgm 13 RB6/PGC 27 TTL Int ICSP (shadowed) in/pgm 15 VDD +5v power 2,6,10,14 GND power ground 4,8,12,16 ----------------- MATRIX board ----------------------- Eight outputs via ULN/UDN chip -- nominally ULN2803 pull-down driver shared header with outputs, gnd, V+ (note: replaces Misc Digital I/O on TRANS board and coopts RB5/LED) PIC pin and function I/O Connector pinout RB0/SDI 21 TTL Int An SPI-in I2C PD0 11 RB1/SCK 22 TTL Int An SPI-clk I2C PD1 13 RB2/AN8/I2 23 TTL Analog Int PD2 15 RB3/AN9/CC 24 TTL Analog PD3 17 RB4/AN11/IO 25 TTL Analog Int PD4 18 RB5/PGM 26 TTL Int LVPgm -- LED -- PD5/led 16 RB6/PGC 27 TTL Int ICSP (shadowed) PD6/pgm 14 RB7/PGD 28 TTL Int ICSP (shadowed) PD7/pgm 12 V+ +V power/jumper 20 GND power ground 19 Eight outputs via ULN/UDN chip -- nominally UDN2982 pull-up driver (can also be a second ULN2803 pull-down driver) shared header with outputs, gnd, V+ (note: replaces Misc Digital I/O on TRANS board and coopts RA3/AN3) PIC pin and function I/O Connector pinout RC2/CCP1 13 TTL CCP1 PWMout (shadowed) PU0 10 RC1/T1OSI 12 TTL CCP2 PWMout (2453,5) PU1 8 RC0/T1OSO 11 TTL T1in PU2 6 RA5/AN4/SS 7 TTL Analog SPI-slave PU3 4 RA4/C1OUT 6 TTL CompOut PU4 3 RA3/AN3 5 TTL Analog PU5 5 RC6/TX/CK 17 TTL U-TX SyncCK PU6 7 RC7/RX/SDO 18 TTL U-RX SPI-out PU7 9 V+ +V power/jumper 2 GND ground/jumper 1 ---------------------- HBSW board ----------------------- Two H-bridge driver outputs using L298, diode shunts across out-power PIC pin and function I/O Connector pinout J4 outputs RB1/SCK 22 TTL Int An SPI-clk I2C IAc 1 RB0/SDI 21 TTL Int An SPI-in I2C IAd 2 RA4/C1OUT 6 TTL CompOut EnA RB2/AN8/I2 23 TTL Analog Int IBc 3 RB3/AN9/CC 24 TTL Analog IBd 4 RA5/AN4/SS 7 TTL Analog SPI-slave EnB Four open-drain FET driver outputs, diode across out-power PIC pin and function I/O Connector pinout J5 outputs RB4/AN11/IO 25 TTL Analog Int out2A 5 RC0/T1OSO 11 TTL T1in out2B 4 RC1/T1OSI 12 TTL CCP2 PWMout (2453,5) out2C 3 RC2/CCP1 13 TTL CCP1 PWMout (shadowed) out2D 2 Digital I/O -- Misc I/O or Serial Communications (2450 has no SPI) header with gnd, VDD (note: RB pins have optional internal input pull-up resistor) (note: pinout changed vis Version1 board) PIC pin and function I/O Connector pinout J2 pinout RC2/CCP1 13 TTL CCP1 PWMout (shadowed) in/out 1 RC7/RX/SDO 18 TTL U-RX SPI-out comm 7 RC6/TX/CK 17 TTL U-TX SyncCK comm 9 RB5/PGM 26 TTL Int LVPgm -- LED -- in/out 11 RB7/PGD 28 TTL Int ICSP (shadowed) in/pgm 13 RB6/PGC 27 TTL Int ICSP (shadowed) in/pgm 15 VDD +5v power 2,6,10,14 GND power ground 4,8,12,16 ******************** CONFIG information ******************************** CONFIGURATION BITS value: 0E24 1E3A 8100 0081 PLLDIV = 5 Phase Lock Prescaler, for 20Mhz clock CPUDIV = OSC1_PLL2 CPU Clock Postscaler, src /2 USBDIV = 2 USB clock, 96MHz PLL/2 FOSC = HSPLL_HS Oscillator, HS, PLL enabled, HS-USB PWRT = ON Power-up timer, enabled BOR = SOFT Brown-out reset, software controlled BORV = 3 Brown-out voltage, minimum -- doesn't work on 2450 VREGEN = ON USB voltreg, enabled WDT = OFF WAtchdog timer, software controlled MCLRE = ON Master clear, enabled: RE3 is MCLR PBADEN = OFF PortB A/D, bits 0-4 default to digital I/O LVP = OFF LowVoltProg, disabled