embedded

What makes SPI faster than I2C protocol [closed]

不打扰是莪最后的温柔 提交于 2019-12-05 17:14:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I know the basic of I2C and SPI communication. As both are synchronous protocol. I wanted to know that what makes SPI faster than I2C. If I am not wrong using I2C we can go used 400kbps while in SPI we can achieve 10mbps also. Does it because of hardware change? This question was asked to me in one of the

Parsing an RFC822-Datetime in .NETMF 4.0

半世苍凉 提交于 2019-12-05 16:40:05
I have an application written in .NETMF that requires that I be able to parse an RFC822-Datetime. Normally, this would be easy, but NETMF does not have a DateTime.parse() method, nor does it have some sort of a pattern matching implementation, so I'm pretty much stuck. Any ideas? EDIT: "Intelligent" solutions are probably needed. Part of the reason this is difficult is that the datetime in question has a tendency to have extra spaces in it (but only sometimes). A simple substring solution might work one day, but fail the next when the datetime has an extra space somewhere between the parts. I

C++ disable destructors for static variables

只愿长相守 提交于 2019-12-05 16:18:22
I have a general purpose class which is used in different contexts - sometime as static variable, and sometime as a normal variable on the stack/heap. When it is used as a normal variable the destructor must be called when it goes out of scope - as normal. The executable is used in an embedded target where flash is a limited resource and which will never exit, and for this I would like this "exit" code to be disabled. Following is an example to illustrate the problem. A is the class where the destructor is needed for normal circumstances, but is not needed for static variables. struct Abstract

What's the best description for “embedded hardware system”?

大城市里の小女人 提交于 2019-12-05 16:12:36
When I hear that, I always think about an mobile device. But why is the hardware "embedded" there? Isn't the whole device the hardware? Why is a personal computer no embedded hardware system? Adam Davis In today's world embedded simply refers to a system with one or more of the following traits: Single purpose (ie, not a general purpose computer, like your desktop) Firmware rather than software - still software, but not as easily updated (flash, etc) Hardware and software are designed together as a unit Different, perhaps more rigorous testing as software updates are not desired Real time

GCC C++ (ARM) and const pointer to struct field

自作多情 提交于 2019-12-05 15:59:28
Let's say there is a simple test code typedef struct { int first; int second; int third; } type_t; #define ADDRESS 0x12345678 #define REGISTER ((type_t*)ADDRESS) const int data = (int)(&REGISTER->second)*2; int main(void) { volatile int data_copy; data_copy = data; while(1) {}; } Which is compiled in CodeSourcery G++ (gcc 4.3.2) for bare metal ARM. It also has a very standard linker script. When compiled in C (as main.c) the object "data" goes into Flash, as expected. When compiled in C++ (as main.cpp) this object goes into RAM, and additional code is added which does nothing more than copy

Disable CE windows animation, programmatically?

爱⌒轻易说出口 提交于 2019-12-05 14:32:01
Here is how to do it with a registry key. * Go to HKEY_LOCAL_MACHINE\SYSTEM\GWE * Create a DWORD named Animate if it does not already exist * Edit the DWORD value named Animate * 0 - Disables Window Animation 1 - Enables Window Animation However, it needs restart of the device. I would like to know if there is anyway to disable it instantly, programmatically? Take a look at SystemParametersInfo . There is no animation setting, but maybe if you notify GWES of a different change it will also update the animation state. 来源: https://stackoverflow.com/questions/3268631/disable-ce-windows-animation

Python *.py, *.pyo, *.pyc: Which can be eliminated for an Embedded System?

ぐ巨炮叔叔 提交于 2019-12-05 13:57:08
问题 To squeeze into the limited amount of filesystem storage available in an embedded system I'm currently playing with, I would like to eliminate any files that could reasonably be removed without significantly impacting functionality or performance. The *.py, *.pyo, and *.pyc files in the Python library account for a sizable amount of space, I'm wondering which of these options would be most reasonable for a Python 2.6 installation in a small embedded system: Keep *.py, eliminate *.pyc and *

Can I use Java on QNX?

馋奶兔 提交于 2019-12-05 13:49:01
I have to serve two masters. One project which is expected to split in two after v1.0. It initially was a straightforward embedded project coded in C using FreeRTOS. It till could be until v1.0. Afterwards, one master says we must use QNX to please a partner or lose a deal while another says that we must use J/XFS (Java extension for financial services ) or lose another deal. QNX doesn't exactly seem bustling with support for Java. The best that I can find is this link , but t's hardly official. So, can anyone shed more light on Java on QNX? I have to say that I've never tried to use Java

Java in Embedded Programming

本秂侑毒 提交于 2019-12-05 13:43:44
Can java programming be used in micro-controller programming like C and C++? If yes what are the requirement for it? What about in PIC16 and PIC32 series micro controller? Any Possibility for them. I could not find much more information about it in the web too.I appreciate your help. Cheers!!! Clifford To run Java on any platform you will need a Java Virtual Machine (JVM). I would not hold out too much hope for PIC16 due to the memory resources required and perhaps the performance. If you want the highest performance and smallest footprint then C or C++ are a better (and most usual) solution

Arduino: Lightweight compression algorithm to store data in EEPROM

心已入冬 提交于 2019-12-05 13:26:32
问题 I want to store a large amount of data onto my Arduino with a ATmega168/ATmega328 microcontroller, but unfortunately there's only 256 KB / 512 KB of EEPROM storage. My idea is to make use of an compression algorithm to strip down the size. But well, my knowledge on compression algorithms is quite low and my search for ready-to-use libraries failed. So, is there a good way to optimize the storage size? 回答1: You might have a look at the LZO algorithm, which is designed to be lightweight. I don