embedded

Need some ignition for learning Embedded Systems [closed]

大城市里の小女人 提交于 2019-12-21 03:01:15
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm very much interested in building applications for Embedded Devices. I'm in my 3rd year Electrical Engineering and I'm passionate

Whats the best resource to learn Assembly language for PIC microcontroller's [closed]

牧云@^-^@ 提交于 2019-12-20 23:27:01
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm going to start working on a project where I need to have a decent understanding of Assembly language for the PIC microcontroller's

malloc in an embedded system without an operating system

北城以北 提交于 2019-12-20 20:35:12
问题 This query is regarding allocation of memory using malloc . Generally what we say is malloc allocates memory from heap. Now say I have a plain embedded system(No operating system), I have normal program loaded where I do malloc in my program. In this case where is the memory allocated from ? 回答1: malloc() is a function that is usually implemented by the runtime-library. You are right, if you are running on top of an operating system, then malloc will sometimes (but not every time) trigger a

How to look up sine of different frequencies from a fixed sized lookup table?

依然范特西╮ 提交于 2019-12-20 19:59:07
问题 I am sampling a sine wave at 48 kHz, the frequency range of my sine wave can vary from 0 to 20000 Hz with a step of about 100 Hz. I am using a lookup table approach. So I generate 4096 samples for a sine wave for 4096 different phases. I think the general idea behind this to increment the step size and use different step sizes for different frequncy. So I do the following (pseudo code). But I am not sure how the step size is going to be related to the frequency I want to generate the samples

What is the best C compiler for the 8051 family? [closed]

耗尽温柔 提交于 2019-12-20 17:39:58
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . We are starting a new project based on an 8051 microcontroller. Questions: What is the best C compiler to use? Are there any open source 8051 compilers and how good are they? 回答1: Keil is what I have used with this microcontroller in the past. They've got a pretty good set of

Getting Embedded with D (the programming language)

别来无恙 提交于 2019-12-20 16:59:50
问题 I like a lot of what I've read about D. Unified Documentation (That would make my job a lot easier.) Testing capability built in to the language. Debug code support in the language. Forward Declarations. (I always thought it was stupid to declare the same function twice.) Built in features to replace the Preprocessor. Modules Typedef used for proper type checking instead of aliasing. Nested functions. ( Cough PASCAL Cough ) In and Out Parameters. (How obvious is that!) Supports low level

Getting Embedded with D (the programming language)

我的未来我决定 提交于 2019-12-20 16:57:45
问题 I like a lot of what I've read about D. Unified Documentation (That would make my job a lot easier.) Testing capability built in to the language. Debug code support in the language. Forward Declarations. (I always thought it was stupid to declare the same function twice.) Built in features to replace the Preprocessor. Modules Typedef used for proper type checking instead of aliasing. Nested functions. ( Cough PASCAL Cough ) In and Out Parameters. (How obvious is that!) Supports low level

Linux automatically restarting application on crash - Daemons

佐手、 提交于 2019-12-20 14:22:30
问题 I have an system running embedded linux and it is critical that it runs continuously. Basically it is a process for communicating to sensors and relaying that data to database and web client. If a crash occurs, how do I restart the application automatically? Also, there are several threads doing polling(eg sockets & uart communications). How do I ensure none of the threads get hung up or exit unexpectedly? Is there an easy to use watchdog that is threading friendly? 回答1: The gist of it is:

A minimalistic human-readable serialisation format parser for an embedded system

坚强是说给别人听的谎言 提交于 2019-12-20 12:35:39
问题 By "human-readable serialisation format" I mean YAML , JSON , INI or like. Please note, XML is too verbose and too inconvenient for my purposes, so let's leave it alone as the last resort. The format should store the data as "named key -- value" pairs and allow for nesting and arrays. Absence of arrays is not critical, though. Also, type-awareness (ability to return data not only as plain strings) is highly appreciated. What I need exactly is a pure C library, which provides an API for

A minimalistic human-readable serialisation format parser for an embedded system

天涯浪子 提交于 2019-12-20 12:35:09
问题 By "human-readable serialisation format" I mean YAML , JSON , INI or like. Please note, XML is too verbose and too inconvenient for my purposes, so let's leave it alone as the last resort. The format should store the data as "named key -- value" pairs and allow for nesting and arrays. Absence of arrays is not critical, though. Also, type-awareness (ability to return data not only as plain strings) is highly appreciated. What I need exactly is a pure C library, which provides an API for