• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

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

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • matlab运行出错

    (sparse(A))??? Invalid MEX-file 'D:\MATLAB71\matlab_gtt\private\betweenness_centrality_mex.mexw32': 找不到

    2014-01-15 18:00

  • labview调用u***相机

    初学者,麻烦请教一下用USB连接的相机,这种情况下是不是已经连上LABVIEW的视觉模块可以用了

    2017-09-09 09:57

  • labview调试

    请问一下,再labview程序运行的过程中"罗列文件夹"显示"丢失外部符号或依赖关系,或出现无效的文件格式,因此无法加载动态库“怎么办?

    2017-08-22 17:19

  • labview调节图片饱和度,亮度,色阶等相关色彩参数

    请问下,用labview能调整一张图片的饱和度,亮度等相关色彩参数么?就像photoshop里那样。。谢谢了!

    2015-09-03 09:30

  • 工控自动化常用的保护电路

    鉴于电源电路存在一些不稳定因素,而设计用来防止此类不稳定因素影响电路效果的回路称作保护电路。在各类电子产品中,保护电路比比皆是,例如:过流保护、过压保护、过热保护、空载保护、短路保护等等,本文就整理了一些常见的保护电路。

    2021-03-01 08:52

  • MCC生成的UART代码的字符串例程?

    对于MCC生成的UART代码,是否有任何字符串例程?原来的库有PuthAuthX()和GETSuxx()例程,我不期待改写它们来使用MCC! 以上来自于百度翻译 以下为原文 Does anyone have string routines for the MCC generated UART code?The original libraries had putsuartX() and getsuartX() routines, and I am not looking forward to rewriting them just to use the MCC!

    2018-10-10 16:26

  • pic24约530us后死机

    我有一个非常简单的程序(粘贴在下面),运行在PIC24FJ256GA705上。它脉冲一个引脚,并显示时钟运行如预期约530US,但然后PIC似乎冻结。我所看到的是观察时钟和针脉冲同时停止(我有范围波形,但在上传到论坛时出错)。在每个循环迭代之后,我在一个循环中增加了一系列脉冲的长度。这样,我就可以计数脉冲,看到PIC在索引变量达到11后停止运行。如果我启用断点,在调试模式下启动,然后手动单击.,那么相同的程序将按预期运行,在第11次迭代之后不会停止。正如我所预料的那样,观察钟继续运行。如果我删除断点,并让程序继续,它将继续按预期的方式运行。或者,只需在调试模式下启动,而没有断点将使它按预期运行。但是它在正常模式下会冻结。我尝试过更改各种配置字(比如禁用brown out),但是似乎都没有影响PIC冻结。我试着用同一种新的PIC交换PIC,并且看到了相同的行为,所以我不相信它只是坏的或损坏的部分。供应量的上升和下降没有影响。有人知道我能做些什么来让PIC像这样冻结吗?-Robert这里有一些关于我的设置的细节:-PIC24FJ256GA705(SPDIP)-Pickit 3程序员-MPLAB X IDE,XC16-脉冲引脚(B7)用LED等卸载。只有一个范围探针。-时钟观察引脚(A3)也卸载,除了范围探针。-PIC在黑板上,而我是使用PICTIT3提供3.3V电源。-我确实有推荐的电源和VCAP电容器。虽然它们有额外的电感/电阻由于面包板,但我一直试图保持东西尽可能接近引脚。以下是我运行的整个程序:

    2020-04-08 09:27

  • GATT profile是什么?GATT有什么作用?

    GATT profile是什么?GATT有什么作用?GATT连接网络拓扑结构是如何构成的?

    2021-07-02 07:28

  • MPLAB X IDE 3.60/3.61/3.65/4.00/4.01不会记录寄存器名称

    今天我从MPLAB X IDE 3.51升级到3.60。所有的工作OK(3.55是BGGY),但我有一个语法高亮的问题:寄存器名称,如WREG,PRODL等没有被正确地突出:它们出现的颜色用于IDEFIFIER(浅紫色),而不是为寄存器配置的颜色。是的,我检查了配置窗格。它是一个bug还是一个新的配置选项? 以上来自于百度翻译 以下为原文 Today I upgraded from MPLAB X IDE 3.51 to 3.60. All works ok (3.55 was buggy) but I have a problem with the syntax highlight: the register names, such as WREG, PRODL and so on are not correctly highlighted: they appears with the colour used for the Idenfifiers (light purple) not the one configured for the Registers. And yes, I checked the configuration panes.Is it a bug, or a new configuration option?

    2019-04-09 11:30

  • USART中断4字节限制?

    这与我在前一个帖子中发布的问题非常相似(显然,我无法链接这个线程而没有论坛软件在权限错误上产生异常),但是由于我对代码进行了一些修改,并且使用了稍微不同的处理数据的方式,所以i我现在应该使用一个单独的线程。对于上下文,我现在使用中断来接收我的数据,以我的芯片设置作为同步接收从,并且反复发送字符串“Word”,后面跟着A。我的发射机时钟在4MHz,KbAd值为9.615(SPBRG B的十进制值)。EN 103)。我使用的是两个PIC16F628 A,一个是发射机,另一个是接收机。这是我的接收代码:由于我收到的一些反馈,我学会了如何实现中断,并把数据的处理/写入到一个单独的函数中,并用一个缓冲器…然而,当我收到数据并阅读EEPROM时,我所得到的只是“Word Word Word Word Word”,而D是从来没有写过的。我已经确认了几次D确实是通过检查它来发送的,所以这不是我的发射机代码的问题。我怎样才能确保D确实被写入和处理正确?我得到的建议是,如果我知道数据的大小,我可以把它存储在一个通用缓冲器中,然后把它一次写入EEPROM,但是为了我项目的这一部分的生产目的,实际上,我收到的一个芯片的数据将是随机的,从8到15字节,没有null终止符,我必须正确处理和存储这个。这种随机的数据流每隔几秒钟就会发给我一次。这就让我回到了一个问题:我如何确保准确地处理数据而不丢失任何东西? 以上来自于百度翻译 以下为原文 So this is extremely similar to the issue I posted about here in my previous thread (and apparently I can't link the thread without the forum software freaking out over permission errors), but since I made some modifications to my code and am using a slightly different way of handling my data, I figured I should make a separate thread. For context, I am now using interrupts to receive my data with my chip setup as a Synchronous Recieve Slave and am repeatedly sending the string "World" followed by a __ms_delay(2000);. I have the transmitter clocked at 4Mhz with a KBAUD value of 9.615 (decimal value for SPBRG being 103). I am using two PIC16F628A's, one acting as a transmitter and the other a receiver. Here is my reciever code: volatile unsigned char addr = 0x00;void USART_init(void){ TRISBbits.TRISB1 = 1; TRISBbits.TRISB2 = 1; TXSTAbits.SYNC = 1; RCSTAbits.SPEN = 1; TXSTAbits.CSRC = 0; PIE1bits.RCIE = 1; INTCONbits.GIE = 1; INTCONbits.PEIE = 1; RCSTAbits.CREN = 1; }void writestuff(unsigned char x){ EEPROM_WRITE(addr, x); addr++;}void interrupt message(void){ if(PIR1bits.RCIF == 1){unsigned char d = RCREG;writestuff(d); }}void main(void) { USART_init(); while(1){}} Because of some of the feedback I received, I learned how to implement interrupts and put the processing/write of data to the EEPROM in a separate function with a buffer... Yet still, when I receive the data and read the EEPROM, all I get is "WorlWorlWorlWorlWorl", the d is never written. I have confirmed several times that the d is indeed sent by checking for it specifically so it's not an issue with my transmitter code. How can I make sure the d is indeed written and processed correctly? I have gotten the recommendation that if I know the size of the data, I can just store it in a universal buffer and then write it all at once to EEPROM, but for production purposes of this section of my project, in reality, the data that I receive by a chip will be random in size, ranging from 8 to 15 bytes with no null terminator and I have to correctly process and store this. This random stream of data will be sent to me every couple of seconds or so. So that leads me back to the question of how I can make sure to accurately process the data without losing anything?

    2018-11-07 15:30