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

st-img
chrome
st-img
firefox
st-img
safari
st-img
ie8及以上
shequ.stmicroelectronics.cn
  • ST意法半导体官网
  • STM32中文官网
  • ST全球论坛
登录/注册
  • 首页
  • 技术问答
  • 话题
  • 资源
  • 创客秀
  • 视频
  • 标签
  • 积分商城
  • 每日签到
ddllxxrr

ddllxxrr

 

回答数 0 关注数 0
关注 私信
  • 动态99
  • 提问
  • 回答0
  • 创客秀 0
  • 分享 0
  • 关注0
4 回答

STM32F030C8T6的定时器怎么不准【解决】

未设置标签
ddllxxrr ddllxxrr 回答时间: 2021-2-6 09:24

原因找到,一个是置1时为2US定时不是1US,第二,我用的不是中断而是查询,延时底层函数数值应减很多。

赞0
0 回答

【我与STM32共成长】用STM32觉得方便有依靠

未设置标签
11 回答

7寸电子相册

未设置标签
mlxy123xy mlxy123xy 回答时间: 2015-1-13 23:30

做个视频门铃。。。。应该是改动最小的。

赞0
3 回答

7寸电子相册

未设置标签
Dylan疾风闪电 Dylan疾风闪电 回答时间: 2015-1-21 11:35

期待后续的图像算法什么的、如何实现效果图讨论下。

赞0
0 回答

【Nucleo板申请】想试试mbed开发环境

未设置标签
0 回答

【Nucleo板申请】想试下mbed开发环境

未设置标签
1 回答

【STM32F0申请】评估一下STM32F0低功耗

STM32F0
ssyx1234 ssyx1234 回答时间: 2017-2-27 18:27

来看看 啦啦啦

赞0
2 回答

STM32F3同STM32F1系列在定义GPIO的差别

STM32F1 STM32F3
御猫 御猫 回答时间: 2014-1-4 08:56

是啊,感觉应该是一样的,可是实际上还是多少会有差别的

赞0
2 回答

智林板例程出现error: #136错误的解决办法

未设置标签
灰机-360559 灰机-360559 回答时间: 2012-10-16 16:08

没有出现你所说的的呢,咋办,已经打勾了,可还是显示未定义。不懂了。

赞0
1 回答

网上出现另类智林STM32开发板的抄板

未设置标签
k10k10k10-19309 k10k10k10-19309 回答时间: 2011-4-20 22:23

真没看出这是抄板!

赞0
0 回答

ARM9,ARM7同cortex-m3的数据在RAM的存贮的区别

未设置标签
19 回答

用STM8库中例程攻略

STM8
chris-420052 chris-420052 回答时间: 2014-6-13 15:22

谢谢 

赞0
3 回答

用最新库玩转智林STM32开发板(之十)------关于HEX文件的下载

未设置标签
luoqizhu-173640 luoqizhu-173640 回答时间: 2011-8-15 10:26

谢谢

赞0
0 回答

用最新库玩转智林STM32开发板(之九)------在真彩屏上显示方向键的状态

未设置标签
7 回答

用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

未设置标签
zhanghulingfeng zhanghulingfeng 回答时间: 2012-5-24 11:37

支持国货!

赞0
1 回答

用最新库玩转智林STM32开发板(之七)------让开发板发出SOUND

未设置标签
rockjablew rockjablew 回答时间: 2009-6-2 09:57

不知道声音效果怎么样

赞0
7 回答

用最新库玩转智林STM32开发板(之六)------在真彩屏上显示大美女

未设置标签
Javey-186799 Javey-186799 回答时间: 2010-5-18 17:29

真好看,真好看,忒美了,呵呵!

赞0
1 回答

实用型JLINK MINILINK上架

未设置标签
lucky-92214 lucky-92214 回答时间: 2009-4-13 17:19

是否好用,价格几何?

赞0
2 回答

用最新库玩转智林STM32开发板(之五)------在真彩屏上显示国旗

未设置标签
adsbear adsbear 回答时间: 2010-5-14 17:10

非常好!

赞0
6 回答

用最新库玩转智林STM32开发板(之四)------点亮真彩屏

未设置标签
老欧 老欧 回答时间: 2010-4-23 21:59

回复第 1 楼 ddllxxrr于2009-04-08 14:46:15发表: 用最新库玩转智林STM32开发板(之四)------点亮真彩屏 驱动智林STM32开发板,真彩屏首先设定PINC为输出 所有子函数都在TFT018.c中 编译运行,则在屏幕显示如下: STM32F  EVAL  BOARD    Version 1.0   ZERO  Research www.the0.net 整个工程有如下文件: Source Group1              STM32f10x.s lcd:              TFT018.c uinit:              main.c lib:              stm32f10xR.lib(这个不用编,是MDK目录下的库文件包进来就行) 大家可把main.c直接考到工程中 http://shop35738797.taobao.com/ /******************************************************************************* * File Name          : main.c * Author             : ddllxxrr * Date First Issued  : 08/08/2008 * Description        : Main program body ********************************************************************************/ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x_lib.h" #include "TFT018.h" /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ TIM_TimeBaseInitTypeDef  TIM_TimeBaseStructure; TIM_OCInitTypeDef  TIM_OCInitStructure; vu16 CCR3_Val = 0x500; ErrorStatus HSEStartUpStatus; /* Private function prototypes -----------------------------------------------*/ void RCC_Configuration(void); void GPIO_Configuration(void); void NVIC_Configuration(void);     /* Private functions ---------------------------------------------------------*/ /******************************************************************************* * Function Name  : main * Description    : Main program * Input          : None * Output         : None * Return         : None *******************************************************************************/ int main(void) { #ifdef DEBUG   debug(); #endif   /* System Clocks Configuration */   RCC_Configuration();   /* NVIC Configuration */   NVIC_Configuration();      /* GPIO Configuration */   GPIO_Configuration();   /* Time base configuration */   TIM_TimeBaseStructure.TIM_Period = 0x5000;            TIM_TimeBaseStructure.TIM_Prescaler = 0x00;         TIM_TimeBaseStructure.TIM_ClockDivision = 0x0;      TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;      TIM_TimeBaseInit(TIM2, &TIM_TimeBaseStructure);   /* Output Compare Toggle Mode configuration: Channel1 */   TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_PWM1;   TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;   TIM_OCInitStructure.TIM_Pulse =CCR3_Val ;   TIM_OC3Init(TIM2, &TIM_OCInitStructure);       /* TIM enable counter */   TIM_Cmd(TIM2, ENABLE);   LCD_Init();   LCD_Clear_Screen(Blue);      while(1)   {       for(;;) {     //GPIOB->ODR &= ~LED;                         // switch on LED //Delay(2000000);     //GPIOB->ODR |=  LED;                         // switch off LED //Delay(2000000);     Font = 0;     LCD_PutString(10,30,"STM32F EVAL BOARD",Cyan,Blue);     Font = 1;     LCD_PutString(38,46,"Version 1.0",Green,Blue);     Font = 0;     LCD_PutString(30,65,"ZERO Research",Yellow,Blue);     LCD_PutString(36,81,"www.the0.net",Magenta,Blue);     }   }   } /******************************************************************************* * Function Name  : RCC_Configuration * Description    : Configures the different system clocks. * Input          : None * Output         : None * Return         : None *******************************************************************************/ void RCC_Configuration(void) {      /* RCC system reset(for debug purpose) */   RCC_DeInit();   /* Enable HSE */   RCC_HSEConfig(RCC_HSE_ON);   /* Wait till HSE is ready */   HSEStartUpStatus = RCC_WaitForHSEStartUp();   if(HSEStartUpStatus == SUCCESS)   {     /* HCLK = SYSCLK */     RCC_HCLKConfig(RCC_SYSCLK_Div1);        /* PCLK2 = HCLK */     RCC_PCLK2Config(RCC_HCLK_Div1);     /* PCLK1 = HCLK/4 */     RCC_PCLK1Config(RCC_HCLK_Div4);     /* Flash 2 wait state */     FLASH_SetLatency(FLASH_Latency_2);     /* Enable Prefetch Buffer */     FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable);     /* PLLCLK = 8MHz * 9 = 72 MHz */     RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMul_9);     /* Enable PLL */     RCC_PLLCmd(ENABLE);     /* Wait till PLL is ready */     while(RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET)     {     }     /* Select PLL as system clock source */     RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK);     /* Wait till PLL is used as system clock source */     while(RCC_GetSYSCLKSource() != 0x08)     {     }   }   /* TIM2 clock enable */   RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE);   /* GPIOA clock enable */   RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);   /* GPIOC clock enable */   RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); } /******************************************************************************* * Function Name  : GPIO_Configuration * Description    : Configure the TIM2 Pins. * Input          : None * Output         : None * Return         : None *******************************************************************************/ void GPIO_Configuration(void) {   GPIO_InitTypeDef GPIO_InitStructure; /* GPIOA Configuration:TIM2 Channel1, 2, 3 and 4 in Output */   GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0 | GPIO_Pin_1 | GPIO_Pin_2 | GPIO_Pin_3;   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;   GPIO_Init(GPIOA, &GPIO_InitStructure); /* GPIOC Configuration  because the PORTC is connect the lcd */ /* so the PIN is ......  */   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;   GPIO_Init(GPIOC,&GPIO_InitStructure);    } /******************************************************************************* * Function Name  : NVIC_Configuration * Description    : Configure the nested vectored interrupt controller. * Input          : None * Output         : None * Return         : None *******************************************************************************/ void NVIC_Configuration(void) {   NVIC_InitTypeDef NVIC_InitStructure;     #ifdef  VECT_TAB_RAM     /* Set the Vector Table base location at 0x20000000 */   NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0); #else  /* VECT_TAB_FLASH  */   /* Set the Vector Table base location at 0x08000000 */   NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);    #endif   /* Enable the TIM2 global Interrupt */   NVIC_InitStructure.NVIC_IRQChannel = TIM2_IRQChannel;   NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;   NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;     NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;   NVIC_Init(&NVIC_InitStructure); } #ifdef  DEBUG /******************************************************************************* * Function Name  : assert_failed * Description    : Reports the name of the source file and the source line number *                  where the assert error has occurred. * Input          : - file: pointer to the source file name *                  - line: assert error line source number * Output         : None * Return         : None *******************************************************************************/ void assert_failed(u8* file, u32 line) {   /* User can add his own implementation to report the file name and line number,      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */   while(1)   {   } } #endif /******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/ 附件    

赞0
12下一页
ddllxxrr ddllxxrr


阅读作者更多的帖子

所在话题

参与活动

  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16