2
votes
2answers
126 views

ExternalDifferential ADC Values for PIC

I have a temperature sensor design that I'm using as a reference. It takes 2 RTD sensors and reads their values with a Dual Channel 16-bit Differential ADC. The ADC interfaces through the SPI bus. ...
2
votes
2answers
206 views

Can I generate 56kHz signal with MCU running at 1Mhz

I am new to embedded systems designing. I have to generate a 56kHz signal with a MCU running at 1Mhz. I want high accuracy. If I just use a timer, it gives me 55.55kHz. Is there any way I can divide ...
1
vote
0answers
73 views

How to get rid of “Invalid opcode 0x002A at PC=0x004” in ISIS Proteus?

I have used ATmega 8 and have simulated a circuit to use interrupts, when i give an external interrupt i.e. when a push button is pressed all the LEDs connected to PORTB supposed to be lit up, but i ...
1
vote
2answers
61 views

Function called in ISR and Overlay Directive -Keil / 8051 core

My C code has an ISR, where a decision has to be made to execute a particular function "A". Now I know that its not good to run a function in an ISR. But in this case of my application, I do not see ...
0
votes
0answers
38 views

Can you help me find a suitable MIPS eval board

I'm a ARM guy but recent events have me needing to port some of our code base to a MIPS device and profile it. Mainly concerned with processor utilization. The device target I'm looking for is a ...
1
vote
1answer
96 views

Leaving target processor paused nios ii multiprocessor application

I m using the multiprocessor tutorial, to have a MPSOC application, but when i finish all steps and running the nios application I have this message in the terminal, ...
1
vote
2answers
279 views

how to check SPI signals

I am working with ATmega32-A micro controller. I am trying to read ADC (AD7798) values. I am setting ADC registers as shown below. Images also attached. ...
2
votes
4answers
481 views

ADC registers setup using spi communication

I'm new to microcontrollers - I'm trying to read external ADC values from an AD7798 ADC using SPI communication. Initially I have to setup some ADC registers - some registers are not configured. To ...
1
vote
2answers
303 views

How do I call a C function in another module from inline assembler in IAR EWARM?

I don't know if this is recommended or not but I am sure someone will give me a stern warning if not. I have posted a duplicate question in stackoverflow, however this may be just as appropriate here ...
3
votes
3answers
649 views

Learn C programming before start learning Microcontroller/Embedded Systems [duplicate]

Possible Duplicate: How to become an embedded software developer? I want to know whether it is mandatory to learn C/C++ programming before start learning Microcontroller or the Embedded ...
3
votes
2answers
251 views

PWM timer problem with HCS08 - freescale

I am using a MC9S08LH64 microcontroller's timer module to generate an internal timer for synchronization. bus clock is at 4.3 MHz, modulo is set at 4309 (TPM1MODH and TPM1MODL) and I am expecting ...
5
votes
4answers
737 views

How to Wire a PIC Microcontroller?

I'm completely new to the world of PIC Microcontrollers and electrical engineering so please go easy :) Anyway, I managed to program my PIC 16f627 to turn on three LEDs when push button (trigger ...
4
votes
2answers
197 views

Automating linker file change

I am working on a firmware project in which i have to do a crc16 check for flash integrity. Controller: MSP430 IDE: IAR EW 5.40 (Linker Xlink) The crc is calculated using IAR Xlink linker and kept ...
2
votes
2answers
296 views

Dynamically allocating memory for an embedded application

I am working on a Project that will requires using an MCU to receive frame packets with unknown frame length on reception, but each reception has an octet from which you can deduce the number of ...
0
votes
0answers
54 views

How to Load the Application on Mifare DESFire Card

I am using a SCM Microsystem card reader for communication with MIFARE DESFire card. I want to know how to load the application onto the DESFire card.
3
votes
4answers
1k views

Where are static variables stored?

Suppose I am using a 8051. I compiled a code which has a static variable. Where that Static Variable will be stored? In RAM? In Stack? On Heap?? In flash? Where? Also, Correct me if I am wrong: CONST ...
1
vote
2answers
213 views

BeeStack and the Freescale MC13224

I've been a long term desktop application developer and now I have the need to dive into embedded. What I am looking to do is implement a Zigbee mesh network where there is one co-ordinator ...
-1
votes
1answer
159 views

Loop across ports (avr)

I am trying to scan a key matrix that is 9 rows long. Currently my code is a bunch of if statements, one per row, and I would like it get it down to a small if loop. I don't think I can put PINB, ...
4
votes
3answers
696 views

Usage of the #pragma pack(1) compiler directive on embedded applications

I have recently come across this #pragma pack(1) preprocessor directive and was wondering why it is being used? I Googled the usage, and found it has other options such as push,pop etc. Has anyone ...