
Forums Search for: MPLAB
dsPIC33F assembler query
inHi My MPLAB assembler won't let me use some dsPIC33 instructions - for example CPBLT reports... Error: Invalid mnemonic: 'cpblt' I'm not...
Hi My MPLAB assembler won't let me use some dsPIC33 instructions - for example CPBLT reports... Error: Invalid mnemonic: 'cpblt' I'm not sure what I'm doing wrong, but it's bound to be simple. Any ideas? Thanks -- Syd
Strange behavior of RA4 and RA5 on PIC18F242
inHello, I am new to this NG, but my question seemed more appropriate here than on SED. I'm using a PIC18F242 for an SCR controller, and...
Hello, I am new to this NG, but my question seemed more appropriate here than on SED. I'm using a PIC18F242 for an SCR controller, and programming it in assembly with MPLAB 7.30. I am using RA4 as an Output On indicator, driving an LED and an optoisolator through a series resistor to +5VDC. I use RA5 to drive a status LED, low for green and high for red. Everything worked fine whe...
Microchip PICKit3
inAre these things just utterly useless? It would appear* that the USB handling in MPLAB-X is poorly tested. Might be that "grab reset on the...
Are these things just utterly useless? It would appear* that the USB handling in MPLAB-X is poorly tested. Might be that "grab reset on the DUT" is the problem. *can't really tell which end of the cable is at fault - although the "IDT" grabs it nine out of ten falls. There is even an app note not to use the PICKit3 "for production". An ICD3 works just fine. -- Les Cargill
PIC versus AVR
inI don't want to start a religious war, but could a few knowledgeable people give me their impressions of the relative advantages of PIC vs AVR? ...
I don't want to start a religious war, but could a few knowledgeable people give me their impressions of the relative advantages of PIC vs AVR? Assume that I will be using both, to some extent, for some time, and want to know what their relative advantages are. Throw in MSP430 too if you'd like. I'm mostly using PICs right now but am stuck on the fact that MPLAB requires you to have w...
Avoiding a short circuit at boot up
I'm very new to working with microcontrollers, I only started using them properly within the last week. I'm using the PIC16F684...
I'm very new to working with microcontrollers, I only started using them properly within the last week. I'm using the PIC16F684 in conjunction with MPLAB and PIC C. One of my pins on the PIC chip is connected to the output from an encoder. The output from the encoder will always be either 5 V or 0 V, it will never be high impedence. When power is applied to my ci...
PIC18 Interrupts
inHello all. I'm a newbie in the realm of micro programming. I'm using MPLAB C18 with the PIC18F452 and PICDEMO 2 Plus board. I can't, for the...
Hello all. I'm a newbie in the realm of micro programming. I'm using MPLAB C18 with the PIC18F452 and PICDEMO 2 Plus board. I can't, for the life of me, figure out how to do an interrupt routine! I've used the buzzer interrupt sample that came with the ICD2 software, but have been unable to modify it to suit my needs. What I want to do is wait for a button to be pressed to start my rout...
I need Help....Generating a square wave with the dsPIC33FJ256GP710
inHello everyone... I just got a explorer 16 board from Microchip. It brings two Plug-In-Modules (PIM), the PIC24FJ128GA010 and the...
Hello everyone... I just got a explorer 16 board from Microchip. It brings two Plug-In-Modules (PIM), the PIC24FJ128GA010 and the dsPIC33FJ256GP710. I also have the debugger/programmer ICD3. I have installed MPLAB C30 in my computer as well. Now that I have everything I need (According to microchip)to start programming, I need some guidance with regard to starting this project. Ba...
How ordinary embedded differs from RTOS code?
infrnds, my query may sound blunt but still ur replies value more to me. pls. help me in clearing the difference between working on...
frnds, my query may sound blunt but still ur replies value more to me. pls. help me in clearing the difference between working on ordinary embedded systems( i worked with PIC 16F877x series MPLAB IDE) and RTOS. Thanks, Madhan.B
"C" source code for I2C slave PIC16F81x
inHi All, I have to write an PIC16F819 based application that act as I2C slave device. As for compiler I will use HI-TECH PICC together with...
Hi All, I have to write an PIC16F819 based application that act as I2C slave device. As for compiler I will use HI-TECH PICC together with MPLAB. Could anyone, please, send me sample "C" code for that. I have no assembler knowledge :-( Any link/source/hint would be appreciated. Thank you, Tesvit.
PIC 18F4455 simple project help
inhi, i've started playing with 18F4455 device. im using MPLAB with c18 compiler student version. as a start what am trying to do is to light an...
hi, i've started playing with 18F4455 device. im using MPLAB with c18 compiler student version. as a start what am trying to do is to light an LED connected to pin 6 (RA4). here is the code. #include #pragma config WDT = OFF void main() { ADCON1 = 0x0F; CMCON = 0x07; TRISA = 0xCF; LATAbits.LATA4 = 1; while(1); } how ever the LED in the target circuit does not
32-Bit Microcontroller for New Project
inI'm about to embark on a new project that will require a 32-bit microcontroller. I've spent the last month evaluating the merits of the various...
I'm about to embark on a new project that will require a 32-bit microcontroller. I've spent the last month evaluating the merits of the various choices architecturely, and have a pretty good idea of what's out there. It's come down to development environments, and I'd like to get some first-hand reports from people on this group. The three choices on my short-list are: Pic32 and MPLAB ...
Interrupt not firing on PIC18F
inI've started tinkering with a PIC18F4680 (with CAN bus) using microchips MPLAB C18 C compiler. I've been beating my head against a problem for...
I've started tinkering with a PIC18F4680 (with CAN bus) using microchips MPLAB C18 C compiler. I've been beating my head against a problem for many hours now :evil: . I can't get interrupts to work. I have tried, TMR0, TMR1 and INT0. I have verified that TMRnIP, TMRnIE, TMRnIF and GIEH & IPEN are all HIGH yet my ISR does not get run. If I clear TMRnIF in the main loop TMRnIF is set aga...
MPLAB IDE v7.10 [Logic Analyzer]
inWow!! What a difference from the old Microchip simulator. The speed improvement is night and day, and the new logic analyzer is very...
Wow!! What a difference from the old Microchip simulator. The speed improvement is night and day, and the new logic analyzer is very handy. I'm having a few problems with the Logic Analyzer settings though. The triggering doesn't really make sense to me and it won't let me enter anything into the Trigger PC test box. Also it only has one selection for the Time Base but the documentation say...
getting started on C programming on PIC16F628A, PIC16F690, OR PIC18F2620
inI'm trying to get started with C programming on either one of the PIC microcontrollers in MPLAB IDE using C18 compiler (or any other C compiler...
I'm trying to get started with C programming on either one of the PIC microcontrollers in MPLAB IDE using C18 compiler (or any other C compiler that Microchip makes), however, I'm having some trouble drafting a source code that has, for example, LEDs flashing or display a "Hello World" message through printf() and in such fashion that I can see it on a host computer. Does anyone know any good...
The big picture - Cheap chips, cheap/free compilers?
inGreetings, I've done a good bit of microcontroller programming in the past but have been mostly away from it for a few years. When last...
Greetings, I've done a good bit of microcontroller programming in the past but have been mostly away from it for a few years. When last active, I was mostly using PICs with MPLAB and assembly language, and some 8051-architecture chips with ASM51. I have a PICstart-Plus and, at work, a universal programmer. Mostly, I do small, simple things that involve precise timing. That is, my m...
IC2 problem with PIC16F877#
inHi, Our laboratory recently purchased a MPLAB ICD2 programmer. Everytime I try to program my PIC etheir by using the "Debugger" or the...
Hi, Our laboratory recently purchased a MPLAB ICD2 programmer. Everytime I try to program my PIC etheir by using the "Debugger" or the "Programmer" mode I receive this error: ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x283A, Val Read = 0x0) I looked the forum and people seem to think that it is related to the vdd voltage or maybe that the ICD 2...
Menus on LCD for embedded systems
inHi I want to have menus (with sub menus and so on) on a LCD (graphics LCD and I can have about 4 lines on it) of an embedded system. I am...
Hi I want to have menus (with sub menus and so on) on a LCD (graphics LCD and I can have about 4 lines on it) of an embedded system. I am programming in C (MPLAB C18 does not support C++). The system has three keys, UP, DOWN and ENTER. I have searched a lot on the internet for data structures and methods for such applications. I have found that lot of people say pointer to functions can...
Help with GPSIM watchwindows
Hello guys, I am not sure if this is the right place to post, but I am about ready to give up on gpsim and find a windoze machine and use...
Hello guys, I am not sure if this is the right place to post, but I am about ready to give up on gpsim and find a windoze machine and use MPLAB again. (I really don't want to and am trying to use gpsim). I am running a ubuntu machine and I have gpsim installed. I compiled my asm file using gpasm and then loaded gpsim with gpsim -s myfile.cod The program comes up fine, however I am not...
PICC variable relocation
inHi I'm using the Hi-tech PICC-18 compiler together with a MPLAB ICD 2. The ICD 2 reserves a few bytes of the data memory for itself. The...
Hi I'm using the Hi-tech PICC-18 compiler together with a MPLAB ICD 2. The ICD 2 reserves a few bytes of the data memory for itself. The thing is that the linker doesn't understand this and tries to store my own variables at the same adress. My questions is: How do I "prohibit" PICC-18 from using a certain area of my data memory? Regards Erik N=E4slund
Really confused by my debugger.
inI recently purchased a clone Microchip PIC debugger from some Chinese importer http://www.virtualvillage.co.uk/Items/006401-001? (bad...
I recently purchased a clone Microchip PIC debugger from some Chinese importer http://www.virtualvillage.co.uk/Items/006401-001? (bad idea probably, I know). I set it all up, it programs perfectly and does a POST fine. The problem is with debugging. I hit the 'program' button on MPLAB, the PIC is programmed fine but I get an 'ICD0083' error (cannot enter the debug mode on the chip). I'v...
