你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

[Nucleo学习]Nucleo-F072RB板子资源认识

[复制链接]
dvd1478 发布时间:2015-1-12 09:32
Features
  • One entry-level STM32F072RBT6 microcontroller with LQFP64 package
    • ARM Cortex-M0 CPU at 48MHz
    • 128 KBytes Flash
    • USB 2.0 full-speed interface, able to run from internal 48 MHz oscillator, with BCD and LPM support
    • Up to 12 timers
    • 12-bit ADC 1 Msps up to 16 channels
    • 12-bit DAC with 2 channels
    • Up to 2x I2C, up to 4x USARTs, up to 2x SPIs.
    • 96bit unique ID

  • Two types of extension resources
    • Arduino Uno Revision 3 connectivity
    • STMicroelectronics Morpho extension pin headers for full access to all STM32F072RBT6 I/Os

  • Flexible board power supply: USB VBUS or external source (3.5 V, 5 V, 7 V - 12 V)
  • On-board ST-LINK/V2.1 interfacing with the PC, with three different communication channels via USB
    • Debug and programming port, to use STM32 Nucleo wth standard toolchains/debuggers/programmers
    • Virtual Com port to send back traces to the PC
    • Mass storage (USB Disk drive) for drag'n'drop programming

Arduino-compatible Headers
1.png
Morpho Headers - Giving access to all STM32 pins
2.png
Nucleo-F072RB开发板,把STM32F072RBT6所有IO的资源的引出来,注意观看上面两种图,描述了整个板子的开发资源,
其分为两种接口,Arduino HeadersMorpho Headers
红色  如 3.png 表示电源部分
蓝色    如 4.png PA_13  是MCU的端口引脚 PortA.2,
深绿色 如 5.png 表是Arduino 的引脚定义,并与Arduino 兼容,也就是Arduino的模块直接用到这里。
米色 如 6.png 表示模拟端口, ADC 或者是 DAC
橙色 如 7.png 表示是I2C 端口
黄色 如 8.png 表示是串口端口
浅绿色 如 9.png 表示SPI端口
紫色  如 10.png 表示是PWM端口
mbed统一管脚定义会出现在hal目录对应MCU下的PinNames.h中
可以查看到一些常用的定义:
// Generic signals namings
    LED1        = PA_5,
    LED2        = PA_5,
    LED3        = PA_5,
    LED4        = PA_5,
    USER_BUTTON = PC_13,
    SERIAL_TX   = PA_2,
    SERIAL_RX   = PA_3,
    USBTX       = PA_2,
    USBRX       = PA_3,
    I2C_SCL     = PB_8,
    I2C_SDA     = PB_9,
    SPI_MOSI    = PA_7,
    SPI_MISO    = PA_6,
    SPI_SCK     = PA_5,
    SPI_CS      = PB_6,
    PWM_OUT     = PB_3,
在PeripheralNames.h 定义了一些标准外设,在mbed编程是用不到,但可以了解一下资源情况
typedef enum {
    ADC_1 = (int)ADC1_BASE
} ADCName;
typedef enum {
    DAC_1 = (int)DAC_BASE
} DACName;
typedef enum {
    UART_1 = (int)USART1_BASE,
    UART_2 = (int)USART2_BASE,
    UART_3 = (int)USART3_BASE,
    UART_4 = (int)USART4_BASE
} UARTName;
#define STDIO_UART_TX  PA_2
#define STDIO_UART_RX  PA_3
#define STDIO_UART     UART_2
typedef enum {
    SPI_1 = (int)SPI1_BASE,
    SPI_2 = (int)SPI2_BASE
} SPIName;
typedef enum {
    I2C_1 = (int)I2C1_BASE,
    I2C_2 = (int)I2C2_BASE
} I2CName;
typedef enum {
    PWM_1  = (int)TIM1_BASE,
    PWM_2  = (int)TIM2_BASE,
    PWM_3  = (int)TIM3_BASE,
    PWM_14 = (int)TIM14_BASE,
    PWM_15 = (int)TIM15_BASE,
    PWM_16 = (int)TIM16_BASE,
    PWM_17 = (int)TIM17_BASE
} PWMName;
MCU与引脚资源分配情况,如下图所示
11.png
12.png
13.png
硬件连接时还要注意以下事项
Shields support notes
  • (1) - This shield requires SPI pins remapping because it uses a non-standard 6 pin SPI connector. Please refer to the shield page on mbed for more information.
  • (2) - To use this shield with ST Nucleo platforms you will need to remove SB13 and SB14 then bridge SB62 and SB63. This will enable the processor to communicate with the shield using the default serial connection, but will stop the comms going via the ST-Link and USB. Alternatively you could use other serial-enabled pins, which have to be connected to D0/D1 pins on the shield. Please refer to the the Nucleo pinout image for options.
  • (3) - This shield uses I2C on A4/A5 pins and requires bridging of A4<->D14 and A5<->D15.
  • (4) - To boot on external power, the PWR jumper (near the reset button) has to be switched to E5V position.
具体的相关硬件资源可以查看手册:
UM1724 User manual STM32 Nucleo boards.pdf


收藏 1 评论9 发布时间:2015-1-12 09:32

举报

9个回答
harvardx 回答时间:2015-1-24 22:33:38
比较详细的样子.哈哈可惜英文看不连欠啊
拼命三郎 回答时间:2015-1-25 02:33:08
stm32.jpg
qianfan 回答时间:2015-1-25 11:40:48
好资料,谢谢分享
博根 回答时间:2015-1-25 11:57:44
很详细呢 好资料,谢谢分享
dingfs 回答时间:2015-1-25 12:23:31
不错不错啊
wangweili1978 回答时间:2015-1-25 14:19:19
2.png
dvd1478 回答时间:2015-1-27 18:07:18
harvardx 发表于 2015-1-24 22:33
比较详细的样子.哈哈可惜英文看不连欠啊

呵呵,我也差不错,了解几个符号罢了
dvd1478 回答时间:2015-1-27 18:07:48
z00 发表于 2015-1-25 11:57
很详细呢 好资料,谢谢分享

一卡车龙眼仔z 回答时间:2017-10-27 22:33:43
谢谢

所属标签

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版