microcontroller

How can you do C++ when your embedded compiler doesn't have operator new or STL support?

I am working on a group senior project for my university and I have run into a major hurdle in trying to get my code to work. The compiler that we have for our 8 bit Atmel microcontroller does not support the new or delete operators, and it does not support the C++ STL. I could program it in C, but I have to implement an A* algorithm w...

Getting Started With Programming PICs (or similar products)

How do I get started with programming PICs (or similar products)? Preferably in C. What are some good beginner kits, tutorials, books, etc.? Maybe some little robotic project ideas. ...

Easy Button to UDP Packet - Control board terminology

For those who deal with microcontroller programming... I want to take a momentary contact switch (let's say a Staples Easy Button, since that's the most fun momentary contact switch around), and when it is pressed, send a broadcast UDP packet across a network (to be received by a .NET application and do all sorts of fun things from ther...

Tilt sensor to work with Google Earth

I'm working with a microcontroller and trying to use the tilt sensor to control the panning and rotating of the google earth image. I already have the tilt sensor connected to the C# code and can get data from it. What are the relavant functions that I would use to do navigate google earth in C#? ...

MC68000 question: Result of a loop

dose anyone have clue how to work on this ::::: Given the the following piece of a code, write the corresponding bit storage (in hex) at the memory location starting at $8000 Source line School MOVEM.L D6/A3-A6,-(SP) ADD.W D2,D BVS School ...

How to send sound to a speaker

Hi, If I were to program a microcontroller (ATMega128) to play a realtone with a speaker, how would I do this? Do I need to use a digital/analog converter to send different amplitude values, or is it enough with frecuency changes? In any case, how would I encode the frecuency/amplitude values that the speaker needs to receive? Do I need ...

Arduino serial reading

I am working on a web controlled rover and am using a serial port to communicate with an Arduino. I wrote some PHP that just uses fwrite() and writes an ascii 1 or an ascii 2 to the serial port. The arduino is listening to that port and does stuff based on what it hears. I know my PHP is working, because whenever I tell it to send stuff,...

C++ for 8051 microcontroller?

Hi all, Could someone please tell me if it's possible to burn an 8051 microcontroller with a C++ program? I've tried searching about it online but can't seem to find out for sure if it's possible or not. Keil uses C, but the program I need to write is very string-intensive and C is quite string-unfriendly as compared to C# which is wha...

Do you think you need some simple tutorials on Microcontroller programming?

This is not 100% programming related. But I think this is somewhat useful because it is addressing a minority in the SO community. Microcontroller programming is one of the interesting areas in programming. I saw some topic here requesting the Resources for starting / learning / discussing about PICs. Example topic Since I have plenty...

What did you develop using a microcontroller?

I've always been fascinated by microcontrollers and I'm planning to do a few hobby projects just to satisfy my inner geek :) I'm looking for ideas and motivation, so what did you develop using a microcontroller? If possible please state the microcontroller and/or development environment and an estimate on hardware costs beyond the basi...

Are there a Code Conventions for Assembly (mainly PIC)?

Are there a Code Conventions for Assembly (mainly PIC)? ...

Building an AVR with HTTP server and SNMP agent?

I need to build a prototype for a simple data collection device using an AVR microcontroller. The device will basically collect sensor data and make this data available via SNMP and a HTTP response. What are my options when it comes to AVR software that would already have a HTTP server and SNMP agent built-in? ...

Unit testing patterns for microcontroller C code

Although there are plenty of unit test frameworks that support C, I'm a little stumped on how to write unit tests for micro controller code (PIC in my case, but I think the question is more general than that). Much of the code written for micro controllers revolves around Writing configuration and data values to registers, reading incom...

Call tree for embedded software

Does anyone know some tools to create a call tree for C application that will run on a microcontroller (Cortex-M3)? It could be generated from source code (not ideal), object code (prefered solution), or at runtime (acceptable). I've looked at gprof, but there's still a lot missing to get it to work on an embedded system. An added bonus...

how to program c8051f320 mcu?

is there any sites in the web that has a beginner's tutorial on c8051f320 mcu programming? ...

What are the available interactive languages that run in tiny memory?

I am looking for general purpose programming languages that have an interactive (live coding) prompt work in 32 KB of RAM by itself or 8 KB when the compiler is hosted on a separate machine run on a microcontroller with as little as 8-32 KB RAM total (without an MMU). Below is my list so far, what am I missing? Python: The PyMite V...

FileHelpers-like data import/export utility for binary data?

I use the excellent FileHelpers library when I work with text data. It allows me to very easily dump text fields from a file or in-memory string into a class that represents the data. In working with a big endian microcontroller-based system I need to read a serial data stream. In order to save space on the very limited microcontroller ...

Microcontroller wth integrated USB function + USB host controller

I found this microcontroller AT83C5134/35/36 which has an inbuilt USB function, if i program this controller can i directly connect it to the modem ( an interface between the PC and telephone " the internet world ") for data transmission, or else i need something else ?? Please have a look at the data sheet of the same at http://www.alld...

How can I send a string serially from an 8051 only ONCE?

Hello everyone, I am making an 8051 microcontroller communicate wirelessly with a computer. The microcontroller will send a string to its serial port (DB9) and the computer will receive this string and manipulate it. My problem is that I do not know how to make the 8051 transmit the string just once. Since I need to manipulate the st...

What microprocessor for experimentation?

I harbor a secret fantasy (oops, not so secret anymore) to build a simple computer from scratch. I'm looking for an easy-to-use microprocessor to start with. I know about the usual suspects such as the 6502, 68000, 8086, Z80, etc. But I'm wondering if something better is out there. Here's my wish list: Must have: Low clock rate (4-25 ...