unsigned char SpiRead(void){ unsigned char j; for (j=0;j
2015-06-03 12:16
本帖最后由 nuonuoluoya 于 2015-4-17 20:49 编辑 if(IFG1 & WDTIFG == WDTIFG)可以吗最近在做一个系统,要求在程序异常后看门狗复位时能够保存某些变量的值,以便系统重启后能够接着之前的状态运行。这两天一直在纠结该如何实现这个功能,希望各位大牛能够不吝赐教,指导一二,感激不尽。
2015-04-17 17:37
本人学生,正在做这个,完全是新手就看了一段时间,求大家指导下,谢谢大家。
2015-05-18 18:22
已经安装了USB驱动,就是通信不了,运行时提示已经超时,请大神帮忙解决!
2016-12-07 11:03
最近使用MSP430F2132开发了一款产品,在开发阶段使用的是仿真器更新程序,目前产品要大批量生产,所以想用BSL的下载方式下载程序,但是尝试了多次都失败了,下载器用的是网上买的BSL专用下载器(给MSP430F149下载程序正常),下图是下载失败时的界面,该软件中没有MSP430F2132,只有MSP430F21x1系列, 单片机和下载器的连接接口是 :TX--P11, RX--P22, DTR--RST, RTS--TEST, VCC, GND请高手帮忙看看是哪的问题,调试一天多了也没结果,很着急,希望大神帮忙指点一下,不胜感激!!!!
2016-12-15 14:22
我正在用msp430f149做一个测量设备,现在想 在不用时将外围的芯片(该芯片不在430上)等切断电源,只保留430工作于低功耗模式,我现在需要做什么?会的人帮帮忙。。。
2016-11-24 22:23
如果没有sg3525,有其他能替代的吗?脉宽调节控制器
2015-04-28 14:26
轴向柱塞泵1-手轮;2-丝杆;3-变量活塞;4-斜盘;5-销;6-回程盘;7-滑靴;8-柱塞;9-中间泵体;10-前泵体:11-前轴承;12-配流盘;13-轴;14-定心弹簧;15-缸体;16-大轴承;17-钢球。
2019-10-15 09:00
你好,我使用PIC18F67 J60控制器,尝试实现Modbus TCP/IP。为此,我使用TCP/IP Lite堆栈。该控制器将作为一个远程服务器,并将具有一些DI,其状态将被发送到PC,将充当客户端。最初,我实现了堆栈,并测试了演示服务器和Client。C文件,并能够成功地与TeCPPIPdemo.JAR文件建立通信。NT的Modbus TCP协议,我对TCPyServelDimo.c文件做了微小的更改,而不是回送所接收的任何内容,控制器将返回的响应发送给匹配的Modbus查询。我需要从微控制器查询每200到300毫秒的数据。从最初的响应中,我没有得到来自控制器的响应。只有当我在PC端增加轮询时间(到3秒以上)时,我才能接收到每个查询的连续响应。但是即使在这种情况下,PC在控制器响应之前多次重试(这是使用WiReSARK进行的)。我想知道我的需求是否可以使用这个控制器和这个堆栈来执行,如果需要的话,我需要做什么来加快PIC方面的TCP处理。样例代码,如果需要,WiRESHARK PICS。我现在使用PIC-OLIMEX开发板测试这个。 以上来自于百度翻译 以下为原文 Hi, I'm using PIC18F67J60 controller and trying to implement Modbus TCP/IP. I am using the TCP/IP Lite Stack for this purpose. The controller will act as a Remote Server and will have some DI whose status will be sent to a PC that will act as the Client. Initially I implemented the Stack and tested the demo server and client .c files and was able to successfully establish communication with the TCPIP_Demo.jar file. To implement the Modbus TCP protocol, I made minor changes to the tcp_server_demo.c file and instead of echoing back whatever is received, the controller sends back response to a matching Modbus query. I need to query the data from the microcontroller every 200 - 300 ms. When I poll at this speed from PC, apart from an initial response I get no more responses from the controller. Only when I increase the polling time on PC side (to above 3 seconds) I'm able to receive continuous response for each query. But even in that case, the PC retries multiple times before the controller responds (this was observed using Wireshark). I would like to know if my requirement can be executed using this controller and this stack, and if so what I need to do to speed up the TCP handling on the PIC side. I can provide the sample code, wireshark pics if required. I'm currently testing this using the PIC-OLIMEX development board.
2018-09-26 16:24
求大神教教啊,各种不会
2015-05-28 16:43