Very simple question (for someone)


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    33

    Default Very simple question (for someone)

    IF I have a program I've written in picbasic pro, it comiled ok and end up with a hex code.

    How do I know how much code space in the pic it will take?

    I want to see if I can use a physically smaller pic, rather than a 40 pin one, but if I right click on the hex file and do properties it says 8k

    BUT

    I'm not sure that's how you measure the code space.

    Could someone elighten me please?

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lew247 View Post
    IF I have a program I've written in picbasic pro, it comiled ok and end up with a hex code.

    How do I know how much code space in the pic it will take?

    I want to see if I can use a physically smaller pic, rather than a 40 pin one, but if I right click on the hex file and do properties it says 8k

    BUT

    I'm not sure that's how you measure the code space.

    Could someone elighten me please?

    http://www.picbasic.co.uk/forum/atta...1&d=1260879754
    Attached Images Attached Images  
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default

    [QUOTE=lew247;82042]I'm not sure that's how you measure the code space.
    QUOTE]

    Most editor/programming environemtns provide this at the time you compile. For example, I use MicroCodeStudio with the PicBasicPro compiler and the MASM assembler and when you compile it tells you how much code memory is required at the bottom left of the MicroCodeStudio window.

    I have also used the mikroElectronik PICFlash programmer to take a .hex file that was created by the MicroCodeStudio/PicBasicPro/MASM and it shows at the bottom left of the window the amount of code and data memory available in the target device.

    HTH.

Similar Threads

  1. Stupid simple question.....
    By chien_fu in forum mel PIC BASIC
    Replies: 18
    Last Post: - 23rd February 2010, 13:21
  2. Simple Timer question
    By jimseng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th September 2009, 23:12
  3. SIMPLE question
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2008, 18:27
  4. really simple, dumb question
    By picster in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2007, 22:02
  5. really simple adcin question
    By kitcat in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 21st April 2006, 09:06

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts