Breakpoints in MPLAB

Started by Basic Poke in Piclist10 years ago 1 reply

I am having a rough time with the breakpoints in MPLAB 8.10, using MPLAB ICD 2 as the debugger. The debugger will often stop at the line...

I am having a rough time with the breakpoints in MPLAB 8.10, using MPLAB ICD 2 as the debugger. The debugger will often stop at the line after the breakpoint, but sometimes right on it, and sometimes on some other line near the breakpoint. Sometimes when I put a breakpoint on a function call, it will stop at the function header (for example "void InitializeMCU (void)"). And the Step-O...


I2C data line (SDA) goes low and hangs

Started by Basic Poke in Piclist10 years ago 2 replies

I have a PIC18F66J50 with a Microchip EEPROM on the I2C port. Sometimes when I program the MCU using MPLAB, the I2C data line (SDA) goes low...

I have a PIC18F66J50 with a Microchip EEPROM on the I2C port. Sometimes when I program the MCU using MPLAB, the I2C data line (SDA) goes low and stays there. Any read or write I then attempt results in a bus collision error and doesn't work. Here is the sequence of events: * cycle power to the MCU/EEPROM board * compile with MPLAB * program the target device with MPLAB. There is cha...


MPLAB 5.70.40 is integrated with HI-TECH PICC compiler v8.02 PL1

Started by Bruce Sam in Piclist14 years ago 13 replies

   I have integrated MPLAB 5.70.40  with HI-TECH PICC compiler v8.02 PL1 but failed.When I only compiled just a simple .c file,it...

   I have integrated MPLAB 5.70.40  with HI-TECH PICC compiler v8.02 PL1 but failed.When I only compiled just a simple .c file,it appear this message:MPLAB is unable to find output file "DELAY.HEX".      This may be due to a compile, assemble, or link process


MPLAB v7.01

Started by kg4pid in Piclist14 years ago 1 reply

I just downloaded and installed verson 7.01 of MPLAB. So far the only problems I've had is that it doesen't erase the chip...

I just downloaded and installed verson 7.01 of MPLAB. So far the only problems I've had is that it doesen't erase the chip before programming. First time I used it to program a chip with the picstart plus it gave me alot of errors. I thought I had a bad chip. But after era


"TRACE" in MPLAB C18 Compiler

Started by Basic Poke in Piclist10 years ago 1 reply

Is there any command or macro in the MPLAB C18 Compiler that will send text to the output window, like MFC's TRACE or Visual Basic's...

Is there any command or macro in the MPLAB C18 Compiler that will send text to the output window, like MFC's TRACE or Visual Basic's Debug.Print? Printf and puts appear to do nothing. Thanks BasicPoke ------------------------------------


MPLAB IDE

Started by Chas Douvier in Piclist15 years ago 9 replies

I have read nothing but good things about MPLAB IDE so I want to try it. I haven't written a single line of code yet and I fire the...

I have read nothing but good things about MPLAB IDE so I want to try it. I haven't written a single line of code yet and I fire the program up. Maybe I am missing something, I seem to be able to import code and add it from exisiting text files, but there is no where to actually w


MPLAB help

Started by s007x in Piclist15 years ago 1 reply

Hi all, How are you guys, I use MPLab to program PIC16C782 microcontroller and I need to multiply two numbers (to make a filter)...

Hi all, How are you guys, I use MPLab to program PIC16C782 microcontroller and I need to multiply two numbers (to make a filter) but the code "mullw" doesn't work (the program deal with it as label). Do you know what is the problem? and if there are any other multi


Help me

Started by rehanpk000001 in Piclist15 years ago

Hi, Brother! I am dioing final year project using PIC16F876 I have downloaded MPLAB v6.3 from microchip.com .I have also ...

Hi, Brother! I am dioing final year project using PIC16F876 I have downloaded MPLAB v6.3 from microchip.com .I have also downloaded HITECH PICC compiler(demo version).I am tring since long time to simmulate my C code on MPLAB(with HT PICC),But unable to do that.


MPLAB "Go To Locator" not working

Started by Basic Poke in Piclist10 years ago 3 replies

Any ideas why my MPLAB "Go To Locator" is not working? I put my cursor on a function name, right-click, and choose Go To Locator. It should...

Any ideas why my MPLAB "Go To Locator" is not working? I put my cursor on a function name, right-click, and choose Go To Locator. It should go to the function definition. It used to work but stopped for some reason. Thanks BasicPoke ------------------------------------


have a look at my pwm motor controller on 12f675

Started by shaunundergrad in Piclist15 years ago

hi guys, just completed my pwm motor control program, please have look and see if there is any obvious mistakes, it was written...

hi guys, just completed my pwm motor control program, please have look and see if there is any obvious mistakes, it was written on mplab uses special instruction mnemonics so probably only looks correct in mplab. it works ok but the frequency a bit low. gives reasonable out


Unexpected program reset in MPLAB while debugging

Started by peacezim2001 in Piclist9 years ago

Hello all, I had a strange issue while debugging in MPLAB. I am using PIC 16F73 with HiTECH C compiler. The program counter unexpectedly resets...

Hello all, I had a strange issue while debugging in MPLAB. I am using PIC 16F73 with HiTECH C compiler. The program counter unexpectedly resets to zero, at some point.The WDT is not enabled atall. Could you please tell me what can be the possible reason? Please the part of code where it happened, switch(DigitCount) { case 0: TimePtr-> Hour[1] = KeyPressCount - 1; DigitC


MPLAB File Stimulus

Started by Eirik Karlsen in Piclist15 years ago 2 replies

Hi, does File stimulus work in MPLAB 630? 'cause I've done everything as per. help file but nothing happens. I've been...

Hi, does File stimulus work in MPLAB 630? 'cause I've done everything as per. help file but nothing happens. I've been trying to trigger on PC=0x3f2c (or 3f2c), and put new values into wreg.....but wreg stays the same. Any ideas? --


MPLAB question

Started by Charles Linquist in Piclist14 years ago 3 replies

I'm using MPLAB 6.5 and a Microchip ICD2. I can successfully program parts using the ICD2 - no problem there. I want to use the...

I'm using MPLAB 6.5 and a Microchip ICD2. I can successfully program parts using the ICD2 - no problem there. I want to use the ICD2 to read back the contents of memory and display them. I have tried two approaches: #1. Leave the ICD2 in "programmer" mod


16F877 problem

Started by Gokce Mehmet AY in Piclist14 years ago 3 replies

I use a simple startup routine, where a command is send via RS232 to start the firmware. I simulated my code in ISIS 5.2 and...

I use a simple startup routine, where a command is send via RS232 to start the firmware. I simulated my code in ISIS 5.2 and MPLAB SIM packed with MPLAB IDE 6.2 and it seems that there is no problem. However when I write the code to PIC it just don't work. Program does


Need Help Understanding How to Restart MPLAB Debug

Started by jsternmd in Piclist9 years ago 2 replies

I have read and read but I cannot figure out why every time I debug through to some code of interest, that when I want to re-start from the...

I have read and read but I cannot figure out why every time I debug through to some code of interest, that when I want to re-start from the beginning (as with a fresh power-on) MPLAB doesn't seem to work right. I have tried reset, clear all memory, recompiling but then debug steps through code and regsiters don't change. I have had this since v 8.30 and with the the current 8.36. I must be mi...


MPLAB unable to undo?

Started by Louis Goh in Piclist15 years ago 3 replies

Hi, i'm now using MPLAB version 6.40. However, i noticed that since version 6.30, i cannot undo changes made in the code after...

Hi, i'm now using MPLAB version 6.40. However, i noticed that since version 6.30, i cannot undo changes made in the code after i've complied it. For example in version 6.20, i was able to make some changes to the code, compile it, test it and if the code dod not work i c


Good Editor

Started by sgodin2k in Piclist11 years ago

I am looking for a good editor to compliment MPLAB. Since I was introduced to MPLAB a few months ago, I find its editing abilities limited at...

I am looking for a good editor to compliment MPLAB. Since I was introduced to MPLAB a few months ago, I find its editing abilities limited at best. Thus far, I have limped along with Crimson Editor, but it lacks the code complete and arguments tool tips that I'm familiar with in TI code composer and other tools. It would be very if the editor would respond to "." and "-> " for UDT. Any sug


Can an ICD 1 be modified to program 16F88 & 16F7X7's, or should I go for an AVR?

Started by scott5342000 in Piclist14 years ago 3 replies

I can't upgrade to MPLab 6.x and use my ICD 1. I don't want to cough up $180 for a new ICD 2. Someone know how to modify...

I can't upgrade to MPLab 6.x and use my ICD 1. I don't want to cough up $180 for a new ICD 2. Someone know how to modify MPLab 5.x and/or reprogram an ICD1? I see Atmel is giving away AVR JTAGICE in-circuit debuggers at their seminars. AVR's look like they have m


Frustrating problem with dsPic30F3012 ADC...

Started by demolitron in Piclist9 years ago

Hello, I just got my board built for my new dsPic project and I've run into a very puzzling problem with the ADC. If you all would be kind...

Hello, I just got my board built for my new dsPic project and I've run into a very puzzling problem with the ADC. If you all would be kind enough to take a look for me. I hope this isn't something simple and stupid I've missed... First, my environment: dsPic30F3012 @ 3.3V MPLAB 8.30 MPLAB C30 student edition version 3.12 compiler PICKIT 2 Debugger (DE Version = 1.40.3) USART level s...


Mplab stimulus file question

Started by wdavis364 in Piclist12 years ago

Using MpLab ver 7.20. Using the Stimulus (SCL) File to determine if the code is doing what I expect. Whenever I step through the code section...

Using MpLab ver 7.20. Using the Stimulus (SCL) File to determine if the code is doing what I expect. Whenever I step through the code section shown below. the code will add in first if statement and sub in the second if statement regardless whatever the setting in Action.menu. The Stimulus isn't responding to what I am trying to do. What do I need to do here? thanks #define INCREAS...