-1
votes
0answers
30 views

How to stabilize the value of ADC in PIC microcontroller?

I have been designing auto range multimeter using PIC microcontroller. Having problem in the auto range switching due to the ADC reading since ADC reading for particular voltage varies by 100 to 150 ...
3
votes
1answer
52 views

PICkit 3 & PIC16F684-ICD & AC16205 random success with programming

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 ...
4
votes
1answer
190 views

Microcontrollers with extreme high temperature range

I am looking for components which works at high temperature. Especially I am looking for microcontrollers which works at 180 °C to 200 °C. I am designing downhole electronics for oil and gas ...
0
votes
2answers
196 views

Creating a lookup table in a microcontroller using in C

How can I create a lookup table in a microcontroller using C? I have one input and one output and want to implement a lookup table in C.
36
votes
9answers
3k views

How can anyone use a microcontroller which has only 384 bytes of program memory?

For instance a PIC10F200T Virtually any code you write will be larger than that, unless it is a single purpose chip. Is there any way to load more program memory from external storage or something? ...
0
votes
1answer
48 views

PIC32 Issue with using JTAG Pins as Analog Inputs

I'm trying to read in a value using a few analog pins on a PIC32 (MX775F512H), including RB12-- part of the JTAG pins on the device. The device the board is reading from works great, but the board ...
2
votes
2answers
99 views

How can I control 8 LEDs with a timing delay with only one microcontroller (PIC12) written in Assembly?

I can have 5 I/O pins enabled. I'm just confused on how to control them individually.
6
votes
3answers
251 views

Switching from PIC to AVR [closed]

I have worked with PIC16 and PIC18s for over three years now and would like to get to know AVR as well. I have no specific project in mind, but would like to try around with the different ...
-2
votes
1answer
51 views

How to search date wise in flash memory using microcontroller?

I am developing a data logger in which I am using 8 MB of flash memory to store the sensor data with date and time. I am using RF interface to transfer that data to PC. I am planning to have PC ...
2
votes
1answer
79 views

Bit Banging UART

My full code is located here. Basically, I'm transmitting to an Arduino, and I'm not receiving the correct value (you'll notice I'm trying to send d'22'). Here's the method where I actually bit bang ...
0
votes
1answer
77 views

How to use the PIC16F628A's PORTA,4-7 as inputs?

I'm working on a countdown timer and I want to use the MSN of PortA for my switches. I'm using MPLAB. I can't use C to program the PIC because the collage taught us to program in decimal, and they ...
5
votes
1answer
162 views

Serial Communication over 1 Pin?

Okay guys, I'm in a bit of a pickle here. I have the following circuit: As you can see, pin 3 is my only output. I've actually already had this board printed, so there's not much room for ...
6
votes
3answers
130 views

How to calculate day of the week for RTC?

I am using MCP7940 RTC from microchip it requires to enter the day of the week as part of updating RTC with date. So how should I calculate day of the week based on the date provided by the user ?
0
votes
2answers
64 views

How to Synchronize two RTC module one internal and other external?

I am developing a data logger based on PIC controller. The PIC has internal RTC but does not have pins for connecting battery so I am using pic's internal RTC to generate interrupt every second and ...
0
votes
2answers
73 views

Read from UART seems to overwrite while in buffer

I am reading sending data to a PIC32MX7xx using UART. The data frames are all 6 bytes long, no exception. The problem I am facing is that when there are 6 bytes waiting to be read and I send another ...
2
votes
0answers
103 views

How do I convert this analog PID to a digital one?

I want to transform a type III analog PID into a discrete-time one so I can implement it on a PIC18F. The controller is for a buck converter. When I apply the bilinear transformation to the analog ...
0
votes
1answer
58 views

PIC24H POT input to control LED blink delay not linear

Hello I'm using the PIC24H microprocessor and I wrote a simple program that takes input from a POT using analog input which is then set to a modulus value of delay. It does seem to set the delay, but ...
2
votes
0answers
52 views

PIC16F877A latchup/glitching

I have a PIC16F877A microcontroller with a 19.6608 MHz crystal, wired for 12V ICSP. I can reprogram the chip just fine, and it runs almost flawlessly (it's blinking an LED right now as I type). Only ...
4
votes
4answers
187 views

uC platforms to consider for faster CPU and 30+ GPIO pins

I am building a Persistence of Vision project with 120 RGB leds (=360 total lines to be controlled). We have settled on the TLC5940 for driving the LEDs (and could be open to changing this), however, ...
0
votes
1answer
158 views

Can I remap a car\bike ECU using CAN bus?

I am thinking to use something like this to connect an Arduino to a motorbike engine control unit (ECU): Arduino CAN-Bus Shield with uSD Card Holder. I never did something like this; using CAN bus, ...
5
votes
3answers
232 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 ...
5
votes
1answer
103 views

How can I lower output impedance of an accelerometer?

I'm planning to use an accelerometer with a microcontroller to measure acceleration. The issue that I have ran across is that in PIC microncontrollers the ADC requires that the connected analog ...
1
vote
2answers
233 views

PIC16F877A (with LCD) not working

I have designed a PIC18F877A micro controller project to read temperature from an LM35 using ADC, display it on an LCD and transmit it to a serial port. When the program starts, sometimes it shows a ...
2
votes
3answers
153 views

Why pic18fxxx microcontrollers is better for C language

Pic18fxxx family has a lot advantages and improvements from the pic16fxxx family of microcontrollers. What is the particular feature that make them better for C programming than the pic16fxxx devices? ...
5
votes
2answers
124 views

Save energy with PIC project

I want to implement a device with 2 push buttons. When I press the first button, it will increment a counter. When I press the second, the number of times the first one was pressed (counter content) ...
0
votes
1answer
155 views

RE: USART @115200 on PIC18 explorer (PIC18F8722)

I have tried to initialise UART1 and communicate with a PC with no success @115200, as the SPRTG register, which needs to be 4.4253, cannot be so without introducing a large error. The board has ...
2
votes
3answers
141 views

A syntax error in my C18 program code

I'm using the MPLAB IDE X v1.41 with C18 compiler to pragram a PIC18F45K20. My objective is to retrieve image data from a completely built image sensor board and display on the computer using the ...
3
votes
3answers
161 views

PIC - Time to enter the interrupt

I am using the PIC18F2550 and I wanted to know how much time takes between an event happens (e.g. ADIF)and the interrupt routine starts. In other words, how much time the "interrupt system" takes to ...
5
votes
1answer
382 views

Interrupt Service Routine in C - function at specific address

I need to add an Interrupt Service Routine (ISR) to existing code in C for a PIC18F4620 and a PIC18F46K22. As you can see in section 9 (of both datasheets), these devices have multiple interrupt ...
7
votes
4answers
275 views

Can individual pins of different port of a microcontroller be mapped to a register and their values be changed when changing the register value?

Q: Can individual pins of different port of a micro-controller be mapped to a register and their values be changed when changing the register value? Scenario: I have used up some pins from each ...

1 2 3 4 5 7
15 30 50 per page