Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th August 2006, 03:38 PM   #1
Default MPLAB calc. program size

HI

I'm have a PIC 16F628 - I think it can accommodate a program no larger than 128bytes (from data sheet) right?

In mplab - where can I find out the size of the program I have written.

Thanks.
RMIM is offline  
Old 7th August 2006, 03:48 PM   #2
Default

i think the 128bytes you are referring is for the eeprom data of PIC16f628.
__________________
Learning is a life-long process...
GraveYard_Killer is offline  
Old 7th August 2006, 03:58 PM   #3
Default

Quote:
Originally Posted by GraveYard_Killer
i think the 128bytes you are referring is for the eeprom data of PIC16f628.
yes. I thought that is where the program you write is stored on the chip.

But anyway - how much space do I have for my program. And how do I determine how large my program is using MPLAB.
RMIM is offline  
Old 7th August 2006, 04:03 PM   #4
Default

Quote:
Originally Posted by RMIM
HI

I'm have a PIC 16F628 - I think it can accommodate a program no larger than 128bytes (from data sheet) right?
As GraveYard_Killer said, the 128 bytes is the EEPROM data storage, the program memory is 2048 words - this is a LOT of assembler, you can do a great deal in a couple of hundred words. It also has the advantage that's it's a single page, so you have no memory paging problems.

Quote:

In mplab - where can I find out the size of the program I have written.
Couldn't tell you?, I never use it, but the *.LST created by the assembler tells you.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 7th August 2006, 04:09 PM   #5
Default

Quote:
Originally Posted by Nigel Goodwin
Couldn't tell you?, I never use it, but the *.LST created by the assembler tells you.
Thanks.

Not sure how to work it though. Do you mean go to *.lst right click it and go to properties?

Just wanted to know how huge a program had to be to actually fill the mem.
RMIM is offline  
Old 7th August 2006, 04:29 PM   #6
Default

Quote:
Originally Posted by RMIM
Thanks.

Not sure how to work it though. Do you mean go to *.lst right click it and go to properties?
No, open it with Wordpad, or Notepad.

Quote:

Just wanted to know how huge a program had to be to actually fill the mem.
If you have to ask, then it's not a concern!

The 16F628 has twice the memory of the 16F84 it replaced, and it wasn't common to fill that.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 7th August 2006, 06:11 PM   #7
Default

Quote:
Originally Posted by Nigel Goodwin
No, open it with Wordpad, or Notepad.

.
Cheers.
--
All other memory blocks unused.
Program Memory Words Used: 81
Program Memory Words Free: 1967
--

For some reason my *.lst files have the microsoft power point viewer icon - when I double click on it locks the computer up. Works fine with notepad.
RMIM is offline  
Old 7th August 2006, 08:22 PM   #8
Default

Just open up the .lst file from within MPLAB using the <file> <open> menu items. If you save the current project with the .lst file open it'll be there the next time you open that project. It's sometimes handy to have the .asm, .lst, and even the .inc file available in the project you're workin' on.

Mike
Attached Thumbnails
MPLAB calc. program size-mplab-screen-shot.png  
Mike, K8LH is offline  
Reply

Tags
calc, mplab, program, size

Thread Tools
Display Modes




All times are GMT. The time now is 04:44 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker