• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 怎么将信息添加到屏幕捕获

    新的支持Web的范围的一个优点是易于编写文档。使用“获取图像”通过Web界面登录可以节省大量时间。现在是否有人可以向图片标题添加额外信息。例如。公司信息等(我附上当前屏幕截图的屏幕截图)。在不添加新字段的情况下,一种解决方案是在Scope模型和日期/时间旁边的捕获顶行添加“网络描述”(您在网络设置中配置)。我玩了Annotations(非常适合注释捕获),但不是在测量中添加公司信息。这可能吗?如果没有,是否有某个“功能请求”部分用于未来的固件更新? 以上来自于谷歌翻译 以下为原文One advantage of the new web enabled scopes is the ease of doing documentation.Logging in via the web interface using "Get image" is a real time saver. Does anyone now if it is possible to add extra information to the picture header.E.g. the company information etc.(I attach a screen shot of how the current screen capture looks). One solution, without adding new fields would be to add the "Network description" (that you configure in the Network setup) in the top line of the capture next to the Scope model and date/time. I played around with Annotations (which is great for annotating the capture), but not to add company information over your measurements. Is this possible?If not, is there a "feature request" section somewhere for future firmware updates?附件image31023.png42.8 KB

    2019-04-16 11:30

  • 如何在STEVAL-WESU1平台中启用UART调试端口

    你好专家,我有电路板并且能够运行给定的演示示例,现在我想启用UART调试端口来查看代码中发生的事情。 这是我用来在智能STEVAL-WESU1板上运行的示例。〜\ STSW-WESU1 \项目\ STEVAL-WESU1 \演示\ WESU_DEMO \ SW4STM32 我参考了以下用户指南(第19页)并缩短了第2和第2页。 J1&的第3位J2跳线。并将J5连接器的第6针(RX232)连接到“TTL到USB”转换器的RXD,USB连接到我的PC,串口终端没有输出。 请更正我是否遗漏了什么。 https://www.st.com/resource/en/user_manual/dm00279614.pdf 你能帮忙吗?任何帮助非常感谢。 谢谢您的帮助。以上来自于谷歌翻译以下为原文Hello Experts,I have board and able to run given demo example, now I would like to enable the UART debug port to see whats going on in code. This is the example I am using to run on the smart STEVAL-WESU1 board.~\STSW-WESU1\Projects\STEVAL-WESU1\Demonstrations\WESU_DEMO\SW4STM32 I referred the following user guide(page no 19) and shorted the 2nd & 3rd position of J1 & J2 jumpers. And connected 6th pin(RX232) of J5 connector to RXD of "TTL to USB" converter, and USB is connected to my PC, no output seen in serial terminal. Please correct if me I am missing anything. https://www.st.com/resource/en/user_manual/dm00279614.pdf Can you please help on this ?Any help greatly appreciated. Thanks for the help.

    2019-02-26 09:33

  • STM8如何在运行期间更改占空比

    你好社区,我尝试为我的实验编写代码,我有一个问题..我的代码应该改变占空比即。如果Convertion_Value_Current的值超过或低于特定值,则CCR2_V的值...因此我希望在示波器上看到一个变化的pwm,但它仍然具有与主要定义的相同的占空比(CCR2_V = 27)这个想法是增加或减少寄存器的值,但它不起作用。你有什么想法可以解决问题吗?谢谢BG&amp; sharpinclude&lt; stm8s.h&gt; &amp; sharpinclude&lt; stm8s_eval_lcd.h&gt;&amp; sharpinclude&lt; stdio.h&gt; uint8_t StrName [16] = {0};uint16_t Conversion_Value = 0;float Stufe = 0.00488;float Nominal_Min = 3.500;float Nominal_Max = 4.500;float Conversion_Value_Current = 0;uint16_t CCR2_Val = 27;uint8_t a = 50; // Parametrisierung des PI Reglers !!!! MUSS NOCH在MATLAB BESTIMMT WERDEN !!!! //float kp = 0.001;float tn = 0.04; int main(void){ // Systemtakt CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1); // Erzeuge PWM TIM3_DeInit(); TIM3_TimeBaseInit(TIM3_PRESCALER_1,45); TIM3_OC2Init(TIM3_OCMODE_PWM1,TIM3_OUTPUTSTATE_ENABLE,CCR2_Val,TIM3_OCPOLARITY_HIGH); TIM3_ARRPreloadConfig(ENABLE); TIM3_OC2PreloadConfig(ENABLE); TIM3_Cmd(ENABLE); // Initialisiere ADC和LCD STM8S_EVAL_LCD_Init(); GPIO_DeInit(GPIOB); ADC2_DeInit(); GPIO_Init(GPIOB,GPIO_PIN_2,GPIO_MODE_IN_PU_NO_IT); ADC2_Init(ADC2_CONVERSIONMODE_CONTINUOUS,ADC2_CHANNEL_2,ADC2_PRESSEL_FCPU_D4,ADC2_EXTTRIG_TIM,DISABLE,ADC2_ALIGN_RIGHT,ADC2_SCHMITTTRIG_CHANNEL9,DISABLE); ADC2_Cmd(ENABLE); LCD_Clear(); LCD_BacklightCmd(ENABLE); ADC2_StartConversion(); LCD_SetCursorPos(LCD_LINE1,0); LCD_Print( 'Convers.Value .:'); LCD_Print(''); 而(1) { 而(!ADC2_GetFlagStatus()){} Conversion_Value = ADC2_GetConversionValue(); Conversion_Value_Current = Conversion_Value * Stufe; // Regelung der DutyCyclef reinenerw nschtenAusgangsstrom if(Conversion_Value_Current&gt; Nominal_Max) { CCR2_Val--; } 否则if(Conversion_Value_Current&lt; Nominal_Min) { CCR2_Val ++; } TIM3_OC2Init(TIM3_OCMODE_PWM1,TIM3_OUTPUTSTATE_ENABLE,CCR2_Val,TIM3_OCPOLARITY_HIGH); sprintf((char *)StrName,'%。3f',(Conversion_Value * Stufe)); LCD_SetCursorPos(LCD_LINE2,0); LCD_Print(则strName); ADC2_ClearFlag(); } }#stm8 / 128#pwm-stm8#stm8以上来自于谷歌翻译以下为原文 Hello community,i try to programm an code for my experimentation and i have a problem .. my code should change the duty cycle ie. the value of CCR2_V if the value of Convertion_Value_Current exceeds or is below a specific value .. as a result i want to see on the oscilloscope a changing pwm but it is still with the same duty cycle as defined in the main (CCR2_V=27)the idea was to increment or decrement the value of the register, but it does not working. Have you any ideas where the problem can be?ThanksBG&sharpinclude &sharpinclude&sharpinclude uint8_t StrName[16]={0}; uint16_t Conversion_Value = 0; float Stufe = 0.00488; float Nominal_Min = 3.500; float Nominal_Max = 4.500; float Conversion_Value_Current= 0; uint16_t CCR2_Val = 27 ; uint8_t a = 50; // Parametrisierung des PI Reglers!!!! MUSS NOCH IN MATLAB BESTIMMT WERDEN !!!! // float kp = 0.001; float tn = 0.04;int main(void){// Systemtakt CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1); // Erzeuge PWMTIM3_DeInit();TIM3_TimeBaseInit(TIM3_PRESCALER_1, 45); TIM3_OC2Init(TIM3_OCMODE_PWM1, TIM3_OUTPUTSTATE_ENABLE,CCR2_Val, TIM3_OCPOLARITY_HIGH);TIM3_ARRPreloadConfig(ENABLE); TIM3_OC2PreloadConfig(ENABLE);TIM3_Cmd(ENABLE); // Initialisiere ADC und LCD STM8S_EVAL_LCD_Init();GPIO_DeInit(GPIOB); ADC2_DeInit(); GPIO_Init(GPIOB, GPIO_PIN_2, GPIO_MODE_IN_PU_NO_IT); ADC2_Init(ADC2_CONVERSIONMODE_CONTINUOUS, ADC2_CHANNEL_2, ADC2_PRESSEL_FCPU_D4, ADC2_EXTTRIG_TIM, DISABLE , ADC2_ALIGN_RIGHT, ADC2_SCHMITTTRIG_CHANNEL9, DISABLE);ADC2_Cmd(ENABLE); LCD_Clear(); LCD_BacklightCmd(ENABLE); ADC2_StartConversion();LCD_SetCursorPos(LCD_LINE1, 0); LCD_Print('Convers.Value.:'); LCD_Print(' '); while(1) { while(!ADC2_GetFlagStatus()){} Conversion_Value = ADC2_GetConversionValue(); Conversion_Value_Current = Conversion_Value*Stufe; //Regelung der Duty Cycle f�r einen erw�nschten Ausgangsstrom if(Conversion_Value_Current > Nominal_Max) { CCR2_Val--; } else if (Conversion_Value_Current < Nominal_Min) { CCR2_Val++; } TIM3_OC2Init(TIM3_OCMODE_PWM1, TIM3_OUTPUTSTATE_ENABLE,CCR2_Val, TIM3_OCPOLARITY_HIGH); sprintf((char*)StrName, '%.3f ', (Conversion_Value*Stufe)); LCD_SetCursorPos(LCD_LINE2, 0); LCD_Print(StrName); ADC2_ClearFlag(); } }#stm8/128 #pwm-stm8 #stm8

    2019-01-24 08:36