Hi!Today onward I am getting this weird problem when compiling for my code for PIC32MX795F512L. Few days back same code was getting properly compiled. void main(){
unsigned char i=0; AD1PCFG = 0xFFFF;
TRISB = 0; // C32 is stating error: 'TRISB' undeclar..
↧
C32 giving error for TRISB ?? (BHUSHAN)
↧
Failed to initialize ICD 4 - Brand new unit (Jeremy Brown)
I have been trying to use my new ICD 4, and no matter what I do, MPLAB X IDE just says Failed to initialize ICD 4. I can connect to the ICD 4 in MPLAB X IPE, and I can program the PIC32MZ2064DAH169 Starter Kit, but it just fails to initialize every time i..
↧
↧
movlb instruction doesn't work on my device PIC16F15376 (BranislavDuda)
Hi,I have my custom dev board assembled with PIC16F15376, eight debug LEDs on PORTD.Programmed with simple program:init
banksel TRISD
clrf TRISD ;all PORTD pins are output
clrf PORT ;all LEDs on PORTD off
banksel SP1BGRL
movl..
banksel TRISD
clrf TRISD ;all PORTD pins are output
clrf PORT ;all LEDs on PORTD off
banksel SP1BGRL
movl..
↧
LCD Hello World and C Library for LCD (delfindelfin)
Hello. I am making a library for the LCD Controller based on Hitachi HD44780 I would appreciate suggestions for improving my code. This is the code:..
↧
Interrupt routine in XC8 (CitizenOfDreams)
Never mind, found the answer...
↧
↧
is this a compiler bug? (scrungy)
XC16 1.36
! {
This is problematic. Why would the compiler multiply by 4 on a sizeof(void *) .
Needless to say, this is causing crazy program results.
IF you multiply by 2 instead it yields the correct result as shown below...
↧
XC8 v2.05 "include" folder not with installer (nwier)
I recently downloaded and intalled MPLAB X IDE and XC8 v2.05 on a new computer.My project would not compile because it was missing "xc.h". When I investigated, there was not "include" folder with the standard libraries. I could not find previous XC compil..
↧
PIC interrupt on change never enters the interrupt routine (GunkutA)
Hello I am using PIC18F26K83 and I have a button on RC7 pin. That is why I cannot use a normal interrupt. But according to datasheet interrupt on change can be used in this pin. I could not make it work so I tried to make a code with interrupt on change w..
↧
Not able to view my code in MPLAB X IDE..! (Mr.MD)
I am trying to open my project (.C file) in MPLAB X ide (v5.15), but i cannot see my code, instead it opens up a rather weird window. It shows some history tab (of which i have no idea). I have attached a Screenshot. Could someone help me figure this out?..
↧
↧
Tired of having to kill MPLABX when ICD 3 or 4 becomes unresponsive during debug. (danthony)
Sorry for the rant but I would love to have a stable MPLABx someday. I have other Java based programs that run beautifully. I am always (at least once a day) having to kill or close the app because debugger becomes unstable and unresponsive. When it works..
↧
How do I change the value in "watches" MPLABX ? (sergioigel)
Hi, How do I change the value in "watches" MPLABX ? using simulator... thanks,..
↧
PICKit4 Error "Residual Voltage Detected" (KTrenholm)
I'm using IPE v5.15 w/ a PICKit 4. In this case I'm loading a PIC24F16KM202. When I try to program the PIC when powering from the PICKit4 (3.25V), I get the following:"We have detected some residual VDD voltage at the connector interface. Connection Faile..
↧
_XTAL_FREQ for PIC18F26K22 (mouchuanlin)
Hi,I am trying to use those xc8 compiler provided delay functions. Seems the code need _XTAL_FREQ definition. How can find those value? From the MCC generated config code, it is define 1000000. Is it correct? ThxDick #define _XTAL_FREQ 1000000 __DELAY_MS,..
↧
↧
Can't simulated ADC (Simlock)
Hello,I try to simulate an ADC while waiting to have the card in hand but I can't configure the voltage on a pin and get a result...For information, I use:
- MPLAB 5.10
- XC8 2.05
- PIC18F65K40 ADC Init function :static void HARD_InitADC (void)
{<..
{<..
↧
PIC32 I/O pin configuration during run time. (anujavionics)
Hi,
What is the best way of configuring the selected IO pins in PIC 32 as input and output during runtime. During the operation I need to configure one pin as output and others as input. Then again other as output and remaining as input. Thanks...
↧
Suggestions for the next release of MPLAB® Code Configurator (florin.matei)
This thread is dedicated to gathering suggestions related to what features could be improved or added in the next release of MCC. Please try to provide some arguments for your suggestions as they will help when proposing the idea to the team. Providing ar..
↧
PIC24E program doesn't return from called function. (amem00)
Hi Everyone,I'm migrating a firmware from a PIC24FJ256GB210 to a PIC24EP512GU810.The program contain uses I2C, SPI and USB protocoles to communicate with surounded components.I use the USB in two different modes CDC mode for the main normal program functi..
↧
↧
PIC18F: Using A/D to detect external components (SpokaneNexus)
I'll have PCB's here in a week or two and I'm trying to get a head start on the firmware. We can selectively stuff various subsystems on the board and I'm trying to have the firmware detect if components are connected to a given pin, thus allowing a singl..
↧
DHCPv6 configurations in MHC (anuragjk)
Hey forum,
I was trying to get DHCPv6 working in my micro (PIC32MZ2048EFH064), I read the "TCPIP Stack Libraries Help" pdf and it says the following in the DHCPv6 section,"All of the required files listed in the following table are automatically added in..
↧
PICkit 2 with 12F508 and Invalid OSCCAL Value (MimiYoung)
Hi all,
I have a problem with using Pickit 2 programmer.
First I connect the Pickit 2 to usb port.
then I choose device : PIC12F508.
The OSCCAL value is OCFF.
Then I import the hex file.
I got this : OSCCAL Invalid Value 0000.
How to fix ..
↧