CPU Speed:16MHz No. of I/O's:28 Digital IC Case Style:LQFP No. of Pins:32 Embedded Interface Type:I2C, SPI, UART Supply Voltage Min:2.95V Supply Voltage Max:5.5V MSL:MSL 3 - 168 hours SVHC:No SVHC (20-Jun-2013) EEPROM Memory Size:128Byte No. of Timers:3 Operating Temperature ...
AI代码解释 voiddj1_Init(void){GPIO_InitTypeDef GPIO_InitStructure;RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);//使能PB端口时钟GPIO_InitStructure.GPIO_Pin=GPIO_Pin_11|GPIO_Pin_10|GPIO_Pin_9|GPIO_Pin_8;GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;//推挽输出GPIO_InitStructure.GPIO_Sp...
ENABLE);RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1,ENABLE);//使能DMA传输//USART3_TX GPIOB.10GPIO_InitStructure.GPIO_Pin=GPIO_Pin_10;GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Pin=IIC_SCL_PIN; GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP; GPIO_Init(IIC_SCL_PORT,&GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin=IIC_SDA_PIN; GPIO_Init(IIC_SDA_PORT,&GPIO_InitStructure); IIC_SCL=1; IIC_SDA=1...
GPIO_InitStruct.GPIO_Speed = SPI_MISO_GPIO_SPEED;GPIO_Init(SPI_MISO_GPIO_PORT, &GPIO_InitStruct);GPIO_InitStruct.GPIO_Mode = SPI_NSS_GPIO_MODE;GPIO_InitStruct.GPIO_Pin = SPI_NSS_GPIO_PIN;GPIO_InitStruct.GPIO_Speed = SPI_NSS_GPIO_SPEED;GPIO_Init(S...
#ifndef __MOTOR_H__#define __MOTOR_H__void Motor_init();void Motor_GetSpeed(int8_t Speed);#endif Motor.c #include "stm32f10x.h" // Device header#include "PWM.h"void Motor_init(){//设置APB2外设时钟开关RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);//对结构体成员的选择GP...
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;// 复用推挽输出GPIO_Init(GPIOC,&GPIO_InitStructure); GPIO_PinRemapConfig(GPIO_FullRemap_TIM3,ENABLE);// 改变指定管脚的映射// 初始化定时器参数TIM_TimeBaseInitStructure.TIM_Period = per;// 自动...
float speed[256];//全局变量存储风速数据 void TIM3_IRQHandler(void) { static u8 CaptureNumber = 0;//捕获次数 static u8 i = 0; static u16 IC3Value0 = 0; //定义第一次输入捕获值局部变量 static u16 IC3Value1 = 0; //定义第二次输入捕获值局部变量 float freq = 0;//脉冲频率 u16 counter...
// USART1_TX GPIOA.9GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;// PA.9GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;// 复用推挽输出GPIO_Init(GPIOA, &GPIO_InitStructure);// 初始化GPIOA.9// USART1_RX GPIOA.10初始化GPIO_InitStructure...
SDH multiplexer E3 T3 DS3 fiber modem STM-1 converter 8E1+4ETH SDH equipment STM-1 to 63E1 E1 STM-1 SDH multiplexer SDH equipment STM-16 SDH multiplexer Ultra Low Temperature Freezer Speed Reducer Rehabilitation Equipment Telecom Equipment