问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - tc
  • HK32F030C8T6的RTC例程 sos

    哪位前辈有HK的RTC中断例程呢?求一份

    RTC tc

    8154浏览量 0回复量 关注量
  • RTC时钟电源

    华大的RTC电源应该怎么弄比较合适?

    RTC 时钟 电源 tc RTC时钟

    1541浏览量 1回复量 关注量
  • HC32L130DMA+LPUART发送,用block模式,只能传送一个block

    [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]请教各位一个问题:[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]使用LPUART0+DMA,发送4个字节,结果查看寄存器,SRCADR只前进了一位,就卡住了,貌似LPUART没给DMA触发信号[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]代码如下:[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]uint8_t u8TxData[8] = {'A','T','\r','\n'}; //addr: 0x20000000[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]int32_t main(void)[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]{ [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] uint32_t i;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] //uart端口配置[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] App_UartPortInit();[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] //UART模块配置[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] App_UartCfg();[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] //DMA参数配置[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] App_DmaCfg();[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] while(1)[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] {[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] if(5 == Dma_GetStat(DmaCh1))[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] {[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] //清除通道0状态值 [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] Dma_DisableChannel(DmaCh1);[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] break;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] }[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] }[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] while(1){[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] }[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]}[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]//UART模块配置[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]void App_UartCfg(void)[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]{[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] stc_lpuart_cfg_t stcCfg;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] DDL_ZERO_STRUCT(stcCfg);[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] ///<外设模块时钟使能[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] Sysctrl_SetPeripheralGate(SysctrlPeripheralLpUart0,TRUE); [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] ///CH1)[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] Dma_Enable(); //DMA模块使能[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] Dma_InitChannel(DmaCh1, &stcDmaCfg); //DMA通道1初始化[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] Dma_EnableChannel(DmaCh1); //使能通道1[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]}[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]//uart端口配置[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]void App_UartPortInit(void)[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px]{[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] stc_gpio_cfg_t stcGpioCfg;[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] DDL_ZERO_STRUCT(stcGpioCfg);[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] Sysctrl_SetPeripheralGate(SysctrlPeripheralGpio,TRUE);[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] [/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(242, 249, 253)][font=Tahoma, "][size=16px] ///

    HC ck lpuart DMA ST tc

    1891浏览量 1回复量 关注量
  • F460 DMA串口发送 软件AOS触发问题

    F460 的DMA串口发送 软件AOS触发不了 #define USART_DMA_UNIT (M4_DMA1) #define RX_DMA_CH (DmaCh0) #define RX_DMA_TRG_SEL (EVT_USART1_RI) #define TX_DMA_CH (DmaCh1) #define TX_DMA_TRG_SEL (EVT_USART1_TI) /* DMA block transfer complete interrupt */ #define RX_DMA_BTC_INT_NUM (INT_DMA1_TC0) #define RX_DMA_BTC_INT_IRQn (Int006_IRQn) #define TX_DMA_BTC_INT_NUM (INT_DMA1_TC1) #define TX_DMA_BTC_INT_IRQn (Int005_IRQn) void dma_tx_init(void) { stc_dma_config_t stcDmaInit; stc_irq_regi_conf_t stcIrqRegiCfg; /* Enable peripheral clock */ PWC_Fcg0PeriphClockCmd(PWC_FCG0_PERIPH_DMA1 | PWC_FCG0_PERIPH_DMA2,Enable); /* Enable DMA. */ DMA_Cmd(USART_DMA_UNIT,Enable); /* Initialize DMA. */ MEM_ZERO_STRUCT(stcDmaInit); stcDmaInit.u16BlockSize = 10u; /* 1 block */ stcDmaInit.u32SrcAddr = ((uint32_t)(send_buff)); /* Set source address. */ stcDmaInit.u32DesAddr = (uint32_t)(&USART_CH->DR); /* Set destination address. TDR*/ stcDmaInit.stcDmaChCfg.enLlpEn = Disable; /* Disable linked list transfer. */ stcDmaInit.stcDmaChCfg.enSrcInc = AddressIncrease; /* Set source address mode. */ stcDmaInit.stcDmaChCfg.enDesInc = AddressFix; /* Set destination address mode. */ stcDmaInit.stcDmaChCfg.enIntEn = Enable; /* Enable interrupt. */ stcDmaInit.stcDmaChCfg.enTrnWidth = Dma8Bit; /* Set data width 8bit. */ stcDmaInit.u16TransferCnt = 1; DMA_InitChannel(USART_DMA_UNIT, TX_DMA_CH, &stcDmaInit); /* Enable the specified DMA channel. */ DMA_ChannelCmd(USART_DMA_UNIT, TX_DMA_CH, Enable); /* Clear DMA flag. */ DMA_ClearIrqFlag(USART_DMA_UNIT, TX_DMA_CH, TrnCpltIrq); /* Enable peripheral circuit trigger function. */ PWC_Fcg0PeriphClockCmd(PWC_FCG0_PERIPH_PTDIS,Enable); /* Set DMA trigger source. */ DMA_SetTriggerSrc(USART_DMA_UNIT, TX_DMA_CH, EVT_AOS_STRG); /* Set DMA block transfer complete IRQ */ stcIrqRegiCfg.enIRQn = TX_DMA_BTC_INT_IRQn; stcIrqRegiCfg.pfnCallback = &Dma_TX_IrqCallback; stcIrqRegiCfg.enIntSrc = TX_DMA_BTC_INT_NUM; enIrqRegistration(&stcIrqRegiCfg); NVIC_SetPriority(stcIrqRegiCfg.enIRQn, DDL_IRQ_PRIORITY_DEFAULT); NVIC_ClearPendingIRQ(stcIrqRegiCfg.enIRQn); NVIC_EnableIRQ(stcIrqRegiCfg.enIRQn); AOS_SW_Trigger(); } 以上就是初始化,没法正常输出,有时候会输出一个字节 还想请问下 block是指 的是一次发送数据的量吧,u16TransferCnt 这个是指发送数据的次数 总数据量应该是 block*u16TransferCnt 吧。不知道这里有没有理解错误

    os DMA 串口发送 触发 软件 tc

    3124浏览量 1回复量 关注量
  • 求助,New Runtime Watch无法选择

    [img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOgAAABvCAYAAADmHIwYAAAgAElEQVR4Ae2d93NbWXag/Wds7c+7rt0de9bectmeHa/HPT2e0DOtltRSd0vdSlQkRVGiSEmUSOWcI0WKOQcw55xJkGAmQIIgCBBEzol2lWeq7Pm2HpgpatzdUrPR4lMVChD48N59557vnnPPPe/cP0P8J0pAlEDQSuDPgrZlYsNECYgSQARUVAJRAkEsARHQIO4csWmiBERARR0QJRDEEhABDeLOEZsmSkAEVNQBUQJBLAER0CDuHLFpogREQEUdECUQxBL41oD+8Y9/xO/343a7xZcog02vA//yL//ynWD+rQH9wx/+QGtrK83NzbS1tYkvUQabVgcaGxuRyWT8x3/8xzuH9FsD+vvf/z7QIUajEY/HI75EGWxaHVCr1Uil0uAE1GKxMDc39529BDdaeH2X1xDP/d3132aQrVarpbe3d3MC6vP5EF6boaPFe/xhDhQioD6faEW/Qy9FHBjebmAQARUBFT2IIB6gghpQq9X6nSrP++/ierDotGg0Rpy+txvJRUv4/cgvqAH9roNEi4AuB4r8OC1aBtsa6eyfwOReCCD5vNhmxukZmcbmefs5q9/nxTApo2tUhd09fz6PVcfI0CAKrQXv3Bx+r4tZ5UDgmnbvtwtk+f0a6p7d5va1fEYt3+4cIpjfD5iLch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01UnIKmlBrjVh1Y1QV5hHZno6xbWtTJpWR3E9diODPbW0y2eX1k79XheqgXrqZGNoJxUMdigwCpvF9gyhUOpXbDb7frp8K+dnm+GzCOgqQEWl3gxK/0O6x6AGdKPWQX9IHSa2dXMNokEN6MYvs2yuzhdhD/7+XgR0U6f6iYoa/Iq6WftoEdCgzCTaKAu6WTtfvO/gH5g2NaDC+ufyGmjwd5YI1Obro6AG1Gg0Bh7PEh7REl+iDDajDqjVaqRSKUHl4v7hD38IlDxpbm4OvAvlT8SXKIPNqAMNDQ3IZLLgAvSPf/xjIMdyM46Y4j2LnsJaHfjXf/3Xb1TT6+se/Gdf90DxOFECogQ2XgIioBsvc/GKogS+tgREQL+2qMQDRQlsvAREQDde5uIVRQl8bQmIgH5tUYkHihLYeAmIgG68zMUrihL42hIQAf3aohIPFCWw8RIQAd14mYtXFCXwtSUgAvq1RSUeKEpg4yXw/wGJgun6gr5yDAAAAABJRU5ErkJggg==[/img]

    runtime WATCH TI tc

    1300浏览量 1回复量 关注量
  • 关于华大HC32F460的时钟配置问题

    我在配置HC32F460的时钟,遇到了一个比较鬼畜的问题。我按照如下代码设置了时钟,但奇怪的是,我在硬件上端接晶振引脚,按说芯片会宕机才对,但芯片居然毫无影响,继续运行。想麻烦大家帮我看看,是我哪里设置的不对 [color=#d4d4d4][backcolor=rgb(30, 30, 30)][font=Menlo, Monaco, "][size=12px] [color=#569cd6]void[/color] [color=#dcdcaa]SystemClk_Init[/color]([color=#569cd6]void[/color]) { [color=#4ec9b0]stc_clk_sysclk_cfg_t[/color] [color=#9cdcfe]stcSysClkCfg[/color]; [color=#4ec9b0]stc_clk_xtal_cfg_t[/color] [color=#9cdcfe]stcXtalCfg[/color]; [color=#4ec9b0]stc_clk_mpll_cfg_t[/color] [color=#9cdcfe]stcMpllCfg[/color]; [color=#569cd6]MEM_ZERO_STRUCT[/color]([color=#9cdcfe]stcSysClkCfg[/color]); [color=#569cd6]MEM_ZERO_STRUCT[/color]([color=#9cdcfe]stcXtalCfg[/color]); [color=#569cd6]MEM_ZERO_STRUCT[/color]([color=#9cdcfe]stcMpllCfg[/color]); [color=#6a9955]/* Set bus clk div. */[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enHclkDiv[/color] = [color=#4fc1ff]ClkSysclkDiv1[/color]; [color=#6a9955]// 168MHz[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enExclkDiv[/color] = [color=#4fc1ff]ClkSysclkDiv2[/color]; [color=#6a9955]// 84MHz[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enPclk0Div[/color] = [color=#4fc1ff]ClkSysclkDiv1[/color]; [color=#6a9955]// 168MHz[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enPclk1Div[/color] = [color=#4fc1ff]ClkSysclkDiv2[/color]; [color=#6a9955]// 84MHz[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enPclk2Div[/color] = [color=#4fc1ff]ClkSysclkDiv4[/color]; [color=#6a9955]// 42MHz[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enPclk3Div[/color] = [color=#4fc1ff]ClkSysclkDiv4[/color]; [color=#6a9955]// 42MHz[/color] [color=#9cdcfe]stcSysClkCfg[/color].[color=#9cdcfe]enPclk4Div[/color] = [color=#4fc1ff]ClkSysclkDiv2[/color]; [color=#6a9955]// 84MHz[/color] [color=#dcdcaa]CLK_SysClkConfig[/color](&[color=#9cdcfe]stcSysClkCfg[/color]); [color=#6a9955]/* Switch system clock source to MPLL. */[/color] [color=#6a9955]/* Use Xtal as MPLL source. */[/color] [color=#9cdcfe]stcXtalCfg[/color].[color=#9cdcfe]enMode[/color] = [color=#4fc1ff]ClkXtalModeOsc[/color]; [color=#9cdcfe]stcXtalCfg[/color].[color=#9cdcfe]enDrv[/color] = [color=#4fc1ff]ClkXtalLowDrv[/color]; [color=#9cdcfe]stcXtalCfg[/color].[color=#9cdcfe]enFastStartup[/color] = [color=#4fc1ff]Disable[/color]; [color=#dcdcaa]CLK_XtalConfig[/color](&[color=#9cdcfe]stcXtalCfg[/color]); [color=#dcdcaa]CLK_XtalCmd[/color]([color=#4fc1ff]Enable[/color]); [color=#6a9955]/* MPLL config. */[/color] [color=#9cdcfe]stcMpllCfg[/color].[color=#9cdcfe]pllmDiv[/color] = [color=#b5cea8]1u[/color]; [color=#9cdcfe]stcMpllCfg[/color].[color=#9cdcfe]plln[/color] = [color=#b5cea8]42u[/color]; [color=#9cdcfe]stcMpllCfg[/color].[color=#9cdcfe]PllpDiv[/color] = [color=#b5cea8]2u[/color]; [color=#9cdcfe]stcMpllCfg[/color].[color=#9cdcfe]PllqDiv[/color] = [color=#b5cea8]2u[/color]; [color=#9cdcfe]stcMpllCfg[/color].[color=#9cdcfe]PllrDiv[/color] = [color=#b5cea8]2u[/color]; [color=#dcdcaa]CLK_SetPllSource[/color]([color=#4fc1ff]ClkPllSrcXTAL[/color]); [color=#dcdcaa]CLK_MpllConfig[/color](&[color=#9cdcfe]stcMpllCfg[/color]); [color=#6a9955]/* flash read wait cycle setting */[/color] [color=#dcdcaa]EFM_Unlock[/color](); [color=#dcdcaa]EFM_SetLatency[/color]([color=#569cd6]EFM_LATENCY_4[/color]); [color=#dcdcaa]EFM_Lock[/color](); [color=#6a9955]/* Enable MPLL. */[/color] [color=#dcdcaa]CLK_MpllCmd[/color]([color=#4fc1ff]Enable[/color]); [color=#6a9955]/* Wait MPLL ready. */[/color] [color=#c586c0]while[/color] ([color=#4fc1ff]Set[/color] != [color=#dcdcaa]CLK_GetFlagStatus[/color]([color=#4fc1ff]ClkFlagMPLLRdy[/color])) { } [color=#6a9955]/* Switch system clock source to MPLL. */[/color] [color=#dcdcaa]CLK_SetSysClkSource[/color]([color=#4fc1ff]ClkSysSrcXTAL[/color]); } [/size][/font][/backcolor][/color]

    时钟配置 hc32f460 ST tc stc PLL

    5014浏览量 9回复量 关注量
  • 关于Nano130 M0多串口问题 sos

    Nano130 M0 规格书里说芯片共有5个uart口,其中标准uart口两个uart0和uart1。还有三个uart是给Smart card用的,SC0_uart,SC1_uart和 SC2_uart,请问,我能把这三个Smart card用的uart用作通用的uart吗?如何设置?

    AN 多串口 UART SMART tc tca

    726浏览量 0回复量 关注量
  • 想通过初始化GPIO口采集外部电平信号但总是初始化不成功。 sos

    [size=14px] Sysctrl_SetPeripheralGate(SysctrlPeripheralGpio, TRUE); //timer [/size] [size=14px] stc_gpio_cfg_t stcGpioCfg; [/size] [size=14px] stcGpioCfg.enDir = GpioDirIn; [/size] [size=14px] stcGpioCfg.enPu = GpioPuEnable;[/size] [size=14px] stcGpioCfg.enCtrlMode = GpioAHB;[/size] [size=14px] Gpio_Init(GpioPortB, GpioPin6,&stcGpioCfg); [/size] [size=14px] [/size] [size=14px] [/size] [size=14px] while (1) {[/size] [size=14px] [/size] [size=14px] rev_len = DevUART_Read(&gDebugUart, recv_buf, MEM_POOL_BLOCK_SIZE, OS_ALWAYS_DELAY); [/size] [size=14px] uint8_t dian;[/size] [size=14px] //unsigned char *G;[/size] [size=14px] uint8_t *G;[/size] [size=14px] dian=Gpio_GetInputIO(GpioPortB,GpioPin6);[/size] [size=14px] sprintf(G,"%d",dian); [/size] [size=14px] AT_TxFreq(0, G, rev_len);[/size] [size=14px] gEnableRadioRx = true;[/size] [size=14px] osDelayMs(10); [/size]

    信号 电平 GPIO tc ST stc

    1036浏览量 0回复量 关注量
  • IGBT的NTC测量一般需要隔离吗?

    新人,请问IGBT的NTC测量一般需要隔离吗?

    IGBT NTC 隔离 tc GB

    618浏览量 2回复量 关注量
  • 功率型NTC热敏电阻器的选用原则是什么

    功率型NTC热敏电阻器的选用原则是什么

    NTC 热敏电阻 电阻 电阻器 tc

    540浏览量 1回复量 关注量
  • STM32F103C8T6变量问题

    求助各位大神,使用的是STM32F103C8T6这个片子,编写了一个程序ROdata=412,RWdata=76,ZIdata=17428,数据量应该是没有超出20K,可是程序运行出来的结果总是出错,如果把定义的变量顺序进行一些更改,例如原来顺序为:u16 a=?; u16 b=?; float c=?; s16 d=?;程序运行后的结果为e=?; 然后把顺序更改为float c=?;u16a=?;s16 d=?;u16 b=?;程序运行后的结果为e=?; 两次得出来的结果就不同,请教一下这是什么原因造成的?

    stm32f103c8t6 tc idata 编写

    498浏览量 4回复量 关注量
  • 急用,关于程序下载问题 sos

    使用的为F28027的开发板,现在在做一个外部中断的下程序,但是程序怎么就下载不进去,尝试新建了几个新的工程都不行,而原先的工程却可以正常下载。 我个人也写过不少C2000的程序,都从来没遇到过这样的问题。 所出现的提示为:wideinterrupt.out could not open file. 最近就要验收了,求指教。

    IDE tc TE top inter

    228浏览量 0回复量 关注量
  • CH579 BLE的sleep时间单位是什么

    WAKE_UP_RTC_MAX_TIME - 睡眠唤醒所需时间,根据不同睡眠类型取值可分为:睡眠模式/下电模式 - 65(默认) 这个单位是什么?ms?还是计数值?

    sleep BLE RTC TI tc

    434浏览量 5回复量 关注量
  • RTC闹钟的中断

    有关RTC闹钟的中断,就是要求每一个小时整点产生一次RTC闹钟中断,前几个小时正常,可后面就不产生RTC中断,各位指点下.

    RTC tc

    469浏览量 8回复量 关注量
12下一页