hardware

What's the difference/relationship between AVR and Arduino?

好久不见. 提交于 2019-12-09 07:51:52
问题 I've been interested in hardware programming recently, but I have not started yet. I did some searching working, and have a vague idea: Arduino is a combination of both chip and breadboard. AVR is a single chip, and need to buy a breadboard to get started. Is that statement true or false? 回答1: AVR is just an integrated circuit microchip, made by Atmel. It looks something like this: Although they can be used by themselves, it takes a bit of hardware experience and some support components. The

Get manufacturer name in android device

拥有回忆 提交于 2019-12-09 07:50:28
问题 I need to check that android device's manufacturer is dell or not. But I haven't dell device, so cant get actually name of manufacture of device(for dell). I'm using android.os.Build.MANUFACTURER; Does anyone know that what is the value returned for the above query in case of a dell device? 回答1: Here is the wikipedia link about Android devices and MANUFACTURER strings. EDIT: That Wikipedia page has been deleted. Here is a PDF list from Google Play which lists all supported devices and their

von neumann vs harvard architecture

99封情书 提交于 2019-12-09 05:37:21
问题 Why computer architecture based on von Neumann architecture is preferred over Harvard architecture, when designing personal computers; while Harvard architecture is used for designing microcomputer based computer systems and DSP based computer systems? 回答1: Well current CPU designs for PC's have both Harvard and Von Neumann elements ( more Von Neumann though ). If you look at the L1 caches you would see that in AMD, ARM and Intel systems you have Instruction L1 Cache and Data L1 Cache, that

Any way to use HTML as an interface to a C/C++ program?

淺唱寂寞╮ 提交于 2019-12-09 02:31:54
问题 I'm developing a product that is interfaced over USB. I want to write a control app for it, but I cannot program a GUI for poo, so I came up with the idea of using a web page (local to the app's install directory) as the interface to the program. So, the line of communication would be: User --> HTML page (not hosted - it's local) --> C++ program --> USB port I'd like to do it this way because it's portable, at least UI wise, and I can write HTML fluently. My question is this: would it be

starting a microcontroller simulator/emulator

别等时光非礼了梦想. 提交于 2019-12-09 00:10:13
问题 I would like to create/start a simulator for the following microcontroller board: http://www.sparkfun.com/commerce/product_info.php?products_id=707# The firmware is written in assembly so I'm looking for some pointers on how one would go about simulating the inputs that the hardware would receive and then the simulator would respond to the outputs from the firmware. (which would also require running the firmware in the simulated environment). Any pointers on how to start? Thanks Chris 回答1:

Change flash player audio output device

半世苍凉 提交于 2019-12-08 19:37:59
问题 Is there a way to change flash players audio output device? if not, is there a swf player who has this possibility? Thanks! 回答1: I had an issue until a few minutes ago regarding this. Two audio devices are available to my XP box: an iMic USB audio I/O device, in which I have permanently plugged my desktop speakers; and a pair of USB headphones with microphone that I plug in occasionally. The USB headset would take precedence over the USB iMic for applications because apps appear to access the

If statement and assiging wires in Verilog

廉价感情. 提交于 2019-12-07 17:15:26
问题 New to Verilog and trying to figure out the basics of assiging wires based on combination logic. I have: wire val; wire x; wire a; wire b; always @* begin if(val == 00) I want to assign x = a if(val == 01) I want to assign x = b end where a and b are wires with values - and x is a wire going into a register. If you can please point me in the right direction to what I need to change, it would be much appreciated. Thank You. 回答1: First thing to ask is: are you trying to use those wires as

Driving DTR with System.IO.Ports.SerialPort in .NET

☆樱花仙子☆ 提交于 2019-12-07 15:22:33
问题 I have a sensor that uses RS232 over USB to receive commands from a PC and send data to the PC. The sensor needs to be reset (using the DTR line) before a command can be sent to it. I tried to use the built-in .net serial port, but it does not seem to drive the DTR line as expected. I am beginning to wonder if the DTREnable property actually drives the DTR pin, or if it only enables it during handshaking. Other SerialPort implementations that I could find on the web also uses the Win32 API,

What types of situations is assembly not fast enough, so you need a direct hardware / boolean logic solution?

空扰寡人 提交于 2019-12-07 12:22:46
问题 I have started to read through Art of Assembly, and in there is a section on boolean logic, which states: Of course, it is much easier to specify a solution to a programming problem using languages like Pascal, C, or even assembly language than it is to specify the solution using boolean equations. Therefore, it is unlikely that you would ever implement an entire program using a set of state machines and other logic circuitry. Nevertheless, there are times when a hardware implementation is

Do bitwise operations distribute over addition?

半世苍凉 提交于 2019-12-07 06:02:58
问题 I'm looking at an algorithm I'm trying to optimize, and it's basically a lot of bit twiddling, followed by some additions in a tight feedback. If I could use carry-save addition for the adders, it would really help me speed things up, but I'm not sure if I can distribute the operations over the addition. Specifically if I represent: a = sa+ca (state + carry) b = sb+cb can I represent (a >>> r) in terms of s and c? How about a | b and a & b? 回答1: Think about it... sa = 1 ca = 1 sb = 1 cb = 1 a