Tagged Questions
-2
votes
0answers
46 views
Digital Audio Filter: Delay, Echo, and Pitch Conversion [closed]
I'm using dsPIC Starter Kit (DM330011).
And I want to put those three stuff as a main functions.
Delay: when you speak on Microphone to record it and play it through speakers, hear your voice in 2 ...
4
votes
3answers
148 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 ...
2
votes
2answers
91 views
Char array at an int in C18
In Jal, it's possible to do something like this:
var word the_var = 0x1234
var byte the_array[2] at the_var;
Now you can easily access the bytes of the word ...
0
votes
1answer
116 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 ...
3
votes
1answer
125 views
PIC18F4580 - PORTD not being read correctly
I am experiencing a strange problem with reading back the value of PORTD while it is configured as an output. I am writing to ...
5
votes
1answer
467 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 ...
6
votes
1answer
161 views
dsPIC chips running at a fraction of normal speed
I have two PCBs. One has a dsPIC30F6012a, the other a dsPIC30F6015. Both are being programmed from separate standalone HEX projects in MPLAB X, using a PICkit 3. Both firmwares have been applied to ...
1
vote
1answer
219 views
Programming/Debugging with ICD3 and PIC16F819-I/P
ICD3 passes internal test with MPLAB IDE using the Test Interface Module
PIC16F819-I/P supports ICSP and In-Circuit debugging source.
ICD3 pinout is as follows (source):
...
7
votes
2answers
175 views
Need some help understanding PIC memory map
Some background. I use MPLABx with a PicKit2 to program different types of pics. At the moment its the 16F887. I try to stick to the Hi-Tech PICC Lite tool chain but I'm growing increasingly unhappy ...
0
votes
0answers
180 views
sdcc - small c compiler [closed]
I am trying to install sdcc- small device c compiler to my mplab x ide. But, since I have using Ubuntu 12.04 not Windows, I could not manage to install it automatically to my mplab x ide. Can you ...
3
votes
1answer
94 views
PICKIT 3 resets PIC16 three times upon reprogramming
I am using the PICKIT 3 with MPLAB X with the default setings. When I press F6 to build and run my code, I notice that the PIC16 resets three times:
twice with ...
1
vote
1answer
543 views
after programming PIC, can no longer run debug or reprogram
OK, I have written a few basic programs in MPLABX C18 for both 18f4550 and 18f46k20. Eventually got them to compile and test/debug correctly and run on the PIC. After I choose, "make and program ...
2
votes
3answers
528 views
c18 coding advice / braces error / function declaration help
I have almost NO experience coding so please excuse the crude style and verbose commenting. I am trying to sample from 4 sensors (1 every 15 minutes). I thought it would be more efficient to have the ...
3
votes
1answer
165 views
Can't read written data out of 24AA1025
I've got a PIC18F with MSSP that I'm interfacing with a 24AA1025. I'm using MPLAB 8 and the functions from C18 to make my life easier. The only problem is that I've (supposedly) written a byte to ...
3
votes
2answers
397 views
How to create a pointer to code memory in microchip C30
i'm having a bit of a problem with this code. The code is intended to create an LCD MAP, with LCD routines to interface a 7 segment based LCD with the PIC24FJ128GA310 MCU with internal LCD driver.
...
1
vote
2answers
661 views
Unable to use compiler built-in functions to write to dsPIC EEPROM
As I mentioned here, I've been having issues with EEPROM on dsPIC30F6012A. Since my old EEPROM library was difficult to analyze and support, I went back to square one and rewrote it using the new ...
2
votes
2answers
1k views
PIC measuring PWM pulse length
I'm just getting started with PIC processors, driven mainly by a shortage of the simpler PICAXE from my local retailer. My question is, how do I read the length of a PWM pulse on a certain input pin ...
7
votes
2answers
451 views
Large array in C18 causes device reset
I am using the PIC18F13K22 and Microchip's C18 compiler in MPLABX. The PIC kept resetting, when it was about to jump into the interrupt service routine (ISR). I was able to trace the problem down to ...
1
vote
2answers
386 views
Array manipulation in MCC18
Suppose I have an array:
#define ARRAY_SIZE 576
#pragma udata DATA
float I_1[ARRAY_SIZE]; //My huge array
#pragma udata
And that I access my array like so:
...
0
votes
2answers
244 views
Data output issue on PIC18F4520
I have programmed the PIC18F4520 with MPLAB, MCC18 and Pickit2. My code is pasted below:
...
3
votes
1answer
597 views
PIC18F4520 ADC Conversion in MC18
I have a dilemma.
I need to read ADC values from PIC18F4520. My configuration, and code, is as follows:
...
4
votes
3answers
180 views
MPLAB 8: Hotkey for “Program Target Device”
I am looking for a hotkey that will have the same effect as "Program Target Device" from the toolbar or menu.
...
2
votes
2answers
260 views
10
votes
2answers
690 views
Compiling code to run from external RAM
I am considering designs for a minimalist game system based on a PIC18F85J5. Part of my design is that games can be loaded from an SD card without reprogramming the chip or flashing the program ...
1
vote
1answer
568 views
Programming dsPIC30F4011/13 on board dsPICDEM 2 with MPLAB ICD 2
I have Microchip's dsPICDEM 2 Development Board with two MCUs on it, a dsPIC30F4011 Motor Control MCU and a dsPIC30F4013 General Purpose MCU. I need to program both microcontrollers with the MPLAB ICD ...
3
votes
1answer
449 views
PICC will not disable WDT on PIC16F876
IDE= MPLABx
Toolchain = HiTech PICC Lite
Target = PIC16f876
Burner = PICkit2
This is a new one for me. I have three leds connected to the chip, RC0, RC2 and RC3. RC2 pulses on at the beginning of ...
2
votes
1answer
246 views
Designing a linker script for use with MPLAB ICD 2
I need to alter the 18F452 linker script so that it allocates memory for resources used by the MPLAB ICD 2. I'm not sure how exactly to go about doing this, so could anyone please make any suggestions ...
2
votes
1answer
906 views
Extended Instruction Set mode for PIC18F with Hi-Tech Compiler
I'm writing some firmware for a PIC18F6622 microcontroller. I use MPLAB IDE 8.73 + HI-TECH C Compiler for PIC18 MCUs (PRO) 9.66.
When I set the XINST (Extended Instruction Set enable bit), the IDE ...
3
votes
1answer
583 views
Interfacing with SD card in Graphics Display Designer (MicroChip)
I have a PIC24 chip, a TFT screen, and a SD card reader/SD card. The software I'm using is MPLAB v8 and Graphics Display Designer addon. What I want to do is use Graphics Display Designer in MPLAB to ...
4
votes
3answers
1k views
how to make the eclipse IDE to be compatible for PIC devices?
I am looking for a PIC development environment that is better than MPLab. Is it possible to to install and configure Eclipse to work with PIC microcontrollers?
1
vote
4answers
391 views
MPLAB linking error
I am working with Invensense IMU3000 and a PIC18 microcontroller. I am migrating a library, written in MSVS2005, to MPLAB, doing the proper modifications to run on it.. the code itself provides just ...
1
vote
3answers
669 views
Invensense IMU3000 with PIC
Has anybody experienced using the Invensense IMU3000 gyroscope with some microcontroller?
The hardware comes with a really good library integrating full control of its features. This library is ...
3
votes
5answers
745 views
PIC16 Timer0 oddity
Using a PIC16F886, I am trying to generate interrupts every 100 milliseconds using TMR0 clocked from the internal oscillator, but I am getting some really strange behaviour.
This is a battery powered ...
1
vote
2answers
626 views
PicKit 1 and mplab
When I try to use the PicKit 1 in MPlab for the PIC 16F913, it doesn't allow me to program the chip using my programmer, even though it has ICSP, I currently have to just pick some other programmer, ...