Calculate checksum?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2013
    Posts
    2

    Default Calculate checksum?

    First, let me be clear: I am taking a course that includes PICBASIC pro. I am not looking for answers, but I am looking for some assistance.
    In our class we've done plenty with PIC Basic Pro, but we have not touched upon the melabs programmer software other than how to write to flash.

    Today, we are tasked with using melabs programmer to find out several items, and quite frankly, I am stumped. I have read through the help, done google searched, and lokoed through the program. I do not know how to answer what is being asked of me.

    I am looking for some guidance:

    I am given this .HEX program:
    :080000000528000000000000CB
    :08000800EC28EC2807398207FF
    :100010002034102815281C2827283A285D28233446
    :1000200041080139820745345434410803398207B5
    :10003000493441344E344D34410807398207533432
    :1000400055345234573444344B3447344F344108D8

    I have loaded it into melabs, and I am being asked:
    What is the address where the first byte of data is placed in memory?
    Okay, so I look at the "Memory" section, I do not see any address information. I go through each area of the program, and I'm not sure what I am looking for!
    There is a follow up to this, that says:
    In the last line (6), what is the address where the first byte of data in this line placed in memory?

    Like I mentioned, I am not looking for answers, but I am looking to understand melabs programmer so I can retrieve this information. Please let me know where to even look.

    Thanks a bunch!

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default Re: Calculate checksum?

    Look up information for HEX file format. That would be a good place to start. Then again, there are types of HEX files, Intel Hex, Motorola Hex. You need to choose the correct type to decipher the information correctly.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,598


    Did you find this post helpful? Yes | No

    Default Re: Calculate checksum?

    Graduated back in 83 so theory is pretty far in the past.

    I would start by compiling a 1 command program and seeing what the listing gives and then go from there.

    Robert

  4. #4
    Join Date
    Feb 2013
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Calculate checksum?

    Thanks! the .HEX file was Intel encoded and I was able to find all the answers using appropriate reference.

Similar Threads

  1. Checksum
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th October 2009, 04:09
  2. Calculate Byte Value Checksum in PBP Pro
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th July 2009, 22:50
  3. How to calculate CRC16 checksum for iButton
    By ashwini kotwal in forum General
    Replies: 13
    Last Post: - 17th March 2008, 19:48
  4. Creating Checksum in PBP
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 16th March 2005, 04:49
  5. Checksum problem!
    By atomski in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd November 2004, 07:21

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