1 STM32F103-DB . STM32F103-DB development board (128K). Users manual STM32F103-DB Manual Introduction: Development board STM32F103-DB is a universal tool to explore new ARM CORTEX-M3. microcontrollers from ST Microelectronics. The board has on board a large set of frequently used by developers of modules and interfaces, and also has a prototype area for further expansion of the scheme and the empowerment of the board . Firmware in the controller can be loaded via USB (has a built-in bootloader on USART1), which makes it possible to reduce the initial costs of getting started. As a option (not in standard set), character LCD ''color TFT LCD 262k color screen with 320x240. pixel touch screen can be added to the board . board features: MCU: stm32f103 RBT6 ARM 32 bit CORTEX M3 with 128K Bytes Program Flash, 20K Bytes RAM, USB, CAN, x2 I2C, x2 ADC 12 bit, x3 UART, x2 SPI, x3 TIMERS, up to 72 Mhz operation Large set of jumpers for flexible setup and configuration of board USB interface with programmable pull-resistor is ohms on the line D +.
2 Standard JTAG connector with ARM 2x10 pin layout for programming/debugging with ARM- JTAG. CAN driver and connector RS232 driver and connector USB/UART converter based on FT232RL from FTDI, connected to USART1. Firmware can be loaded to microcontroller via this USB/UART port with ST Flash Loader Demonstrator software. Extension headers for all port pins of FT232RL. UEXT connector which allow different modules with USART, I2C or SPI to be connected SD connector with write protect and card inserted detection backup battery connector RESET button power supply LED (red). two status LED's on board voltage regulator with up to 800mA current Wide range of power supply inputs: o AC or DC via power supply jack o from USB. o From external programmer: via pins of JTAG connector, or +5V via 19 pin of JTAG connector (J-link programmer have function of supplying +5V 100mA via 19 pin of JTAG connector ). Connected to ADC potentiometer 8 MHz crystal oscillator 32768 Hz crystal and RTC backup battery connector Wakeup button, Tamper button and two user buttons Page 2.
3 STM32F103-DB Manual 16K 25LC160A EEPROM with SPI interface Ability to connect a standard character LCD with HD44780 controller (WH2002 type, etc.) with the choice of its supply voltage ( V/5V) and adjustable contrast Connector for color "TFT LCD Display 320 * 240 pixels 262K color touch-screen module. The board provides a fully functional operation of the display via 8-bit bus, and the work of touch panel with control on the SPI. extension headers for all uC ports PCB: FR-4, mm (0,062"), solder mask, silkscreen component print Dimensions: 123 x 91mm ( x "). Processor features: STM32F103-DB board use ARM 32-bit Cortex -M3 CPU stm32f103 RBT6 from ST Microelectronics with these features: CPU clock up to 72 Mhz FLASH 128KB. RAM 20KB. DMA x7 channels RTC. WDT. Timers x3+1. SPI x2. I2C x2. USART x3. USB x1. CAN x1 (multiplexed with USB so both can't be used in same time). GPIO up to 51 (multiplexed with peripherals). 2 ADC 12-bit operating voltage temperature -40C +85C.
4 Page 3. STM32F103-DB Manual board layout: Page 4. STM32F103-DB Manual Schematic: Page 5. STM32F103-DB Manual STM32F103xx performance line block diagram: Page 6. STM32F103-DB Manual Memory map: Page 7. STM32F103-DB Manual Power supply circuit: STM32F103-DB can be powered from one of sources: 1. AC or DC via power supply jack PWR (POWER_JACK1 on schematic). 2. Via USB1 or USB2 connectors. In this case JP2 (USBP_V) must be closed 3. From external programmer: via pins of JTAG connector, or +5V via 19 pin of JTAG. connector (J-link programmer have function of supplying +5V 100mA via 19 pin of JTAG. connector. If board powered from J-link programmer, JP26 jumper must be closed. For enabling +5V power supply from J-link you must setup Target power setting in J-link control panel (see photo below). Page 8. STM32F103-DB Manual Reset circuit: STM32-P103 reset circuit is made with RC group R4 - 10K and C1 - 100nF (not installed). Although on the schematic is made provision for external reset IC such is not necessary as STM32 have build-in brown out detector.)
5 Manual reset is possible by the RESET button. Clock circuit: Quartz crystal 8 Mhz is connected to stm32f103 RBT6. Internal PLL circuit can multiply this frequency up to 72 Mhz. KHz quartz crystal is connected to stm32f103 RBT6 for it's internal Real Time Clock. Jumper description: R-T: Connects JTAG TRST signal to stm32f103 RBT6 RESET. Default state opened. VBAT: Connects to stm32f103 RBT6 Vbat Default state closed (shorten), Vbat signal is also available to BAT_3V connector, so if you want to connect external backup battery to the stm32f103 RBT6 this jumper should be opened (unshorted) and the external battery to be connected to VBAT1 connector. VBAT accept 2 - LED1: connect VL2 (green) to PC7 (pin #38) of stm32f103 RBT6 microcontroller. Default state . closed (shorted). LED2: connect VL3 (yellow) to PC12 (pin #53) of stm32f103 RBT6 microcontroller. Default state . closed (shorted). USBP-E: Connects USB power supply via resistive divider R1/R2 to stm32f103 RBT6 PB1/ADC9 and allow to detect if the board is connected to USB host.
6 Default state closed (shorten). USBP_V: Connects +5V from USB to input of power regulator and allow to power board from USB. Default state closed (shorten). RTS_EN (JP18): Connects PA1/USART2_RTS pin to COM port driver(ST3232). USART2_RTS. function of PA1 is used for handshake mode of COM port. Default state - open СTS_EN (JP17): Connect PA0-WKUP/USART2_CTS pin #14 of stm32f103 RBT6 to COM port driver(ST3232). By default is used Wake Up function (PA is permanent tied to Wake Up button). Default state open Page 9. STM32F103-DB Manual USB_DISC (JP5): controls pull-up of USB1 D + line to positive supply via resistor. Connect PC11(pin #52) of stm32f103 RBT6 to USB D+ control 1 2 3. circuit. on PC11 disable pull-up, thus board not detected as USB device Log. 0 onPC11 enable D+ pull-up, thus board is detected as USB. device. 1 2 3. Constantly pull-up D+ pull-up, thus board is always detected as USB device. CP: Card Present allow PB11 (pin #30) to detect SD Card present in socket.
7 Log. 1 of PB11 SD. present. of PB11 card absent. Default state open WP: Write Protect Enable allow PB10 (pin 29) to detect write protected state of SD Card. Log. 1. of PC6 SD write protected . of PB10 SD is not write protected. Default state closed (shorten). : Connect regulated voltage to stm32f103 RBT6 power pins. jumper is used if you need to measure current consumption of the microcontroller. Default state closed (shorten). J_link 5V (JP26): connect power supply 5V 100mA from J-link external programmer. Default state closed (shorten). B0_H/B0_L, B1_H/B1_L: boot sequence select B1_H/B1_L (Boot1_High/Boot1_Low), B0_H/B0_L. (Boot0_High/Boot0_Low). 1 2 3. B0_H/B0_L is 0. 1 2 3. B1_H/B1_L is 0. Page 10. STM32F103-DB Manual RX1_EN: Connect PA10/USART1_RX (pin #43) of stm32f103 RBT6 to TX of FT232RL. Default state closed (shorten). TX1_EN: Connect PA9/USART1_TX (pin #42) of stm32f103 RBT6 to RX of FT232RL. Default state closed (shorten).
8 25LC_NSS (JP11): Connect pin ~CS of EEPROM 25LC160A to PB12/SPI2_NSS (pin #33) of stm32f103 RBT6 controller. Must be closed for using of 25LC160A. The 25LC160A and SD card share same pins PB12/SPI2_NSS - you can't use both 25LC160A and SD card on same time. Default state opened. 25LC_MISO (JP12): Connect pin MISO of EEPROM 25LC160A to PB14/SPI2_MISO (pin #35) of stm32f103 RBT6 controller. Must be closed for using of 25LC160A. The 25LC160A and SD card share same pins PB14/SPI2_MISO - you can't use both 25LC160A and SD card on same time. Default state opened CAN0_T: Connect 120 Ohm terminator between CAN_L and CAN_H busses. Default state opened. CNTRL/HS: Allow select mode of CAN driver. Default state - opened 1 2 3. Opened: 10 KOhm resistor is connected to slope control pin of SN65 HVD230 CAN driver 15V/uS driver output signal slop. 1 2 3. CNTRL/HS is connected to HS side. High speed of output CAN. drivers (>20v/uS) No slope control CNTRL/HS is connected to CNTRL side Enable PC10(pin 51) of 1 2 3.
9 stm32f103 RBT6 to control CAN driver modes. Log. 1 of PC10. disable CAN driver. Log. 0 of PC10enable CAN driver with high speed mode. Page 11. STM32F103-DB Manual SPI1_NSS: switches CS line of SPI1 (PA4/SPI1_NSS pin #20 of stm32f103 RBT6) interface between external SPI device on UEXT connector and ADS7843 touch controller for TFT LCD module 1 2 3. Connect PA4/SPI1_NSS (pin #20) of stm32f103 RBT6 to pin #10. of UEXT connector. 1 2 3 Connect PA4/SPI1_NSS (pin #20) of stm32f103 RBT6 to pin #5. of TFT LCD connector. (CS pin of ADS7843 touch screen controller of TFT LCD module). TFT_BL: control pin for TFT LCD backlight 1 2 3. Backlight lights always 1 2 3 Backlight is controlled by PC13 (pin #2) of stm32f103 RBT6. Log. 1 on this pin turn on backlight. Log. 0 on this pin turn off backlight. LCD_RW (JP23): controls R/W line for character LCD. 1 2 3. R/W line controlled by PC8 (pin #39) of stm32f103 RBT6. enabled read mode for character LCD, enabled write mode 1 2 3.
10 Connect R/W line to GND, thus character LCD always work in write mode. This is default state. Page 12. STM32F103-DB Manual LCD_V (JP24): Select power supply source for character LCD between and 5V. Default state - +5V power supply 1 2 3. Power supply of character LCD is + 1 2 3. Power supply of character LCD is +5V. This is default state. For this mode board must be powered from USB or from J-link programmer JTAG: The JTAG connector allows the software debugger to talk via a JTAG (Joint Test Action Group). port directly to the core. Instructions may be inserted and executed by the core thus allowing stm32f103 RBT6 memory to be programmed with code and executed step by step by the host software. For more details refer to IEEE Standard - 1990 Standard Test Access Port and Boundary Scan Architecture and stm32f103 RBT6 datasheets and users manual. # pin. Name # pin. Name 1 + 2 + 3 TRST: Test reset 4 GND. 5 TDI: Test Data In 6 GND. TMS: Test Mode 7 8 GND.