问答

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

21ic问答首页 - TAG - ig
  • BLDC霍尔

    void timer_hall_mode_config(uint32_t timer_periph, uint32_t hallmode);官方库里的这个霍尔模式函数到底整体是怎么用的,也没看到什么例程,我现在不是用这个模式驱动的bldc,别的都没问题,但是我想要记录无刷电机的移动的行程,记录不准,所以我想这用这个模式是不是就能准,有大佬知道原因吗

    BLDC T3 ui timer TI ig

    1099浏览量 2回复量 关注量
  • 请问APM32F417IGT6和STM32F417IGT6的区别 sos

    1. APM32F417IGT6和STM32F417IGT6的区别就是APM32F417IGT6多了一个DMC么?2. 是否能在stm32cubemx中当作STM32F427IGT6用?

    mx DM CubeMX APM32F4 stm32f417 ig

    1846浏览量 0回复量 关注量
  • 请教一下 HK32C030C8 Debug那一页怎么配啊,用J-link sos

    想用逻辑分析仪捕捉GPIO信息,但是一直显示unkown signal,不知道是哪里的问题

    ig SIGNAL 逻辑分析仪 J-LINK 30 BUG

    1221浏览量 0回复量 关注量
  • PIC16(L)F1938/9 点灯程序不生效 sos

    /* * File: main.c * Author: Administrator * */ #pragma config FOSC = INTOSC, WDTE = OFF, PWRTE = OFF, MCLRE = ON #include void Delay_50us(unsigned int n) { unsigned char i; while (n--) { for (i = 0; i < 104; i++); } } void Delay_ms(unsigned int n) { while (n--) { Delay_50us(20); } } void main(void) { TRISCbits.TRISC0 = 0; LATCbits.LATC0 = 1; while (1) { LATCbits.LATC0 = 0; Delay_ms(500); LATCbits.LATC0 = 1; Delay_ms(500); } return; } 这个程序闪灯不生效

    SC ID ig tc 点灯 pic16

    755浏览量 0回复量 关注量
  • ModusToolbox™ 3.2 Dashboard工程生成错误

    在生成工程时,出现如下错误: Opening project creator from C:/Users/XXX/ModusToolbox/tools_3.2/project-creator/project-creator.exe Project Creator Status: Project: Hello_World_1 Location: D:/Infineon/03/Hello_World_1 Status: failed Messages: [1]: [INFO] Log file= "C:/Users/XXX/AppData/Local/Temp/device-configurator-cli/device-configurator-cli-20240626.170103.333-14676.log" [2]: [INFO] Command line= "C:/Users/XXX/ModusToolbox/tools_3.2/device-configurator/device-configurator-cli.exe --build D:/Infineon/03/Hello_World_1/bsps/TARGET_APP_CYW920829M2EVK-02/config/design.modus --readonly" [3]: [INFO] Log file= "C:/Users/XXX/AppData/Local/Temp/hardware-config-server/hardware-config-server-20240626.170104.542-5352.log" [4]: [INFO] Command line= "C:/Users/XXX/ModusToolbox/tools_3.2/hardware-config-server/hardware-config-server.exe --config D:/Infineon/03/Hello_World_1/bsps/TARGET_APP_CYW920829M2EVK-02/config/design.modus" [5]: [INFO] Library paths: "D:/Infineon/03/mtb_shared/mtb-pdl-cat1/release-v3.10.1/props.json;C:/Users/XXX/.modustoolbox/global/device-db/release-v4.16.0/props.json" [6]: Error loading file. The design file was locked by another host. The file is locked by "闂佽法鍠愰弸濠氬箯閻戣姤鏅搁柡鍌樺�栫�氳瀵� [D:/Infineon/03/Hello_World_1/bsps/TARGET_APP_CYW920829M2EVK-02/config/design.modus] [7]: Failed to load 'D:/Infineon/03/Hello_World_1/bsps/TARGET_APP_CYW920829M2EVK-02/config/design.modus'. [8]: Failed to export the "Hello_World_1" application to Eclipse IDE for ModusToolbox闁筹拷 Unable to import the project: Hello_World_1. Try "Import Existing Application" from the quick-panel. If issues persist, retry project creator. No new/valid projects found.

    ig ModusToolbox 错误 hb board DAS

    2698浏览量 14回复量 关注量
  • GD32F103ZET6内部ADC2有没有

    使用官方的库函数,ADC2根本无法初始化dma_parameter_struct dma_data_parameter; rcu_periph_clock_enable(RCU_GPIOF); rcu_periph_clock_enable(RCU_ADC2); rcu_periph_clock_enable(RCU_DMA1); /*配置PF*/ gpio_init(GPIOF, GPIO_MODE_AIN, GPIO_OSPEED_50MHZ, GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10); /* ADC DMA_channel configuration */ dma_deinit(DMA1, DMA_CH4); /* initialize DMA single data mode */ dma_data_parameter.periph_addr = (uint32_t)(&ADC_RDATA(ADC2)); dma_data_parameter.periph_inc = DMA_PERIPH_INCREASE_DISABLE; dma_data_parameter.memory_addr = (uint32_t)(&ADC2_ConvertedValue); dma_data_parameter.memory_inc = DMA_MEMORY_INCREASE_ENABLE; dma_data_parameter.periph_width = DMA_PERIPHERAL_WIDTH_16BIT; dma_data_parameter.memory_width = DMA_MEMORY_WIDTH_16BIT; dma_data_parameter.direction = DMA_PERIPHERAL_TO_MEMORY; dma_data_parameter.number = M1*N1; dma_data_parameter.priority = DMA_PRIORITY_HIGH; dma_init(DMA1, DMA_CH4, &dma_data_parameter); dma_circulation_enable(DMA1, DMA_CH4); /* enable DMA channel */ dma_channel_enable(DMA1, DMA_CH4); /*ADC配置*/ adc_deinit(ADC2); /* ADC mode config */ adc_mode_config(ADC_MODE_FREE); /* ADC contineous function enable */ adc_special_function_config(ADC2, ADC_CONTINUOUS_MODE, ENABLE); /* ADC scan mode disable */ adc_special_function_config(ADC2, ADC_SCAN_MODE, ENABLE); /* ADC data alignment config */ adc_data_alignment_config(ADC2, ADC_DATAALIGN_RIGHT); /* ADC channel length config */ adc_channel_length_config(ADC2, ADC_REGULAR_CHANNEL, M1); /*ADC0规则通道配置*/ adc_regular_channel_config(ADC2, 0, ADC_CHANNEL_7, ADC_SAMPLETIME_239POINT5); adc_regular_channel_config(ADC2, 1, ADC_CHANNEL_8, ADC_SAMPLETIME_239POINT5); adc_regular_channel_config(ADC2, 2, ADC_CHANNEL_6, ADC_SAMPLETIME_239POINT5); adc_regular_channel_config(ADC2, 3, ADC_CHANNEL_5, ADC_SAMPLETIME_239POINT5); /* ADC trigger config */ adc_external_trigger_source_config(ADC2, ADC_REGULAR_CHANNEL, ADC0_1_2_EXTTRIG_REGULAR_NONE); adc_external_trigger_config(ADC2, ADC_REGULAR_CHANNEL, ENABLE); /* enable ADC interface */ adc_enable(ADC2); delay_ms(1); /* ADC calibration and reset calibration */ adc_calibration_enable(ADC2); /* ADC DMA function enable */ adc_dma_mode_enable(ADC2); /* ADC software trigger enable */ adc_software_trigger_enable(ADC2, ADC_REGULAR_CHANNEL);

    ig DM ma DMA gd32f103zet6 ADC2

    990浏览量 5回复量 关注量
  • 如何解决keil5编译但lcd12864显示汉字时乱码?求求了

    [float=left][color=rgb(40, 40, 40)][backcolor=rgb(255, 255, 255)][font=微软雅黑, "][size=16px][color=rgb(47, 47, 47)][size=14px][align=left]这是部分代码:[/align][align=left]#include [/align] [align=left]#define uchar unsigned char // 以后unsigned char就可以用uchar代替[/align][align=left]#define uint unsigned int // 以后unsigned int 就可以用uint 代替[/align] [align=left]sbit LcdRs_P = P2^0; // 液晶的RS管脚 [/align][align=left]sbit LcdRw_P = P2^1; // 液晶的RW管脚 [/align][align=left]sbit LcdEn_P = P2^2; // 液晶的EN管脚[/align] [align=left]// 毫秒级的延时函数,time是要延时的毫秒数[/align] [align=left]void DelayMs(uint time)[/align][align=left]{[/align][align=left] uint i,j;[/align][align=left] for(i=0;i

    ig unsigned LCD12864 编译 keil5 单片机

    19338浏览量 21回复量 关注量
  • 结构体按位对齐后的赋值

    [i=s] 本帖最后由 slf123123 于 2021-4-19 09:13 编辑 [/i] [p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]typedef unsigned long DWORD;[/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]#pragma pack(push) #pragma pack(1) typedef struct si { DWORD a:4; DWORD b:7; DWORD c:3; DWORD d:1; [/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="] DWORD e:3; DWORD f:14; }si; #pragma pack(pop) [/font][/backcolor][/color][/p] [p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="] 如上所示这个结构体对齐后是四个字节[/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]然后[/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]uint8 buff[4];[/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]怎么将buff赋值给整个结构体[/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]struct si su={buff[0],buff[1],buff[2],buff[3]};[/font][/backcolor][/color][/p][p=24, null, left][color=rgb(34, 34, 38)][backcolor=rgb(255, 255, 255)][font="]这样赋值不行吗[/font][/backcolor][/color][/p]

    ig struct AC ck typedef structs

    3592浏览量 14回复量 关注量