Microchip MEB II board

Serge Vakulenko edited this page Mar 5, 2015 · 23 revisions

WiFire

Microchip Multimedia Expansion Board II (manual and schematics) is a flexible development platform, which works with PIC32MZ EC Starter Kit (manual and schematics).

Features of MZ Starter Kit:

  • PIC32MZ microcontroller 200 MHz (MIPS architecture, DSP, 2Mb Flash and 512Kb RAM)
  • HI-speed USB 2.0 port with host/device/dual OTG role
  • USB 2.0 OTG controller with USB and micro-USB connectors
  • Ethernet port 10/100Base-T
  • SMSC LAN8740A PHY daughter board (Alternatives: LAN8720, IP101G, LAN9303)
  • On-board oscillator 24 MHz
  • Three user LEDs
  • Three user buttons
  • Integrated debugger/programmer with mini-USB connector
  • ICSP port
  • 3.3V operating voltage
  • USB powered

Features of MEB-II:

  • Microchip MRF24WG0MA WiFi module
  • Bluetooth transceiver
  • 4.3” touch display
  • 24-bit stereo audio codec
  • mTouch sensing buttons
  • Analog temperature sensor
  • Analog accelerometer
  • VGA camera
  • Micro SD card connector
  • PICtail connector

Memory:

  • 2 Mbytes of program Flash memory
  • 512 kbytes of RAM
  • 160 kbytes of boot Flash memory
  • 4 Mbytes of external SQI Flash on Starter Kit board
  • 2 Mbytes of external EBI SRAM on MEB-II board

A rich set of peripheral functions is available: UART, SPI, I2C, I2S, ADC, timers. Two internal oscillators available: 8 MHz and 32 kHz.

Signals

LEDs/Buttons

Signal PIC32 Pin Type SK Pin Function
RH0 RH0 O 113 LED1 on SK (red), LED1 on MEB-II
RH1 RH1 O 115 LED2 on SK (yellow), LED3 on MEB-II
RH2 RH2 O 62 LED3 on SK (green), LED2 on MEB-II
RH6 AN42/ERXD2/RH6 O 92 LED4 on MEB-II
RH11 EBIRDY2/RH11 O 84 LED5 on MEB-II
RB12 AN7/RB12 I --- Button S1 on SK
RB13 AN8/RB13 I --- Button S2 on SK
RB14 AN9/RPB14/SCK3/RB14 I --- Button S3 on SK
RA0 TMS/RA0 I 4 Fire Button on MEB-II

microSD

Signal PIC32 Pin Type SK Pin Function
SD_DATA3/SD_CD AN9/RPB14/SCK3/RB14 I/O 163 Data 3/Card Detect
SD_DATA2 N/C I/O 164 Data 2
SD_DATA1 AN45/C1INA/RPB5/RB5/VBUSON I/O 165 Data 1
SD_DATA0 ETXCLK/RPD7/RD7 I/O 168 Data 0
SD_CLK AN14/C1IND/RPG6/SCK2/RG6 O 167 Clock
SD_CMD AN12/C2IND/RPG8/SCL4/RG8 O 166 Command
RJ5 EBICS1/RJ5 I 76 Mechanical Card Detect

Ethernet

Signal PIC32 Pin Type PHY Pin Function
ETXEN ETXEN/RPD6/RD6 O 1 Transmit enable
ETXD0 AN35/ETXD0/RJ8 O 2 Transmit data 0
ETXD1 AN36/ETXD1/RJ9 O 3 Transmit data 1
ERXD1 AN41/ERXD1/RH5 I 15 Receive data 1
ERXD0 ERXD0/RH8 I 16 Receive data 0
ERXERR AN40/ERXERR/RH4 I 17 Receive error
ECRS/RH13 ERXDV/ECRSV/RH13 I 18 Receive data valid
EMDC EMDC/AEMDC/RPD11/RD11 O 19 SMI Clock
EMDIO EMDIO/AEMDIO/RJ1 I/O 20 SMI Data
SOSCI/RC13 SOSCI/RPC13/RC13 I 21 PHY interrupt request

Wi-Fi

Signal PIC32 Pin Type SK Pin Function
INT0 INT0/RD0 I 14 Wi-Fi Interrupt
RH14 EBIADV/RH14 O 85 Sleep
SDI4 AN13/C1INC/RPG7/SDA4/RG7 I 89 Serial Data Out
SDO4 AN3/C2INA/RPB3/RB3 O 105 Serial Data In
SS4 AN26/RPE9/RE9 O 95 Chip Select
RJ0 ETXERR/RJ0 O 120 Reset
SCK4 RPD10/SCK4/RD10 I/O 114 Serial Clock

Bluetooth

Signal PIC32 Pin Type SK Pin Function
SCK2 AN14/C1IND/RPG6/SCK2/RG6 I 87 Serial Transmit
RB2 AN2/C2INB/RPB2/RB2 O 107 Regulator Enable
U2RTS ETXCLK/RPD7/RD7 O 122 Request-to-Send
U2CTS AN12/C2IND/RPG8/SCL4/RG8 I/O 91 Serial Clear-to-Send
U2TX AN9/RPB14/SCK3/RB14 O 88 Serial Receive/mTouch Button Analog Channel

Analog

Signal PIC32 Pin Type SK Pin Function
AN6 AN6/RB11 O 119 Accelerometer X-axis Out
AN7 AN7/RB12 O 121 Accelerometer Y-axis Out
AN8 AN8/RB13 O 123 Accelerometer Z-axis Out
AN23 RG15 I 23 Temperature Sensor

Audio Codec

Signal PIC32 Pin Type SK Pin Function
SS1 TDO/RF12 O 1 Left-Right Clock
RH3 RH3 O 64 Audio Power Down
SDA2 SDA2/RA3 I/O 82 I2C Data
SDI1 AN32/AETXD0/RPD14/RD14 I 94 Audio Serial Data Output
REFCLKO1 AN33/RPD15/SCK6/RD15 O 96 External Master Clock Input
SCL2 SCL2/RA2 I/O 112 Serial Clock
SDO1 CVREFOUT/AN5/RPB10/RB10 O 117 Audio Serial Data Input
SCK1 RPD1/SCK1/RD1 O 118 Audio Bit Clock

EBI-SRAM/Display

Signal PIC32 Pin Type SK Pin Function
RB1 PGEC1/AN1/RPB1/RB1 O 7 Horizontal Sync
EBIWE EBIWE/PMWR/RC3 O 68 Pixel Clock
RJ3 EBIA22/RJ3 O 77 Reset
EBICS2 EBICS2/RJ6/SQI_PWR O 78 Chip Select
RB4 AN4/C1INB/RB4 O 103 Data Enable
RH9 ERXD3/RH9 O 108 Vertical Sync
RH13 ECRS/RH12 O 116 Stand-by
EBID15 EBID15/PMD15 I/O 131 R0
LCD_B7 (EBID4/PMD4) I/O 132 B7
LCD_R1 (EBID15/PMD15) I/O 133 R1
EBID3 EBID3/PMD3 I/O 134 B6
LCD_R2 (EBID15/PMD15) I/O 135 R2
EBID2 EBID2/PMD2 I/O 136 B5
EBID11 EBID11/PMD11 I/O 137 R3
EBID1 EBID1/PMD1 I/O 138 B4
EBID12 EBID12/PMD12 I/O 139 R4
EBID0 EBID0/PMD0 I/O 140 B3
EBID13 EBID13/PMD13 I/O 141 R5
EBID4 EBID4/PMD4 I/O 142 B2
EBID14 EBID14/PMD14 I/O 143 R6
LCD_B1 (EBID4/PMD4) I/O 144 B1
LCD_R7 (EBID15/PMD15) I/O 145 R7
LCD_B0 (EBID4/PMD4) I/O 146 B0
EBID10 EBID10/PMD10 I/O 147 G0
LCD_G7 (EBID10/PMD10) I/O 148 G7
LCD_G1 (EBID10/PMD10) I/O 149 G1
EBID9 EBID9/PMD9 I/O 150 G6
EBID5 EBID5/PMD5 I/O 151 G2
EBID8 EBID8/PMD8 I/O 152 G5
EBID6 EBID6/PMD6 I/O 153 G3
EBID7 EBID7/PMD7 I/O 154 G4
EBIOE EBIOE/PMRD/RC4 O 155 Pixel Clock

Touch

Signal PIC32 Pin Type SK Pin Function
MCLR ICSP_MCLR_VPP_TARGET I/O 13 Touch Controller Reset (System Reset in general)
RH10 ECOL/RH10 O 110 Touch Wake-up
SCL1 RPA14/SCL1/RA14 I/O 124 Serial Clock
SDA1 RPA15/SDA1/RA15 I/O 126 Serial Data
INT1 AN25/RPE8/RE8 I 93 Touch Interrupt

mTouch button

Signal PIC32 Pin Type SK Pin Function
AN42 AN42/ERXD2/RH6 I 92 Touch Button B1
AN28 VREF+/RA10 I 111 Touch Button B2

Camera

Signal PIC32 Pin Type SK Pin Function
RB0 PGED1/AN0/RPB0/RB0 O 5 LDO Shutdown
OC5 AN10/RPB15/OCFB/RB15 O 90 System Input Clock
RJ7 EBICS3/RJ7 O 80 Power Down
SCL3 SCL3/RPF8/RF8 I/O 106 Serial Clock
SDA3 SDA3/RPF2/RF2 I/O 104 Serial Data
INT2 SQICS0/RPD4/RD4 I 19 Camera Pixel Clock
RA1 TCK/RA1 I 2 Horizontal Sync
RA9 EBIRDY3/RJ2 I 86 Vertical Sync

EBI-SRAM

Signal PIC32 Pin Type SK Pin Function
EBIA1/RK1 EBIA1/PMA1 I/O 27 Address 1/Camera Data 1
EBIA3/RK2 EBIA3/PMA3 I/O 31 Address 3/Camera Data 2
EBIA16/RK0 EBIA16/RK0 I/O 61 Address 16/Camera Data 0
EBIA17/RK3 EBIA17/RK3 I/O 63 Address 17/Camera Data 3
EBIA18/RK4 EBIA18/RK4 I/O 65 Address 17/Camera Data 4
EBIA19/RK5 EBIA19/RK5 I/O 67 Address 17/Camera Data 5
EBIA20/RK6 EBIA20/RK6 I/O 73 Address 17/Camera Data 6
EBIA21/RK7 EBIA21/RK7 I/O 75 Address 17/Camera Data 7
EBIA0 EBIA0/PMA0/RJ15 O 25 Address 0
EBIA2 EBIA2/PMA2/RG9 O 29 Address 2
EBIA4 EBIA4/PMA4 O 33 Address 4
EBIA5 EBIA5/PMA5/RA5 O 35 Address 5
EBIA6 EBIA5/PMA5/RA5 O 37 Address 6
EBIA7 EBIA7/PMA7 O 43 Address 7
EBIA9 EBIA9/PMA9 O 47 Address 9
EBIA10 EBIA10/PMA10/RB8 O 49 Address 10
EBIA11 EBIA11/PMA11/RB12 O 51 Address 11
EBIA12 EBIA12/PMA12/RC2 O 53 Address 12
EBIA13 EBIA13/PMA13/RJ13 O 55 Address 13
EBIA14 EBIA14/PMCS1/PMA14/RA4 O 57 Address 14
EBIA15 EBIA15/PMCS2/RD9 O 59 Address 15
EBIA23 EBIA23/RH15 O 79 Sleep Enable
EBIBS0 EBIBS0/RJ12 O 81 Bank Select 0 (Lower Bank)
EBIBS1 EBIBS1/RJ10 O 83 Bank Select 1 (Upper Bank)

PICtail Connector

J2 PIC32 Pin Function
1 --- +3.3V
2 EBIRDY3/RJ2 LCD_VSYNC
3 SCL2/RA2 AUDIO_SCL
4 RPA14/SCL1/RA14 TOUCH_SCL
5 SDA2/RA3 AUDIO_SDA
6 RPA15/SDA1/RA15 TOUCH_SDA
7 AN13/C1INC/RPG7/SDA4/RG7 WIFI_SDO
8 AN13/C1INC/RPG7/SDA4/RG7 WIFI_SDO
9 AN12/C2IND/RPG8/SCL4/RG8 BT_RTS, SD_DATA0
10 AN3/C2INA/RPB3/RB3 WIFI_SDI
11 AN14/C1IND/RPG6/SCK2/RG6 BT_TX, SD_CLK
12 RPD10/SCK4/RD10 WIFI_SCK
13 RPF3/USBID/RF3 SS2
14 TDO/RF12 AUDIO_LRCK
15 AN32/AETXD0/RPD14/RD14 AUDIO_SDTO
16 RPD10/SCK4/RD10 WIFI_SCK
17 VREF+/RA10 Touch Button B2
18 AN3/C2INA/RPB3/RB3 WIFI_SDI
19 AN9/RPB14/SCK3/RB14 BT_RX, SD_CD
20 AN9/RPB14/SCK3/RB14 BT_RX, SD_CD
21 CVREFOUT/AN5/RPB10/RB10 AUDIO_SDTI
22 AN10/RPB15/OCFB/RB15 CAM_XVCLK
23 PGED1/AN0/RPB0/RB0 CAM_LDO_SHDN
24 AN26/RPE9/RE9 WIFI_CS
25 RPD1/SCK1/RD1 AUDIO_BICK
26 --- +3.3V
27 TDO/RF12 AUDIO_LRCK
28 --- GND

Serial port

For LiteBSD console, I use an external TTL-to-USB adapter wired to three pins of PICtail connector:

USB-to-Serial

J2 PIC32 Pin Function TTL-to-USB adapter
4 RA14 U1RX TX
6 RA15 U1TX RX
28 --- GND GND

In case these pins don't work for you for some reason, you can find alternatives on page: PIC32MZ UART pins.

Default configuration words

Programmer for Microchip PIC32 microcontrollers, Version 1.118M
    Copyright: (C) 2011-2014 Serge Vakulenko
      Adapter: PICkit2 Version 2.32.0
    Processor: MZ2048ECH144 (id 45127053)
 Flash memory: 2048 kbytes
  Boot memory: 80 kbytes
Configuration:
    DEVCFG0 = ffffcff7
                     3 Debugger disabled
                     4 JTAG enabled
                     8 Use PGC2/PGD2
                   3   Flash ECC disabled, unlocked
                  1    Deny Debug access to group 0 regions
                  2    Deny Debug access to group 1 regions
    DEVCFG1 = 7f743839
                     1 System PLL
                   0   Primary oscillator: External
    DEVCFG2 = fff9b11a
                     2 PLL divider: 1/3
                    1  PLL input frequency range: 5-10 MHz
                  31   PLL feedback divider: x50
                 1     PLL postscaler: 1/2
              4        USB PLL input clock: 24 MHz
              8        Enable USB PLL
    DEVCFG3 = bfffffff
               1       Ethernet MII interface enable
               2       Default Ethernet pins
               8       Permission Group Lock - only 1 reconfig
              1        Peripheral Module Disable - only 1 reconfig
              2        Peripheral Pin Select - only 1 reconfig
                       USBID pin: controlled by port
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.