Forums Search for: MPLAB
mplab linker problem - newbie problem
Hi all, I'm new to mplab and when I try to build a project that I downloaded from PICOS's page I get the following error: Error - section...
Hi all, I'm new to mplab and when I try to build a project that I downloaded from PICOS's page I get the following error: Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file. Errors : 1 Here's my linker file: [CODE] //**********************************************************************/ //* ...
electronic Chronometer with mplab
inHi For school I have to program with mplab a electronic Chronometer but the chronometer doesn't work can some please look at the...
Hi For school I have to program with mplab a electronic Chronometer but the chronometer doesn't work can some please look at the code Thanks Mich ; This program simulates a chronometer title "Chronometer" list p=16F870, r=hex, n=0 __config 0x0C02 #include ;************************************************************ ; variables (equ statements) ;***********
PICKIT 2 development help on MPLAB or Piklab or any other IDE on a PIC18F2620
inI have been trying to use the PICKIT 2 programmer option within MPLAB IDE, but it seems like the option to do so is disable as shown...
I have been trying to use the PICKIT 2 programmer option within MPLAB IDE, but it seems like the option to do so is disable as shown in http://imagebin.ca/view/86lX0hhQ.html. I have also tried to update the firmware of my PICKIT 2 separately on the software provided on the Microchip website, but it keeps on freezing regularly every time I have attempted to check my PIC18F2620 to see if it is ...
EXT RC on 18F1320
inCan anyone advise please? I written a simple prog for an 18F1320 using an RC network (62K+100pF) giving an fosc of approx 100KHz. I've...
Can anyone advise please? I written a simple prog for an 18F1320 using an RC network (62K+100pF) giving an fosc of approx 100KHz. I've flashed a device and the program runs perfectly with the correct fosc/4 (25KHz) waveform on RA6/OSC2. Now, if I replace the 18F1320 with a MPLAB ICE2000, PCM18XJO and DVA18XP180 and execute from within MPLAB IDE (V7.31), RA6/OSC2 has a frequency of appr...
PIC mplab c18 C compiler
inHi A colleague of mine is using MPLAB C compiler and is struggling with the saving of registers in ISRs. Apparently the compiler manual...
Hi A colleague of mine is using MPLAB C compiler and is struggling with the saving of registers in ISRs. Apparently the compiler manual says you have to manually scan the assembler code generated by the compiler to work out what registers to save/restore in interrupt routines. His software is crashing and he appears to be struggling to solve the problem. Does anyone have any exper...
PORTA register won't bit set (MPLAB)
inWhen I execute my simple program in MPLAB the PORTA filer register bit 0 is not being set, but I can easily set bit 0 of the FSR register that...
When I execute my simple program in MPLAB the PORTA filer register bit 0 is not being set, but I can easily set bit 0 of the FSR register that sits right next to PORTA in the micro. In fact, nothing I do to PORTA works. Has anyone seen this before? Start BSF STATUS, RP0 MOVLW B'11111110' BCF STATUS, RP0 BSF PORTA, 0 ;doesn't work ...
HI-TECH c compiler
ini'm using the microchip mplab ide with hi-tech c compiler integrated into it ,mplab version 8.46 what ever the c code i try to build it keeps...
i'm using the microchip mplab ide with hi-tech c compiler integrated into it ,mplab version 8.46 what ever the c code i try to build it keeps giving me Error [939] ; . no file arguments i dont know what to do to make it build my code ,i wish if there is one can enlighten me about it ,i know its a newibe question and i hope if any one can make it clear to me . thanks in advance :)
CC51 compile error with MPLAB
inHey everybody, I am trying to resolve a compile-time error using CC5x through MPLab. I have a code project (SOURCE CODE AT BOTTOM) where I'm...
Hey everybody, I am trying to resolve a compile-time error using CC5x through MPLab. I have a code project (SOURCE CODE AT BOTTOM) where I'm trying to drive some LEDs out of a MAX7219 driver IC. I have taken the code outlined below from http://www.fernando-heitor.de/pic/projekte/max7219/programm.htm (bless them, there is so little information relating to the combination of the MAX7219 and ...
dsPIC33FJ32GP302 Configuration Bits
inHi, I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2 programmer and using MPLAB C30 (This chip supports the Pickit 2 as...
Hi, I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2 programmer and using MPLAB C30 (This chip supports the Pickit 2 as illustrated by the green light on the "select device" window). I managed to put the chip on a board and connected it to the pickit 2. I built a project in MPLAB and the programmer sends power to the target as expected and it recognizes it. I imported th...
MPLAB error message
inHi to all, I am running MPLAB software to a PIC16F877A microcontroller via a CCS ICD-S20 pod. After downloading the code I get a pop-up with...
Hi to all, I am running MPLAB software to a PIC16F877A microcontroller via a CCS ICD-S20 pod. After downloading the code I get a pop-up with the following error message: "Could not start the target. The target was not halted after reset. Check the target oscillator and MCLR." I am using a 20MHz crystal oscillator from EPSON (working fine). The MCLR circuit is an MCP120-4.5V pulled up ...
PIC18F2620 sample code in a sample project in MPLAB
inI'm currently using MPLAB's C18 compiler to build a hex file from a simple "hello world" program to flash onto the program memory of...
I'm currently using MPLAB's C18 compiler to build a hex file from a simple "hello world" program to flash onto the program memory of a PIC18F2620 in order to see if I can perhaps create a program to toggle a pin to get started. However, I have been getting the following error in the pastebin link from the Build window: http://www.pastebin.ca/684463. I'm using a PICKIT 2 programmer from Microc...
Problem for program 16f628A with Mplab icd 2 Verification problem
inHi all> I have some troubles with programing the 16f628A with mplab icd2 i configured all bits configured, i don't have any pull up...
Hi all> I have some troubles with programing the 16f628A with mplab icd2 i configured all bits configured, i don't have any pull up resistor in RB6 and RB7, the voltage suply is ok for Vdd and Vpp. the dispositive pass all the self test and the voltage have a rigth value. also i configured de bits configured in the program like this: __CONFIG _HS_OSC & _WDT_OFF & _PWRTE_ON & _BODEN_OFF
pic18 questions
ina) CONFIG/CBLOCK directive: I don't know what these directives do b) retfie dt; this is a Pic18 instruction. But, mplab uses only "retfie"....
a) CONFIG/CBLOCK directive: I don't know what these directives do b) retfie dt; this is a Pic18 instruction. But, mplab uses only "retfie". Is it equivalent to "retfie 0"? If I comment these directive, then my files are compiled. But, the hex files are not same. Also, mplab generated hex files are not in previous (pic16fx) format. The header is in previous format. But, the body is bro...
MPLAB linker. Link step failed.. can not fit section
in[quote]Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 /i"C:\MCC18\h" "enumeration_na_ni.c" -fo="enumeration_na_ni.o" -D__DEBUG -mL MPLAB C18...
[quote]Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 /i"C:\MCC18\h" "enumeration_na_ni.c" -fo="enumeration_na_ni.o" -D__DEBUG -mL MPLAB C18 v3.22 (demo) Copyright 2000-2008 Microchip Technology Inc. Days remaining until demo becomes feature limited: 10 WARNING: The procedural abstraction optimization will not be supported when the demo becomes feature limited. Executing: "C:\MCC18\bin\...
MPLAB C 30 Student Edition C-Compiler optimization level 1
inHere is a quote from Microchip: "The MPLAB C30 C Compiler Student Edition is free! It is full-featured for the first 60 days. After 60 days...
Here is a quote from Microchip: "The MPLAB C30 C Compiler Student Edition is free! It is full-featured for the first 60 days. After 60 days only optimization level 1 can be enabled in the compiler. The compiler will continue to function after 60 days, but code size may increase." Does anyone really know what 'optimation level 1' really means? Or is this a trick get you purchase the t...
Need advice for a micro
inHello all, What do you think about the MPLAB ICD2 and the "USB Pic" in general ?! MSP430xxxx lowers, would you switch to PIC? Is there some USB...
Hello all, What do you think about the MPLAB ICD2 and the "USB Pic" in general ?! MSP430xxxx lowers, would you switch to PIC? Is there some USB based developpement board for MSP430 I ignore ?!?
C Compiler
inDoes anybody have a copy of Microchip's MPLAB C18 C Compiler or equivalent. Thanks for any help
Does anybody have a copy of Microchip's MPLAB C18 C Compiler or equivalent. Thanks for any help
PIC templates
inDummies question here... I'm starting out on a new PIC device 18LF14K22, using MPLAB / C18. Where can I find templates with config bits / int...
Dummies question here... I'm starting out on a new PIC device 18LF14K22, using MPLAB / C18. Where can I find templates with config bits / int vector definitions etc all ready to go? I poked around on Microchips site with no success. Thanks
Magenta Icebreaker kit?
inHi newbie here, I am doing GCSE technology and have been given and icebreaker kit to constuct which I have done but am having...
Hi newbie here, I am doing GCSE technology and have been given and icebreaker kit to constuct which I have done but am having problems programming the chip, i have installed both mplab and the icebreaker software but to be honest i just don't know what to do next, there are very little instructions with it. can anyone point me in the right direction? thanks
writing ISR for UART
inhy, i am not very expert in C. Can any one give me a sample example on ISR for UART.i am using MPLAB with c18. how to write IRQ in ISR. also how...
hy, i am not very expert in C. Can any one give me a sample example on ISR for UART.i am using MPLAB with c18. how to write IRQ in ISR. also how can i add "case" in side ISR? can any one give me any tips or any link. thanks in advance