0% found this document useful (0 votes)
28 views

MicroSTM4 User Manual

The MicroSTM4 Development Kit User Manual provides comprehensive information on the MicroSTM4 board, which features an ARM Cortex-M4 processor designed for educational purposes. It includes details on various interfacing options such as LEDs, keypads, LCDs, and communication interfaces like USB, CAN, and Ethernet. The manual serves as a guide for students to learn about microcontroller architecture and practical applications in real-time systems.

Uploaded by

siddhesh955sable
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

MicroSTM4 User Manual

The MicroSTM4 Development Kit User Manual provides comprehensive information on the MicroSTM4 board, which features an ARM Cortex-M4 processor designed for educational purposes. It includes details on various interfacing options such as LEDs, keypads, LCDs, and communication interfaces like USB, CAN, and Ethernet. The manual serves as a guide for students to learn about microcontroller architecture and practical applications in real-time systems.

Uploaded by

siddhesh955sable
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

MicroSTM4 Development Kit User Manual

MicroSTM4
ARM Cortex-M4

Development Board
Hardware User Manual

www.microembedded.in

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual

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

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual

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.

1.2 Development Board Features


The MicroSTM4 microcontroller board has been specifically designed keeping in mind
the needs of students for learning the ARM cortex 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.

Following are the features of the MicroSTM4 Microcontroller board.

 STM32F407 microcontroller from ST Microelectronics running at maximum 168 MHz


 12 Volt Operation.
 External Crystal frequency 25 MHz
 One UART with USB to Serial.
 16x2 character LCD onboard and connectors for Graphical and TFT LCDs.
 4x4 (16) Key Matrix Keypad.
 8 general purpose LED’s.
 4 multiplexed common cathode seven segment displays.
 8 nos digital inputs switches.
 CAN Interface with Driver IC.
 I2C interface EEPROM.
 SD card on SPI Interface.
 USB2.0 Host and Device.
 Chip ADC interfaced to External voltage source.
 On Chip DAC output.
 Stepper Motor, servo motor and DC Motor Driver (L293D).
 2 nos Relays .
 10/100 Ethernet with external PHY.
 MicroConnect Header for external interfacing.
 Header for camera interface.

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual
1.3 MicroSTM4 Board Layout.

1 - 12 Volt DC Power Jack Connector.


2 - TFT LCD Header.
3 - 16x2 LCD.
4 – Nand Flash Header.
5 – JTAG Programmer Header.
6 – RJ45 Ethernet Connector.
7 – CAN Connector.
8 – Ethernet PHY IC.
9 – ADC Header.
10 – Power ON switch.
11 – MicroConnect Header.
12 – 7 Segment Displays.
13 – Reset Switch.
14 – ADC and LED selection Jumpers (J1-J2-J3).
15 – STM32F407 Microcontroller SOC.
16 – USB Host Connector.
17 - USB Device Connector.
18 – USB to Serial USB Connector.
19 – Digital Input Switches (DIP).
20 – Relays.
21 – 16x4 Matrix Keypad.
22 – LEDs.
23 – Motor Interface for Stepper , Servo and DC Motors.
24 – Miscellaneous Interfaces Header.
25 – Digital Camera Interface.
26 – SD / MMC Card Connector.
27 – ADC inputs with voltage source.
28 – EEPROM.
29 – DAC interface connector.

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual

2.0 Hardware: Functional Description and Interfacing.

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.

LED Interfacing Details

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

2.2 16 keys 4x4 Matrix Keypad.


A 16 key Keypad in a 4x4 matrix circuit is provided on the MicroSTM4 board. The Keypad is
interfaced to the GPIO pins of the processor. All column pins (COL1-4) are output only and
all row pins (ROW1-4 ) are input only.

Keypad Interfacing Details.

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

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual

2.3 16x2 Character LCD


A 16x2 character LCD is available on the board. The gpio pins from the processor are
connected to the LCD. The read/write pin is permanently connected to ground, hence we can
only write to the lcd.

16x2 LCD Interfacing Details.

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

2.4 Multiplexed Seven Segment Display.


4 seven segment displays in common cathode circuit are interfaced to the microcontroller.
The selection of the display is done through gpio pins .
Note: since we have interfaced multiple devices on some pins, in order to use the seven
segment display interface, set switch SW31 towards 7SEG_ON (down).

Seven Segment Display Interface.

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

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual
2.5 SD/MMC Card.
The SD card is interfaced on the MicroSTM4 board over the SPI interface.
Note: The SD Card currently supported is 2GB or below.
Note: since we have interfaced multiple devices on some pins, in order to use the SD
card interface, set switch SW3 between 2-3 (SD_ON).

SD/MMC card Interfacing Details.


Pin Details
SD Card
STM32F407 Description
CLK (5) PB3/SPI1SCK SD Card SPI Clock
CD/DAT3 (2) PA15/SPI1NSS SD Card Chip Select
DAT 0 (7) PB4/SPI1MISO SD Card SPI Data OUT (MISO)
CMD (3) PB5/SPI1MOSI SD Card SPI Data IN (MOSI)

2.6 USB Interface.


The processor on the MicroSTM4 (STM32F407) has an on chip USB Host and device controller
and driver interface.
The MicroSTM4 has populated this interface to a USB Host connector CN2 (USB-A type
connector) and device connector CN3 (USB-B type connector).

USB Interfacing Details.

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

2.7 Controller Area Network (CAN) Interface.


The processor on the MicroSTM4 (STM32F407) has a chip CAN Controller interface. The
MicroSTM4 board has populated a CAN Driver TJA1040 interface.
CAN is available on CN20.
Note: since we have interfaced multiple devices on some pins, in order to use the CAN
interface, set switch SW31 towards CAN_ON (up).

CAN Interfacing Details.

Pin Details
CAN
STM32F407 Description
CAN_TX PB13 CAN1 Transmit
CAN_RX PB12 CAN1 Receive

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual
2.8 10/100 Mbps Ethernet.
The STM32F407 chip has a full duplex 10/100 MBPS Ethernet controller Media Access
Controller (MAC) layer implementation. The MicroSTM4 board has populated this interface
along with the physical layer driver (PHY) –DP83848. The Interface used is the RMII (Reduced
MII). Connector CN21 is the RJ45 LAN connector.
Note: since we have interfaced multiple devices on some pins, in order to use the
ethernet interface, set switch SW34 and SW35 between 1-2.

Ethernet Interface Details.

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)

2.9 Digital Input Switches (DIP)


In order to provide a digital input logic 8 switches are provided on the MicroSTM4 board.
Note: since we have interfaced multiple devices on some pins, in order to use the DIP
interface, set switch SW13 between 1-2.

Digital Input Switches Interface.


Pin Details
DIP Switch
STM32F407 Description
DIP1 PA13 DIGITAL INPUT SW4
DIP2 PA14 DIGITAL INPUT SW5
DIP3 PD2 DIGITAL INPUT SW6
DIP4 PD3 DIGITAL INPUT SW7
DIP5 PA0 DIGITAL INPUT SW8
DIP6 PA3 DIGITAL INPUT SW9
DIP7 PA8 DIGITAL INPUT SW10
DIP8 PH0 DIGITAL INPUT SW11

2.10 I2C Interface (EEPROM).


The I2C interface from the processor has been brought out on the MicroSTM4 board. The
EEPROM (AT24C256) is interfaced on these lines.

I2C Interfacing Details.


Pin Details
I2C
STM32F407 Description
SCL0 PB8 I2C Clock
SDA0 PB9 I2C Data

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual
2.11 Motors.
Unipolar stepper motor, servo motor and DC motor interface is provided on the MicroSTM4
board for the user. The servo motor interface is connected to the PWM pins.
Note: since we have interfaced multiple devices on some pins, in order to use the motor
interface, set switch SW32 between 2-3 and SW33 between 1-2.

Motor Interface Details.


Pin Details
Motor
STM32F407 Description
STEPPER_1 PB0 Stepper
STEPPER_2 PB1 Stepper
STEPPER_3 PB2 Stepper/DC Motor
STEPPER_4 PB10 Stepper/DC Motor
SERVO PB1 SERVO MOTOR

2.12 Serial Communication using UART (USB to Serial).


UART3 interface from the processor is available for the user on the MicroSTM4 board.

UART3 (USB to Serial) Interfacing Details.

Pin Details
UART3 (USB-SERIAL)
STM32F407 Description
RxD3 PC11 UART3 Receive
TxD3 PC10 UART3 Transmit

2.13 Analog to Digital Converter (ADC).


The processor on the MicroSTM4 contains a 12 bit Successive approximation ADC with upto
19 channels. The board has provided the user with 2 channels with analog source and 16
channels on a header. Analog voltage is provided using potentiometers P1 and P2.
Note: since we have interfaced multiple devices on some pins, in order to use the ADC
pins from this connector set the jumpers between J2 and J3.
ADC Interfacing Details.

Pin Details
Data Acquisition
STM32F407 Description
ADC1 PA0 ADC Input
ADC2 PA3 ADC Input

2.14 Digital to Analog Convertor (DAC).


The Processor on MicroSTM4 contains two 12 bit Digital to Analog Convertor. The Output of
this DAC is brought out on two connectors CN8 and CN12.

DAC Interfacing Details.

Pin Details
General
STM32F407 Description
DAC1 PA4/DAC_OUT1 DAC output
DAC2 PA5/DAC_OUT2 DAC output

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual
2.15 Relays.
Two general purpose Relays are available as actuator devices on the MicroSTM4 board.
Note: since we have interfaced multiple devices on some pins, in order to use the Relay
interface, set switch SW12 between 2-3 and SW13 between 2-3.

Relay Interface Details.

Pin Details
Relay
STM32F407 Description
Relay1 PA8 Relay
Relay2 PH0 Relay

2.16 Camera Header Details.


Digital Camera Interface from the microcontroller is made available on a header for external
camera.

CAMERA HEADER DETAILS

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

2.17 Nand Flash Header Details.


External NAND flash device can be interfaced to the microcontroller over this interface.

NAND FLASH HEADER DETAILS

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

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual

2.18 ADC Header Details.


ADC pins from the microcontroller are made available on the connector for external
interfacing .
Note: since we have interfaced multiple devices on some pins, in order to use the ADC
pins from this connector set the jumpers between J2 and J3.

ADC HEADER DETAILS

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

2.19 I2C/I2S/SPI/UART Header Details


Various interfaced are made available to the user for external interfacing.

I2C/I2S/SPI/UART HEADER DETAILS

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

© MicroEmbedded Technologies. 2014-2015


MicroSTM4 Development Kit User Manual
2.20 TFT LCD Header Interface Details.
TFT LCD interface is brought out on this header for user to interface external TFT LCD of
various sizes.

TFT INTERFACE HEADER DETAILS

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

2.21 MicroConnect Header Details.


In order to interface various devices like GSM, GPS , BlueTooth, Wifi from microembedded this
header can be user. The devices are available as plug and play.

MicroConnect HEADER DETAILS

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

© MicroEmbedded Technologies. 2014-2015

You might also like