hahaxiao

    1. 我要买STM32仿真器2011.01.05前有效 6/4329 stm32/stm8 2011-01-06
                                       淘宝上没有吗??
    2.                                  可以进啊,你再看看吧,这部分好像没问题吧。我这有个例程给你做参考。 int main(void) {   /* System Clocks Configuration */   RCC_Configuration();          /* NVIC configuration */   NVIC_Configuration();   /* Configure the GPIO ports */   GPIO_Configuration(); /* USARTy and USARTz configuration ------------------------------------------------------*/   /* USARTy and USARTz configured as follow:         - BaudRate = 9600 baud           - Word Length = 8 Bits         - One Stop Bit         - No parity         - Hardware flow control disabled (RTS and CTS signals)         - Receive and transmit enabled   */   USART_InitStructure.USART_BaudRate = 115200;   USART_InitStructure.USART_WordLength = USART_WordLength_8b;   USART_InitStructure.USART_StopBits = USART_StopBits_1;   USART_InitStructure.USART_Parity = USART_Parity_No;   USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;   USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;   /* Configure USARTy */   USART_Init(USARTy, &USART_InitStructure);   /* Configure USARTz */   USART_Init(USARTz, &USART_InitStructure);      /* Enable USARTy Receive and Transmit interrupts */   USART_ITConfig(USARTy, USART_IT_RXNE, ENABLE);   USART_ITConfig(USARTy, USART_IT_TXE, ENABLE);   /* Enable USARTz Receive and Transmit interrupts */   USART_ITConfig(USARTz, USART_IT_RXNE, ENABLE);   USART_ITConfig(USARTz, USART_IT_TXE, ENABLE);   /* Enable the USARTy */   USART_Cmd(USARTy, ENABLE);   /* Enable the USARTz */   USART_Cmd(USARTz, ENABLE);   /* Wait until end of transmission from USARTy to USARTz */   while(RxCounter2 < RxBufferSize2)   {   }   /* Wait until end of transmission from USARTz to USARTy */   while(RxCounter1 < RxBufferSize1)   {   }      /* Check the received data with the send ones */   TransferStatus1 = Buffercmp(TxBuffer2, RxBuffer1, RxBufferSize1);   /* TransferStatus1 = PASSED, if the data transmitted from USARTz and        received by USARTy are the same */   /* TransferStatus1 = FAILED, if the data transmitted from USARTz and      received by USARTy are different */   TransferStatus2 = Buffercmp(TxBuffer1, RxBuffer2, RxBufferSize2);   /* TransferStatus2 = PASSED, if the data transmitted from USARTy and        received by USARTz are the same */   /* TransferStatus2 = FAILED, if the data transmitted from USARTy and      received by USARTz are different */   while (1)   {   } } /**   * @brief  Configures the different system clocks.   * @param  None   * @retval None   */ void RCC_Configuration(void) {   /* Setup the microcontroller system. Initialize the Embedded Flash Interface,        initialize the PLL and update the SystemFrequency variable. */   SystemInit();       /* Enable GPIO clock */   RCC_APB2PeriphClockCmd(USARTy_GPIO_CLK | USARTz_GPIO_CLK | RCC_APB2Periph_AFIO, ENABLE); #ifndef USE_STM3210C_EVAL   /* Enable USARTy Clock */   RCC_APB2PeriphClockCmd(USARTy_CLK, ENABLE); #else   /* Enable USARTy Clock */   RCC_APB1PeriphClockCmd(USARTy_CLK, ENABLE); #endif   /* Enable USARTz Clock */   RCC_APB1PeriphClockCmd(USARTz_CLK, ENABLE);   } /**   * @brief  Configures the different GPIO ports.   * @param  None   * @retval None   */ void GPIO_Configuration(void) {   GPIO_InitTypeDef GPIO_InitStructure; #ifdef USE_STM3210C_EVAL   /* Enable the USART3 Pins Software Remapping */   GPIO_PinRemapConfig(GPIO_PartialRemap_USART3, ENABLE);      /* Enable the USART2 Pins Software Remapping */   GPIO_PinRemapConfig(GPIO_Remap_USART2, ENABLE);   #elif defined USE_STM3210B_EVAL   /* Enable the USART2 Pins Software Remapping */   GPIO_PinRemapConfig(GPIO_Remap_USART2, ENABLE); #endif   /* Configure USARTy Rx as input floating */   GPIO_InitStructure.GPIO_Pin = USARTy_RxPin;   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;   GPIO_Init(USARTy_GPIO, &GPIO_InitStructure);      /* Configure USARTz Rx as input floating */   GPIO_InitStructure.GPIO_Pin = USARTz_RxPin;   GPIO_Init(USARTz_GPIO, &GPIO_InitStructure);        /* Configure USARTy Tx as alternate function push-pull */   GPIO_InitStructure.GPIO_Pin = USARTy_TxPin;   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;   GPIO_Init(USARTy_GPIO, &GPIO_InitStructure);   /* Configure USARTz Tx as alternate function push-pull */   GPIO_InitStructure.GPIO_Pin = USARTz_TxPin;   GPIO_Init(USARTz_GPIO, &GPIO_InitStructure);   } /**   * @brief  Configures the nested vectored interrupt controller.   * @param  None   * @retval None   */ void NVIC_Configuration(void) {   NVIC_InitTypeDef NVIC_InitStructure;   /* Configure the NVIC Preemption Priority Bits */     NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0);      /* Enable the USARTy Interrupt */   NVIC_InitStructure.NVIC_IRQChannel = USARTy_IRQn;   NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;   NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;   NVIC_Init(&NVIC_InitStructure);   /* Enable the USARTz Interrupt */   NVIC_InitStructure.NVIC_IRQChannel = USARTz_IRQn;   NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;   NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;   NVIC_Init(&NVIC_InitStructure); }
    3. TIM1_CH1做输出比较怎么配置 26/12724 stm32/stm8 2010-07-20
                                       有点恶搞啊, 难道搁浅的项目又提出来了?
    4. wince 6.0要怎么实现开机启动指定的程序. 12/18330 嵌入式系统 2010-06-29
      假如注册表为HIVE类型,也就是可断电保存,不用重烧系统那么麻烦…
    5. Wince自启动问题 18/7463 嵌入式系统 2010-06-11
      呵呵,我今天也遇到这个问题了。虽然是已结帖的08年的帖子,还是来挖个坟 经调试,是CWinApp::InitInstance()内的ProcessShellCommand(cmdInfo)出错。 人工启动时cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew 系统launch时cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen,要open的文件名在m_strFileName中,正是字符串"50"之类的东西 因此,我暂时做个弊,在ProcessShellCommand之前加上下面这两句就可以了 cmdInfo.m_nShellCommand = CCommandLineInfo::FileNew; cmdInfo.m_strFileName.Format(_T("")); 期待达人解释为什么系统launch时要求打开"50"文件
    6.                                  顶下
    7.                                  还好偶的SWIM没用ST Link的硬件,以后有机会也测试一下这个问题
    8. 关于STM32的FSMC问题 6/4216 stm32/stm8 2010-04-20
                                       接个SRAM就是了,该方案干什么。
    9. Qt/Embedded移植详解,武汉华嵌李家凯老师 2/3176 嵌入式系统 2010-04-15
      好,收藏了.
    10. fpga也是需要人去搞的嘛 消亡的最多是“硬件”这个词,而不是工作
    11. 求助:vxsim调试的问题 3/2700 嵌入式系统 2010-03-25
      我最终的经验是不能用ldsimpc连接,而用ccsimpc就可以。 谢谢topcool99
    12. heihei .来过来了,祝你新年快乐,事业UpUp
    13. STM32系列SPINSS高有效 4/4352 stm32/stm8 2010-02-10
                                       我的目的, NSS 连接74HC595 发送完成后,自动刷新输出
    14. Wince电池驱动 22/9132 嵌入式系统 2010-02-04
      查看一下BSP中应该会有ARGS的,系统指定地址储存这些数据,可以在ARGS中加一些自己需要全局共享的变量。
    15. ARM循环移位操作 11/11470 stm32/stm8 2010-01-26
                                       为什么要做循环移位操作?
    16. 先友情顶下,明天再给你仔细看下,要睡觉了、
    17. Wince如何订制taskbar? 12/5787 嵌入式系统 2009-12-21
      感谢捧场
    18. 生儿子了,工作没了,散分 106/17563 嵌入式系统 2009-12-18
      必须的这样!
    19. 如何实现485通信 30/7672 嵌入式系统 2009-12-11
      pc机经232-〉485转换器,后和多台485设备双向通信,我写过232的,对于485不清楚。 请问: (1)这个应该是全双工方式还是半双工方式?      半双工。 (2)如果是半双工如何知道现在有没有485设备占用通信线路?      设备永远是被动的。      RS485 通讯分两个步骤,1.发送地址;2.信息交互。      当你发送一个地址的时候,地址匹配设备就进入通讯状态,其他设备 Idle。      当你发送命令并取得应答后,应再次发送地址,启动下一个会话。完成应答的设备也会回到接收地址状态。      发送地址和发送命令的通讯格式是不一样的,需要转换。 (3)如果发送不成功怎么知道?怎么办?再发一次吗?      重新发起一次会话。即从发送地址开始。      N 次失败后,应当认为指定的设备不在线。
    20. 工作的问题,请教一下各位前辈 16/4102 嵌入式系统 2009-11-16
      首先简历还是要改的,然后和可以主动出击一下,就是带着简历主动拜访一下你曾经投过简历的一些单位的人事部门,说不定会有收获:)

最近访客

< 1/1 >

统计信息

已有78人来访过

  • 芯积分:--
  • 好友:--
  • 主题:7
  • 回复:66

留言

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


现在还没有留言