Tagged Questions
-1
votes
2answers
71 views
Can I use math functions in PIC16F877A code?
Can I use exponential (exp) math function in PIC16F877A code? For example like this:
double a,ans;
a=5.7;
ans=exp(0.5);
0
votes
3answers
32 views
Globlal Variable Problem: Pic18f4550 and Pickit3 Debugging
I'm working on a project which includes the usage of the A/D converter module in the micro-controller (pic18f4550). I haven't had any problems in the past with the micro-controller using a pickit3 ...
14
votes
10answers
3k views
Do Electrical Engineers use microcontrollers? [closed]
I've always loved to program, and I just recently became interested in electronics and programming microcontrollers. It is very fun, but I am wondering if I am learning something useful that can get a ...
0
votes
3answers
90 views
Reprogram / modify existing products containing microcontrollers
Is it possible to reprogram a device containing a microcontroller if I know the name of the microcontroller and have the necessary equipment to program a clean microcontroller of the same type?
To be ...
0
votes
0answers
45 views
ELAN microcontroller programming
I am new to ELAN microcontrollers , I am trying to program EM78P156N using UWTR from ELAN. I am facing problems as I do not know the correct procedure to program ELAN controllers.
Can anybody please ...
3
votes
1answer
190 views
Possible to re-program microcontroller over Bluetooth?
I am looking at making an embedded design featuring an ARM Cortex M3 MCU and bluetooth. I would like to be able to update its firmware over Bluetooth periodically.
Is this possible with the following ...
1
vote
1answer
99 views
Is there a way to avoid an infinite loop and reduce CPU power consumption when using PIC and timer0 interrupt?
I have made a simple program that runs on a P12F629 microcontroller, using MikroC.
I need ...
7
votes
4answers
3k views
How different are 8-bit microcontrollers from 32-bit microcontrollers when it comes to programming them
Right, so we have 8-bit, 16-bit and 32-bit microcontrollers in this world at the moment. All of them are often used. How different is it to program 8-bit and 16-bit micrcontrollers? I mean, does it ...
-1
votes
1answer
114 views
PIC 18F252 config settings help
I need to blink a simple LED with PIC18F 252 but I could not figure out the config settings for doing so.
I read the datasheet looking for internal oscillator, but I could not find it. I don't want ...
3
votes
1answer
156 views
Should I define default register values in start up code?
It has come to my attention that some ARM programmers set some CPU registers with values that are the same default values of the register on microcontroller reset.
For example: the default value of ...
1
vote
3answers
322 views
1
vote
1answer
161 views
Control of electric actuators
I'm new to this forum and I am trying to find a solution to control three small electric linear actuators I have made for my RC controlled model aircraft, they have mini 6 volt geared brushed DC ...
1
vote
2answers
216 views
How to make Arduino Duemilanove Atmega 168 store instructions and act acording to them [closed]
I'm trying to make a small car with Arduino for kids. I have connected 2 DC motors at the end of chassis and one spinning wheel which is able to rotate for 360 degrees and L293NE IC with my Arduino ...
-1
votes
2answers
202 views
Can I program a MSP430553 IC using the TIVA C development board?
I have a few MSP430G2553 ICs. Can TIVA C board (EK-TM4C123GXL) used to program the ICs as I need to buy it for a online class I am about to take ????
If yes, please specify the method to be followed.
0
votes
2answers
163 views
Getting started with an LPC1313 Microcontroller [closed]
I recently purchased this microcontroller along with an FTDI TTL-232R-3V3 cable. I want to program a blinking lights hello world application onto the microcontroller. I was told that I might be able ...
3
votes
1answer
555 views
Problem Reading PIC18F4550 Input
Hi I am facing some problem with Reading the input from a PIC18f4550 , for a simple arrangement where when a switch on (switch = 1), few led should glow., and on releasing the switch the led should go ...
3
votes
3answers
401 views
Should I refactor my C code to optimise it for an embedded microcontroller?
Below is some code implemented on an 8 bit microcontroller.
The following comment was posted to another question:
As your code doesn't use the i variable, why ...
3
votes
3answers
167 views
Using a microcontroller to program another microcontroller (on a wireless board)
I am working on a project in which I want to include the functionality of reprogramming the main microcontroller via wireless transmission.
First, I have figured there needs to be a dedicated ...
1
vote
2answers
218 views
If one has used PIC uC, how different is it to migrate to using a different uC like say Arduino or ARM?
There seem to be quite many vendors making uC and some uC are more popular than others say for example Arduino and PIC because of their low cost and abundant features and ARM because of its high ...
1
vote
1answer
129 views
LTC2498 Temperature Sensor Chip Code via SPI
I would be very grateful for your tips for my present problem definition:
I have a microcontroller ATmega128RFA1 with integrated Zigbee with UART-USB(TTL Converter) attached to the PC.
From the ...
1
vote
2answers
403 views
High Voltage input and output microcontroller
I am new to this, but I am looking to regulate a few ballast controlled fluorescent lamps with a micro-controller. Everything I look at has a low operating voltage and below 10 volt input/output ...
4
votes
4answers
2k views
Delay function in ARM programming
I have just started programming on ARM, I had some experience on AVR but not that much. The question is probably too trivial but the material about ARM is too little on the net... sorry anyways.
I ...
0
votes
1answer
228 views
How do I determine what microcontroller is the right one for my project? [closed]
I have just started developing a tiny GPS trackingdevice that (eventually) will be able to log positioning-data on demand - via SMS commands and/or via a smartphone-application.
The device should be ...
6
votes
5answers
302 views
How to know usb connection is lost
I am working with AT90USB1287 controller with USB communication to PC. I am sending some commands from PC to controller using USB communication to activate some controlled switch. I am able to change ...
2
votes
1answer
721 views
How to erase PIC microcontroller?
Sorry for such "noobish" question but I've tried to help my son with learning PIC programming. I load some simple asm source into MPLAB and pressed "make and program device main project". IDE build ...
3
votes
2answers
222 views
Why are some IC's programmable in circuit, but others aren't?
Why are some IC's programmable while still connected in a system/circuit, but others aren't? What's the determining factor(s) for whether a chip can or cannot?
This question stems from my research on ...
-3
votes
3answers
171 views
Why Hex code not Uploading in Proteus?
I am unable to upload hex code in proteus and get a pop up saying
I did this :-
Picked up a PIC16 MCU
added up a HEX file of the code i created (It is a simple blink code, code is working fine)
...
2
votes
1answer
146 views
What exactly is a Flash emulator, and how does it work?
I read about a flash emulator. Can someone tell me what exactly a flash emulator is, and explain how it works? Is it synonymous with an in-circuit emulator?
0
votes
1answer
110 views
Beginner resources device design/assembly [closed]
During the summer I would love to get into electrical engineering. As background, I'm a computer scientist and as such, I have a fairly decent grasp of basic circuit design and electricity, which ...
1
vote
2answers
840 views
Sending command using USART
I am new to this kind of communication. I am able to send command from PC to AT90USB1287 microcontroller as well as able to get response using USB communication. Now i have connected another ...
0
votes
0answers
101 views
API vs Register based programming in ARM based controller
I am working with Stellaris LM4F232H5QD. Should I use Stellaris API or Register based programming, for example, to work with UART. I found - using APIs to program simplifies the work, but poor ...
1
vote
2answers
315 views
ARM Power/Exponential Function
I'm trying to code an exponential function for use on a PWM signal.
My question is, does anyone know how to do a power function on an ARM cortex-M (STM32F4 in this case, which has an FPU) ...
3
votes
1answer
131 views
Figuring out the functions of PIC numbers in a data file
I'm using Bumblebee software to interface my Wisp648 PIC programmer. According to the list of supported files for the Wisp, I should be able to program a PIC16F1829. However, that chip isn't supported ...
0
votes
1answer
493 views
Store data in built-in Flash of PIC at runtime using C code
I am designing PIC16F877a based project that counts the number of people in a room and turn ON the relays in accordance with that number like if 5 persons in a room then One relay would be ON. I want ...
5
votes
5answers
3k views
Failed to get Device ID - PICkit 3 & PIC16F684-ICD & AC16205
Like it is already mentioned in the title I have question regarding this dev stack:
MPLAB X IDE v1.80
PICkit 3
PIC16F684-ICD (datasheet)
AC16205
There is image of how things are connected (I don't ...
1
vote
2answers
391 views
STM32 program not executing
I am currently trying to make my own stm32 development board. i have stm32f100c4t6 microcontroller mounted on pcb.
I am using Atollic True studio free edition. i had made small blink led program ...
-6
votes
1answer
106 views
how we can get original data from S-record format file [closed]
I have a S-Record file how i can get original program from this file
plz tell me
EXAMPLE
...
-1
votes
2answers
108 views
How to get data from S-record file [closed]
Please tell me something about the S-record file format and how we can get data from it.
The first S1 record is comprised as follows:
• S1 S-record type S1, indicating it is a data record to be ...
6
votes
3answers
1k views
How do I program a PIC12?
I have a PIC12F675 that I need to program. I'm using a Pickit 2 and the Pickit 2 software. Supposedly I should be able to program it using this circuit, but the Pickit 2 software is not detecting the ...
2
votes
2answers
609 views
Control multiple LEDs using an IC and PC/Linux thru USB
I've already tried to search this topic but all Google results said that this isn't possible. Is there any chance of controlling multiple LEDs using a PC/Linux, through USB? The diagram might look ...
2
votes
5answers
155 views
Micro-Controller Programmable Selection
I have searched a lot and I can't seem to find a micro-controller that I can program in C++. Can someone please help me find a micro-controller (besides Arduino) that I can program C++?
0
votes
1answer
174 views
Value of FNOSC in the configuration of my code
I am using PIC24FJ64GA002 and I have configured my setting for PIC as following.
...
-1
votes
1answer
125 views
How to ANDed bitwise in assembler?
Say I have a variable set to 30. In binary, 30 = 11110. I'd like to test some bits and then perform an action. For example, if bit 4 is set AND bit 3 is set AND bit 2 is set AND bit 1 is set THEN ...
7
votes
2answers
3k views
Using multiple external interrupts in PIC
I've used PIC16F877 (datasheet) for several projects. For a single external pin change interrupts, you can use PORTB0 interrupt. ...
1
vote
4answers
445 views
Any microcontrollers which can be directly programmed on a breadboard? [closed]
Does anyone know of a microcontroller which can be directly interfaced and programmed through a PC using serial/parallel/usb port? I am looking for a microcontroller which can be plugged into a ...
0
votes
2answers
1k views
How to get data from one micro controller to another using UART
My concept is I have two designed boards, One with AT90USB1287, other with ATmega32A both are working properly.
AT90USB1287 is talking to the PC via USB.
ATmega32A is talking to the PC via ...
1
vote
1answer
205 views
Accelerometer and Transistor
Here is my program, I want to:
The microcontroller, Arduino UNO R3 sends 3.3V to the sensor, Accelerometer, MMA7361
The sensor turns on and send signal to the microcontroller.
When I move the sensor ...
2
votes
3answers
751 views
MPLAB XC16 compiler outputting 8-bit HEX files for PIC24?
I am trying to understand a HEX file I compiled with Microchip MPLAB X IDE using the Microchip MPLAB XC16 Compiler.
Concerning the MCU, I am targeting the PIC24EP512GU814. However the scope of this ...
0
votes
2answers
169 views
PIC24E writing address and increment for ICSP programming
I am trying to program my Microchip PIC24EP512GU814 in ICSP mode. The resource I'm using to do this is the Microchip dsPIC33E/PIC24E Flash programming Specifications (70619B) and the Microchip ...
2
votes
4answers
5k views
How to calculate phase shift between two sine wavefroms
I two sinewave signals with same frequency. I want to measure phase shift between two signals. There will be a small phase difference between two signals. I am using ATmega32-A micro controller and ...