wqj1212

    1. 版主了解STM32W系列处理器价格吗 12/5763 stm32/stm8 2010-12-18
                                       大概价格是多少?
    2.                                  
      哈哈,就是说说而已,你不是一直要别人拿出什么具体的改进地方和证据吗? 这就是了,但这并不说明这是个失败的产品, 反正不考虑这点STM照样有人用,考虑这点的人会用其他芯片来替代, 非要拿白菜烧出肉味来当然很勉 ...
      是的!
    3.                                  这个问题有可能是在发出第一个时钟脉冲之前,时钟线上是低电平,导致开启时钟之后到发出第一个时钟的下降沿之前有一个电平的跳变(你要求的是空闲高电平,但初始化前线路上是低电平),这会不会是错误的原因呢? 你可以用示波器看看,是否有我说的电平跳变? 也可以考虑在时钟线上加一个上拉电阻,在MCU驱动时钟线之前,把时钟线拉到高电平。
    4. 最近版主主去哪里了 10/4429 stm32/stm8 2010-10-15
                                         我之前看过你博客里面写到的关于运用STM32对外部脉冲计数的例程 我学习了下并实际操作了一下,根据自己实际情况稍微改了一点 程序如下: /* Includes ------------------------------------------------------------------*/ #include "stm32f10x_lib.h" /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ TIM_TimeBaseInitTypeDef  TIM_TimeBaseStructure; TIM_ICInitTypeDef  TIM_ICInitStructure; ErrorStatus HSEStartUpStatus; /* Private function prototypes -----------------------------------------------*/ void RCC_Configuration(void); void GPIO_Configuration(void); void NVIC_Configuration(void); void Delay(vu32 nCount); int count_out[3000]; int     i,j; /* Private functions ---------------------------------------------------------*/ /******************************************************************************* * Function Name  : Delay * Description    : Inserts a delay time. * Input          : nCount: specifies the delay time length. * Output         : None * Return         : None *******************************************************************************/ /******************************************************************************* * Function Name  : main * Description    : Main program * Input          : None * Output         : None * Return         : None *******************************************************************************/ int main(void) { #ifdef DEBUG   debug(); #endif RCC_Configuration(); // System Clocks Configuration NVIC_Configuration(); // NVIC configuration GPIO_Configuration(); // Configure the GPIO ports TIM_TimeBaseStructure.TIM_Period = 0x0400; TIM_TimeBaseStructure.TIM_Prescaler = 0x00; TIM_TimeBaseStructure.TIM_ClockDivision = 0x0; TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up; TIM_TimeBaseInit(TIM2, &TIM_TimeBaseStructure); // Time base configuration TIM_ETRClockMode2Config(TIM2, TIM_ExtTRGPSC_OFF, TIM_ExtTRGPolarity_NonInverted, 0); TIM_SetCounter(TIM2, 0); TIM_Cmd(TIM2, ENABLE); for(i=0;i<3000;i++) {     count_out=TIM_GetCounter(TIM2);     Delay(100);     } TIM_Cmd(TIM2, DISABLE); } /******************************************************************************* * Function Name : RCC_Configuration * Description : Configures the different system clocks. * Input   : None * Output  : None * Return  : None *******************************************************************************/ void RCC_Configuration(void) { RCC_DeInit();            /* RCC system reset(for debug purpose) */ RCC_HSEConfig(RCC_HSE_ON);         /* Enable HSE */ HSEStartUpStatus = RCC_WaitForHSEStartUp();     /* Wait till HSE is ready */ if(HSEStartUpStatus == SUCCESS) {   FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable); /* Enable Prefetch Buffer */   FLASH_SetLatency(FLASH_Latency_2);      /* Flash 2 wait state */   RCC_HCLKConfig(RCC_SYSCLK_Div1);      /* HCLK = SYSCLK */   RCC_PCLK2Config(RCC_HCLK_Div1);       /* PCLK2 = HCLK */   RCC_PCLK1Config(RCC_HCLK_Div2);       /* PCLK1 = HCLK/2 */   RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMul_9); /* PLLCLK = 8MHz * 9 = 72 MHz */   RCC_PLLCmd(ENABLE);          /* Enable PLL */   while(RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET) {} /* Wait till PLL is ready */   RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK);    /* Select PLL as system clock source */   while(RCC_GetSYSCLKSource() != 0x08) {}     /* Wait till PLL is used as system clock source */ } RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE);  /* TIM2 clock enable */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA , ENABLE); /* GPIOA、C clock enable */ } /******************************************************************************* * Function Name  : GPIO_Configuration * Description : Configure the GPIOD Pins. * Input    : None * Output   : None * Return   : None *******************************************************************************/ void GPIO_Configuration(void) {   GPIO_InitTypeDef GPIO_InitStructure;   /* GPIOA Configuration */   GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0;   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //50M时钟速度   GPIO_Init(GPIOA, &GPIO_InitStructure); } void Delay(vu32 nCount) { for(; nCount != 0; nCount--); } /******************************************************************************* * Function Name  : NVIC_Configuration * Description : Configure the nested vectored interrupt controller. * Input    : None * Output   : None * Return   : None *******************************************************************************/ void NVIC_Configuration(void) { #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    } #ifdef  DEBUG /******************************************************************************* * Function Name  : assert_failed * Description : Reports the name of the source file and the source line number *      where the assert_param error has occurred. * Input    : - file: pointer to the source file name *      - line: assert_param 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 /////////////////////////////////////////////////// 不知道哪里设置不对还是怎么的,n的值一直变化,就算没有外接脉冲信号也是 您能帮我看下吗
    5.                                  
      那也就是说STM32只能有16个外部IO中断源,并且每个中断的IO口线不能相同,比如,EXTI15只能同时赋予GPIOA-GPIOG中的其中一个?
      是的! 有什么问题吗?
    6.                                  
      我用万用表测量过,引脚电平是正常的。
      最好还是用示波器来看,看复位的时刻boo0、boot1的状态如何。
    7. 我没法细看图,但能画出这种图了,我想搭个电路也应该不是什么难事了。 这等问题,想在网上得到完美的回复,我想你可以自己搭100000遍电路了。
    8. 汇编这样会错吗? 18/4073 stm32/stm8 2010-06-16
                                       语法好像没什么错误
    9. stm8s用外部晶抗干扰真的太差了.晕. 5/4400 stm32/stm8 2010-06-13
                                       用内部振荡器应该也可以吧, 不过好象低温精度不高啊...
    10. 如何让系统不自动弹出 软键盘 11/5299 嵌入式系统 2010-06-03
      还得靠自己啊,自动弹出键盘的输入框会关联隐藏控件WC_SIPPREF,相关代码可以搜索AygAddSipprefControl,CreateWindow(WC_SIPPREF,...)找到。
    11.                                  好消息
    12. memset与 变量定义时初始化的 区别 11/6419 嵌入式系统 2010-05-26
      对于严谨的编程,定义变量,肯定要初始化啊 memset只是在需要的时候用,比如一个循环里每次往一个数组填东西之前就应该memset一下
    13. WINCE 6.0下如何安装驱动 10/6057 嵌入式系统 2010-05-06
      学习过. 楼上的办法可行.
    14. 打开串口失败 为什么呢? 19/8166 嵌入式系统 2010-04-19
      需要配置模拟器上的串口
    15. 第一次发帖,顺便散分。 35/9799 嵌入式系统 2010-03-27
      H大侠的贴是一定要顶的!!分也是一定要接的!!!! 感谢H大侠一如既然的提供友情帮助!!!!
    16. 到这来招人的 怎么看起来都没诚意
    17. 用360软件管理 把程序删除一次  再重新装试下看
    18. WPF程序移植到WINCE的可能性??? 4/3839 嵌入式系统 2010-02-03
      不能,wince到目前的版本为止,还没有提供任何对WPF的支持。
    19. VIVI到底也没有做坏块处理 11/3693 嵌入式系统 2010-01-29
      算了,我确定是没做的
    20. 44B0裸机外部中断问题 求助啊 7/4017 嵌入式系统 2010-01-14
      。。。有AXD怎么进行外部中断的仿真啊?  找了好久都没有找到给。。

最近访客

< 1/1 >

统计信息

已有105人来访过

  • 芯积分:--
  • 好友:--
  • 主题:11
  • 回复:59

留言

你需要登录后才可以留言 登录 | 注册


现在还没有留言