• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

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

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 基于CARRY4延迟线的设计怎么实现?

    compare_output信号。如果比较结果不是0,则会引发一个名为ODC_result_sig的标志。但我不知道为什么我的比较结果并不总是0,因为我没有给数字信号注入任何额外的延迟,并且不必要地引发

    2020-06-19 12:44

  • 使用MHC从头开始构建项目时无法连接到TCP IP Stack

    您好,我是非常新的嵌入式世界,我试图获得StETET与PIC32 MZ2048 EFM144上的PIC32 MZ SARTARKIT(EF)(带有密码)。我用MPLABX 3.55和编译器XC32 V1.42使用Hydio 2.02.0B。我在论坛中看到了另一个类似的主题,但是它们通常有不同的问题(例如编译错误或使用自定义的板布局,…)。Erver或/Apps/TCPIP/WebSyServ.NVMMPMPF运行良好。我打开项目,点击“生成”在MHC,接受所有差异和编程板。它出现在TCPIP发现工具中(并且,当我检查ICMPv4服务器的方框)时,我可以ping该板。所以没有硬件问题,所有的东西都连接正确。现在我想从“自下而上”的方法开始,从头开始创建一个项目。我创建了一个新的和声项目,选择了我的PIC和初学者工具包,检查了“使用BSP”。选中了“使用TCPIP”,确保“PIC32 It”被选中,确保FMIIEN断开并且FETHIO在上,并且在“以太网连接标志”中取消选择“RMII连接”(实际上我尝试了这两种方式),并确保选择了“使用声明发现工具”。然后我生成了COD。E,构建并编程了PIC。(请注意,我还没有编写任何一行C代码。)现在我不知道董事会应该已经能够沟通了。至少TCPIP发现工具应该显示该板。我也认为,当启用“ICMPv4服务器”时,委员会应该响应ping请求。我已经尝试取消选择DHCP,DNS,…但是注意到了变化-也提到了这个例子也启用了这个选项。每当我让一个LED切换到它为发现工具发出一个通知时,它愉快地闪烁着EVEY 333毫秒。我还修改了App.c并检查了TCP1堆栈是否准备好了,如果建立了一个链接,…一切都很好,我从Microchip看了几篇教程视频,读了几本教程。我在这个问题上争论了一个多星期,已经比较了工作实例。MHC文件和我自己的(通过一个差异工具)-没有什么大的差别。我也比较了时钟设置——它们也很相似。我打赌我缺少一些简单明了的东西,但我没有线索。如果你能告诉我什么,我会很高兴的。 以上来自于百度翻译 以下为原文 Hello, I am quite new to the embedded world and I am trying to get startet with the PIC32MZ2048EFM144on a PIC32MZ StarterKit (EF) (with crypto). I am using Harmony 2.02.00b with the MPLabX 3.55 and the compiler XC32 v1.42.I saw the other, similar topics here in the Forums, but they usually have different problems (like compile errors or they use custom board layouts,...). When I am using the example project /apps/rtos/freertos/tcpip_client_server or the /apps/tcpip/web_server_nvm_mpfs they run fine. I open the projects, click 'generate' in MHC, accept all diffs and programm the board. It shows up in the TCPIP Discover Tool and (as soon as I check the box for ICMPv4 Server) I can ping the board. So there is no hardware issue and everything is connected correctly. Now I wanted to go the 'bottom-up' approach and wanted to build a project from scratch.I created a new harmony project, selected my PIC and Starter Kit, checked the "Use BSP?", checked "Use TCPIP" made sure that "PIC32INT" is selected, made sure that FMIIEN is OFF and FETHIO is ON, and de-selected "RMII Connection" in the "Ethernet Connection Flags" (actually I tried it both ways) and made sure that the "Use Announce Discovery Tool" was selected.Then I generated the code, built it and programmed the PIC. (Note that I did not yet write any line of C-Code.)Now I was unter the assumtion that the board should already be able to communicate. At least the TCPIP Discovery Tool should show the Board. Also I thought that, when enabling the "ICMPv4 Server" the board should respond to ping requests.I already tried to deselect DHCP, DNS,... but noting changed - also the mentioned examples have this option enabled, too. When I let an LED Toggle everytime it sends an announcement for the discovery tool, it blinks happily evey 333ms. I also modified the app.c and checked if the TCP_STACK is Ready and if a Link is established, ... It is all good. I watched several tutorial videos from microchip and read several tutorials. I am fighting with this issue for over a week now and already compared the working example .mhc files with my own (via a diff tool) - there was no big difference. Also I compared the clock settings - they are similar too. I bet I am missing something simple and obvious, but I have no clue what. I would be very happy if you could tell me what.

    2019-04-11 14:34

  • PIC32MZ差分ADC需要内部上拉电阻

    EFH144上提供模拟引脚。PIC固件配置引脚是差分I类模拟输入。它也在100US突发中采样非常快(10 MSPS),使用DMA将样本发送到缓冲器。如果我设置的引脚,你通常会为ADC(没有上拉电阻,没有ODC

    2018-10-23 15:46

  • K42无法控制i2c引脚进行从机复位

    在控制I2C引脚以执行“复位奴隶”动作时有困难。PIN C3(SCL1)设置如下:I2C1按预期工作。第一步是强制C3(SCL1)低。尝试下面的(以及各种各样的事情):不起作用。SCL仍然很高。在数据表中,关于开漏的说法不多。“当ODCONX位被设置时,相应的端口输出变成一个仅能下沉电流的开路漏极驱动器。当ODCONX位被清除时,相应的端口输出引脚是标准的推挽驱动器,能够提供和下沉电流。“没有例子。我误解了它是怎么运作的吗? 以上来自于百度翻译 以下为原文 Having trouble taking control of i2c pins to perform a "reset slaves" manoeuvre. Pin C3 (SCL1) was setup as follows: ANSELCbits.ANSELC3 = 0;RC3PPS = 0x21; //RC3->I2C1:SCL1; I2C1SCLPPSbits.I2C1SCLPPS = 0x13; //RC3->I2C1:SCL1;ODCONCbits.ODCC3 = 1;RC3I2Cbits.TH = 1;TRISCbits.TRISC3 = 0;// then various peripheral configsI2C1CON0bits.EN = 1; // then enable i2c1 worked as expected. First step is to force C3 (SCL1) low. Tried the following (and various things like it): I2C1CON0bits.EN = 0; // turn off i2c1 ODCONCbits.ODCC3 = 0; // turn off open-drain RC3_SetDigitalOutput(); // (it should be already)RC3_SetLow(); // tried before and after setting to output etc..... Doesn't work. SCL remains high. In the datasheet not much is said about open drain "When an ODCONx bit is set, the corresponding port output becomes an open-drain driver capable of sinking current only. When an ODCONx bit is cleared, the corresponding port output pin is the standard push-pull drive capable of sourcing and sinking current." No examples. Have I misunderstood how it works?

    2018-09-27 15:01

  • 如何使用SPC58EC-DISP的RMII模式呢?

    我有 SPC58EC-DISP,现在我使用示例代码(网络网关测试),它是 MII 模式并且可以工作;然后,我想使用 RMII 模式,我设置 PHY MODE = RMII,它不工作,怎么做?ps:OSC改为50MHz,SB5 Close & SB6 Open。

    2023-01-04 08:18

  • 引脚之间的PIC32MZ冲突怎么办

    通过ODC寄存器,它变高(2伏,不是我预期的3)。谢谢。PS:以太网控制器与PIC32MZ的接口是RMII:这很重要,因为Reduced MII不使用PIN 121,而在MII接口中,这个PIN专用

    2020-05-06 13:27

  • 1-Wire EEPROM通信对存在脉冲作出响应

    你好,我正在尝试使用端口D1上的PIC24FJ256GB410与Maxm 1线EEPROM DS28 EC20通信。EEPROM似乎对存在脉冲作出响应,当我发送命令来读取序列号(Read ROM,0x33)时,我得到了响应,但是在我的调试器中,响应不正确——我得到0xFF、0xFF、0xFF、0x00、0x00、0x00、0xFe。家庭代码应该是0x43。当我查看在我的范围内的输出时,我注意到EEPROM的响应不是一路拉到地上,当它应该在0.2V以下时,它会下降到大约0.8V。我检查了PIC的数据表,端口D1的输入低电压需要是& LT。0.2V(ST缓冲)。为什么EEPROM不能把引脚拉低?我用的是2.2K上拉电阻。项目附带了一个图片从我的示波器。我只是在while(1)循环之前,从主()函数测试这个部分:/ /将速度设置为“标准”设置速度(1);/ /选择设备(OWTouChREST())/重置1Wire总线返回0;/ /如果没有设备找到OWWriteByte(0x33),则返回:(TEMP=0;TEMP&LT;8;TEMP++)串行SerialNo.[TEMP]= OWRead Byt(); 以上来自于百度翻译 以下为原文 Hi,I am trying to communicate with a Maxim 1-wire EEPROM DS28EC20 using the PIC24FJ256GB410 on port D1.The EEPROM seems to be responding to the presence pulse and when i send a command to read the serial number (Read Rom, 0x33)I am getting a response but in my debugger the response isn't correct - i get 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0xfe.The family code should be 0x43.When I look at the output on my scope, i noticed that the response from the EEPROM isn't pulling all the way to ground, it's going down to about 0.8V when it should be below 0.2V.I checked the data sheet for the PIC and a input low voltage for port D1 needs to be < 0.2V (ST buffered).Why wouldn't the EEPROM be able to pull the pin low.I am using a 2.2K pull up resistor.Project is attached along with a picture from my oscilloscope.I am just testing this part from the main() function before the while(1) loop: // set the speed to 'standard' SetSpeed(1);// select the device if (OWTouchReset()) // Reset the 1-Wire bus return 0; // Return if no devices found OWWriteByte(0x33); for(temp = 0; temp < 8; temp++) serial_number[temp] = OWReadByte(); Attached Image(s) Attachment(s)explorer16_adagio_main.zip (227.99 KB) - downloaded 35 times

    2018-09-28 11:14

  • 使用端口引脚进行键输入,内部上拉和更改通知,需要显式地编写代码吗

    HII正在使用XIDE V3.20和和声1.0602与PIC32 MX795F512L设备。在“和谐设置”的“PIN设置”选项卡中,我选择了CNEN和CNPUE的RD4-和GT;RD7(4PIN)。然后生成代码。因此,我希望一些代码行,将使上述(CNEN和CNPUE)的端口引脚。但是我找不到像这样的代码。我需要显式地编写代码吗?谢谢!西拉斯

    2019-09-04 08:45

  • 无法用简单程序设置端口位怎么办

    在使用PIC18Fs、MPLAB IDE和xc8一段时间后,我使用PICkit 3跳转到PIC32MX170F256D、MPLAB IDE v3.25和xc32 v1.40。最终,我得到了安装和安装点,对其进行了编译、链接和下载。27。我错过了什么?谢谢!GueTrand节目来源:

    2020-05-11 12:54

  • PIC32MX USART驱动程序哪个指针用于USAT?

    嗨,我使用PIC32 MX470微,并尝试在帮助文件中的USAT示例。UART驱动程序使用的是和声配置器(USAT 2是静态模式)。现在我不知道哪个指针用于USAT?MHC驱动程序配置是否自动为USAT分配PIN,如果是,我在哪里找到哪个引脚被分配。或者我们必须配置哪个引脚用于USAT后,我们已经使用了从MHC的USAT驱动程序?谢谢您! 以上来自于百度翻译 以下为原文 Hi, I am using PIC32MX470 micro and trying out an USART example in help file. There USART driver is used from harmony configurator(usart 2 is used in static mode). Now I don't know which pin is used for USART? Does MHC driver configuration automatically assign the pin for USART and if so where do I find which pins was assigned. Or do we have to configure which pin to use for USART after we have used the USART driver from MHC? Thank you!

    2019-02-27 08:04