MicroSTM4 User Manual
MicroSTM4 User Manual
MicroSTM4
ARM Cortex-M4
Development Board
Hardware User Manual
www.microembedded.in
1.0 Introduction................................................................................................................. 3
1.1 Overview ........................................................................................................................................................... 3
1.2 Development Board Features.................................................................................................................... 3
1.3 MicroSTM4 Board Layout. .......................................................................................................................... 4
2.0 Hardware: Functional Description and Interfacing. ...................................... 5
2.1 LED. ................................................................................................................................................................... 5
2.2 16 keys 4x4 Matrix Keypad. ..................................................................................................................... 5
2.3 16x2 Character LCD .................................................................................................................................... 6
2.4 Multiplexed Seven Segment Display. .................................................................................................... 6
2.5 SD/MMC Card. ............................................................................................................................................... 7
2.6 USB Interface. ................................................................................................................................................ 7
2.7 Controller Area Network (CAN) Interface.......................................................................................... 7
2.8 10/100 Mbps Ethernet. ............................................................................................................................. 8
2.9 Digital Input Switches (DIP) .................................................................................................................... 8
2.10 I2C Interface (EEPROM). ......................................................................................................................... 8
2.11 Motors. ............................................................................................................................................................ 9
2.12 Serial Communication using UART (USB to Serial)....................................................................... 9
2.13 Analog to Digital Converter (ADC)....................................................................................................... 9
2.14 Digital to Analog Convertor (DAC). ..................................................................................................... 9
2.15 Relays. ........................................................................................................................................................... 10
2.16 Camera Header Details. .......................................................................................................................... 10
2.17 Nand Flash Header Details.................................................................................................................... 10
2.18 ADC Header Details. ................................................................................................................................ 11
2.19 I2C/I2S/SPI/UART Header Details ................................................................................................... 11
2.20 TFT LCD Header Interface Details. ..................................................................................................... 12
2.21 MicroConnect Header Details. .............................................................................................................. 12
1.0 Introduction.
1.1 Overview
The ARM Cortex M4 processor is the industry-leading 32-bit processor for highly
deterministic real-time applications, specifically developed to enable development of high-
performance low-cost microcontroller systems, automotive body systems, industrial control
systems and wireless networking and sensors. The processor delivers outstanding
computational performance and exceptional system response to events while meeting the
challenges of low dynamic and static power constraints. The processor is highly configurable
enabling a wide range of implementations from those requiring memory protection and
powerful trace technology to cost sensitive devices requiring minimal area.
MicroSTM4 Microcontroller Kit is specifically designed keeping in mind the needs of
students, to understand and learn the architecture of the microcontroller based on Cortex M4.
The MicroSTM4 kit has interfaced the Cortex-M4core based SOC (system on chip), to
various peripherals on the board. Devices like LED’s and LCD, I2C interface based memory
devices, RTC, SD/MMC Card interface, Matrix Keypad, ADC, DAC, graphical LCD, motors, CAN
etc are also interfaced on the board.
The MicroSTM4 microcontroller board has been specifically designed keeping in mind the
needs of students for learning the ARM CortexM4 MCU architecture. The board gives a
complete overview for interfacing various peripheral devices which are used in the industry
and consumer devices alike. A hands-on with the board will develop in the student the
experience to design and implement various devices and products based on the ARM
Microcontroller.
2.1 LED.
General purpose LED’s are interfaced on the STM32F407board. They are connected in the
common cathode circuit.
Note: since we have interfaced multiple devices on some pins, in order to use the LED
interface, set switch SW32 between 1-2 (LED_ON) and switch SW33 between 1-2.
Also make all the connections between jumper J1 and J2.
Pin Details
LED
STM32F407 Description
LED 1 PC0 Common Cathode LED 0
LED 2 PC2 Common Cathode LED 1
LED 3 PC3 Common Cathode LED 2
LED 4 PE3 Common Cathode LED 3
LED 5 PB0 Common Cathode LED 4
LED 6 PB1 Common Cathode LED 5
LED 7 PB2 Common Cathode LED 6
LED 8 PB10 Common Cathode LED 7
Pin Details
Keypad
STM32F407 Description
COL 1 PB14 Keypad COL 1 Signal
COL 2 PB15 Keypad COL 2 Signal
COL 3 PC8 Keypad COL 3 Signal
COL 4 PC9 Keypad COL 4 Signal
ROW 1 PC15 Keypad ROW 1 Signal
ROW 2 PC14 Keypad ROW 2 Signal
ROW 3 PC13 Keypad ROW 3 Signal
ROW 4 PC12 Keypad ROW 4 Signal
Pin Details
16x2 Character LCD
STM32F407 Description
D0 PE11 LCD Data Bit 0
D1 PE12 LCD Data Bit 1
D2 PE13 LCD Data Bit 2
D3 PE14 LCD Data Bit 3
D4 PE15 LCD Data Bit 4
D5 PD7 LCD Data Bit 5
D6 PD8 LCD Data Bit 6
D7 PD9 LCD Data Bit 7
EN PH1 LCD Enable Signal
RS PD10 LCD Register Select
RW GND LCD Read Write
Pin Details
Seven Segment
STM32F407 Description
A PC6 Seven Segment A
B PC7 Seven Segment B
C PE0 Seven Segment C
D PE1 Seven Segment D
E PE2 Seven Segment E
F PE4 Seven Segment F
G PE5 Seven Segment G
DP PE6 Seven Segment DP
SEG_SEL1 PA4 Seven segment select 1
SEG_SEL2 PA6 Seven segment select 2
SEG_SEL3 PB6 Seven segment select 3
SEG_SEL4 PB7 Seven segment select 4
Pin Details
USB Device
STM32F407 Description
VBUS PA9 USB Power Line
D+ PA12 Data Bus +
D- PA11 Data Bus -
Pin Details
USB Host
STM32F407 Description
D- PA11 OTG_FS_DM
D+ PA12 OTG_FS_DP
ID PA9 OTG_FS_ID
VBUS PA10 OTG_FS_VBUS
Pin Details
CAN
STM32F407 Description
CAN_TX PB13 CAN1 Transmit
CAN_RX PB12 CAN1 Receive
Pin Details
ETHERNET
STM32F407 Description
RMII_TX_D0 PB12 Transmit Data 0
RMII_TX_D1 PB13 Transmit Data 1
RMII_TX_EN PB11 Transmit Enable Signal
RMII_RX_D0 PC4 Receive Data 0
RMII_RX_D1 PC5 Receive Data 1
RMII_CRS_DV PA7 Ethernet Carrier Sense
ETH_MDC PC1 Ethernet MIIM Clock
ETH_MDIO PA2 Ethernet MIIM Data
RMII_REF_CLK PA1 Reference Clock (25 Mhz)
Pin Details
UART3 (USB-SERIAL)
STM32F407 Description
RxD3 PC11 UART3 Receive
TxD3 PC10 UART3 Transmit
Pin Details
Data Acquisition
STM32F407 Description
ADC1 PA0 ADC Input
ADC2 PA3 ADC Input
Pin Details
General
STM32F407 Description
DAC1 PA4/DAC_OUT1 DAC output
DAC2 PA5/DAC_OUT2 DAC output
Pin Details
Relay
STM32F407 Description
Relay1 PA8 Relay
Relay2 PH0 Relay
3.3 V 1 2 GND
PB8/I2C1_SCL 3 4 PB9/I2C1_SDA
PB7/DCMI_VSYNC 5 6 PA4/DCMI_HSYNC
PA6 7 8 XCLK
PE6/DCMI_D7 9 10 PE5/DCMI_D6
PB6/DCMI_D5 11 12 PE4/DCMI_D4
PE1/DCMI_D3 13 14 PE0/DCMI_D2
PC7/DCMI_D1 15 16 PC6/DCMI_D0
RST 17 18 PE2
PC12/UART5_TX 19 20 PC10/UART3_TX
PD2 21 22 PB5/SPI1_MOSI/CAN1_RX
PE10/FSMC_D7 1 2 NC
PE9/FSMC_D6 3 4 NC
PE8/FSMC_D5 5 6 PD12/FSMC_ALE
PE7/FSMC_D4 7 8 PD11/FSMC_A16
PD1/FSMC_D3 9 10 PD6/FSMC_NWAIT
PD0/FSMC_D2 11 12 PD5/FSMC_NWE
PD15/FSMC_D1 13 14 PD4/FSMC_NOE
PD14/FSMC_D0 15 16 PD13_FSMC_A18
GND 17 18 GND
3.3 V 19 20 3.3 V
3.3 V 1 2 5v
PA2/ETH_MDIO 3 4 PA1/RMII_REF_CLK
PC5/RMII_RX_D1 5 6 PC4/RMII_RX_D0
PA7/RMII_CRS_DV 7 8 PC1/ETH_MDC
ADC123_IN10 9 10 ADC123_IN12
ADC123_IN13 11 12 ADC123_IN0
ADC123_IN3 13 14 ADC12_IN5
ADC12_IN4 15 16 ADC12_IN6
ADC12_IN8 17 18 ADC12_IN9
GND 19 20 GND
3.3 V 1 2 5V
PA4/DCMI_HSYNC 3 4 PB8/I2C1_SCL
PB3/SPI1_SCK/JTDO 5 6 PB9/I2C1_SDA
PB4/SPI1_MISO/NJTRST 7 8 PB6/DCMI_D5
PD2 9 10 PC7/DCMI_D1
PC12/UART5_TX 11 12 PB5/SPI1_MOSI/CAN2_RX
PC9/I2C3_SDA 13 14 PC6/DCMI_D0
PA8 15 16 PA0/WKUP/ADC123_IN0
PB10 17 18 PB11/RMII_TX_EN
PD5/FSMC_NWE 19 20 PD6/FSMC_NWAIT
PA1/RMII_REF_CLK 21 22 PC2/ADC123_IN12
PC3/ADC123_IN13 23 24 GND
GND 25 26 GND
NC 1 2 GND
PD14/FSMC_D0 3 4 PD15/FSMC_D1
PD0/FSMC_D2 5 6 PD1/FSMC_D3
PE7/FSMC_D4 7 8 PE8/FSMC_D5
PE9/FSMC_D6 9 10 PE10/FSMC_D7
PE11/FSMC_D8 11 12 PE12/FSMC_D9
PE13/FSMC_D10 13 14 PE14/FSMC_D11
PE15/FSMC_D12 15 16 PD8/FSMC_D13
PD9/FSMC_D14 17 18 PD10/FSMC_D15
PD7/FSMC_NCE2 19 20 PD11_FSMC_A16
PD5/FSMC_NWE 21 22 PD4/FSMC_NOE
RST 23 24 NC
3.3 V 25 26 GND
NC 27 28 PH1/TS_IRQ
PB0/ADC12_IN8 29 30 PB3/SPI1_SCK/JTDO
PB5/SPI1_MOSI/CAN2_RX 31 32 PB4/SPI1_MISO/NJTRST
3.3 V 33 34 GND
5v 1 16 3.3 V
PC12/UART5_TX 2 15 PC9/I2C3_SDA
PD2 3 14 PA8
PA4/DCMI_HSYNC 4 13 PB6/DCMI_D5
PB3/SPI1_SCK/JTDO 5 12 NC
PB4/SPI1_MISO/NJTRST 6 11 NC
PB5/SPI1_MOSI/CAN2_RX 7 10 NC
GND 8 9 GND