|HOME| |DIY FAQ| |GEO FAQ| |Debugging Page| |Links| |Schematics| |Wiki| |Layouts Gallery| |STORE|
|AMPAGE| |GEOFEX| |AMZ|

Welcome, Guest. Please login or register.
Did you miss your activation email?
December 17, 2014, 01:53:26 PM
977686 Posts in 104053 Topics by 33383 Members
Latest Member: Prostetnic Jeltz
Home Help Login Register
DIYstompboxes.com  |  DIY Stompboxes  |  Digital & DSP  |  PIC Program Memory question 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: PIC Program Memory question  (Read 2655 times)
burningman
Posts: 203


PIC Program Memory question
« on: March 27, 2009, 06:38:57 PM »

The 16F887A datasheet describes the chip as having 8k x 14words
Can someone explain this a bit clearer? I'm writing a program, pretty sure I'm not up to that limit Smiley but unsure what it really means.
Thanks.
Logged
iaresee
Posts: 652


Ian C.


Re: PIC Program Memory question
« Reply #1 on: March 27, 2009, 07:57:04 PM »

A word is the smallest size of instruction you can address in memory. This is different than the smallest size of memory you can address in your program. In your PIC words are 14 bits if I'm reading that correctly. So you've got 8k x 14 bits = 14 KBytes of program space available to you in 14 bit chunks. Basically you can store a program in on-chip memory that's got 8000 instructions in it.
Logged
ElectricDruid
Posts: 139


Tom W.


WWW
Re: PIC Program Memory question
« Reply #2 on: May 14, 2009, 09:08:56 AM »

iaresee is spot on.

You've got 8096 instructions-worth of program space. Each instruction is 14-bits, so in total that's 14KBytes. Mosty, though, you'll be thinking about it in terms of instructions, so it's just over 8000 instructions.
T.
Logged
MoltenVoltage
Posts: 741


Cascade Range, Oregon


WWW
Re: PIC Program Memory question
« Reply #3 on: May 16, 2009, 10:44:09 PM »

If you need to see how much memory your program uses, just view the Program Memory in MPLAB after you Build.  All the unused memory will be at the bottom as RETLW.
Logged

MoltenVoltage.com for PedalSync audio control chips - make programmable and MIDI-controlled analog pedals!
Pages: [1] Go Up Print 
« previous next »
Jump to: