Reading code ---


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by StormRider View Post
    Ok I plead all of you to help me define this code !! It is needed very urgent, so I plead u to do it as fast as u can, it is long for u to do whole code, do segments of code ... Please !!!
    Stormrider, I think we are all struggling to understand you. What is the urgency, if you do not have the means to change it? Later, you state that you just have a desire to understand it. Can I ask why your desire to understand the code is so urgent?

    I do not think anyone is going to take the time to disect the code for you. God help them if they do try to explain all this code to someone that doesn't even have a manual.

    The book I mentioned earlier has a pretty good description of all the steps on page 158. Is there something specific that you do not understand?

  2. #2
    Join Date
    Mar 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Dear scalerobotics,
    When I said its urgent, I ment on my desire to learn this as fast and best as I can. I have read the description of each code, and I know it...But there is still missing parts(a lot of them) for example I do not understand code variables ... May you help me defining it ?

    Code:
    ;[VARIABLES]
    mde var bit
    
    ;MODE:0=RECORD / 1 = PLAYBACK
    dta var porta.0 ;KEYBOARD DATA  PIN
    clk var porta.0 ;KEYBOARD CLOCK PIN
    kbs var portb.0 ; KEYBOARD 4066 SWITCH
    scl var porta.3 ; EEPROM CLOCK PIN
    sda var porta.2 ; EEPROM DATA PIN
    adr var word ;EEPROM ADRESS
    chr var word ; OUTPUT FRAME
    key var byte ; SCAN CODE
    bkc var byte ; BREAK CODE
    btv var byte ; BIT VALUE
    lp1 var byte ; LOOP VARIABLE
    sft var byte ; SHIFT KEY FLAG
    lsf var bit ; LAST SHIFT KEY STATE
    pwc var byte ; PASSWORD BYTE COUNTER 
    pwd var byte[6] ; MASTER PASSWORD
    clear
    line by line if you can, please

  3. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    If you have no idea what the variables mean then you are a long way from understanding PIC programming.

    There are several golden rules when it comes to programming. The first is to understand the basics. It's no good talking to someone about how to perform a service on a motor car if they have no idea what the terminology such as oil filters, spark plugs etc means, or how an engine works. If you don't have a manual then google each variable and try to understand what's being presented.

    The second rule is to read the datasheet for your intended PIC. Now these are very technical documents, and no one will hold it against you if you don't understand it all. But at least you will know which options do what, and if you have a grasp of the terminology then you'll start to put the pieces together.

    Lastly, I found the guys (and Gals) on this forum very helpful. However it's only fitting that you come to them with issues when you've put the effort in and tried to write or convert code.

    In your last post to scalerobotics you come over as somewhat arrogant in your approach. Use google, search through example code, and better still write your own code to blink an LED and you'll learn how the pieces come together.

    Finally, you mentioned you haven't purchased your copy of PBP -given that a lot of the members here have paid a lot of money for their genuine copy of the application and have a manual with it, stating you have what can only be a pirated copy wont endear others to help you. - But I admire your honesty !

  4. #4
    Join Date
    Mar 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Arrow You just don't see the point ...

    ok, whatever ... I tried to find some understanding here, and got nothing .. I have some other business to do rather than argueing with you guys, so I will post my work on some other forum Point was to describe to newcomers basics of this projects. It may be easy for us to understand, but I wanted to attract attention of 100-200 unregistered users who come here only for one particular reason and go away without saying "Hello"... Doing some project "commenting" line by line (I could do that, but I wanted people to see that whole community is participating) will attract their attention, and stay with reason "Hey, this is somehow interesting !" and maybe fall in love with electronics .. But hell ye, I suppose years of doing research and engineering pushed us away of principles to help each other ...

    I have done this project, with excellent comments, and PM for giving it to you(ment on new begginers) ... And one more thing, this thread will be closed tommorow at 12:00 o' clock and me leaving at 12:01 ...

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by StormRider View Post
    ok, whatever ... I tried to find some understanding here, and got nothing .. I have some other business to do rather than argueing with you guys, so I will post my work on some other forum Point was to describe to newcomers basics of this projects. It may be easy for us to understand, but I wanted to attract attention of 100-200 unregistered users who come here only for one particular reason and go away without saying "Hello"... Doing some project "commenting" line by line (I could do that, but I wanted people to see that whole community is participating) will attract their attention, and stay with reason "Hey, this is somehow interesting !" and maybe fall in love with electronics .. But hell ye, I suppose years of doing research and engineering pushed us away of principles to help each other ...

    I have done this project, with excellent comments, and PM for giving it to you(ment on new begginers) ... And one more thing, this thread will be closed tommorow at 12:00 o' clock and me leaving at 12:01 ...
    Wow, a lot of tension here . . . StormRider your statement is a bit confusing, what power do you hold to close this thread ? Except the power to ask the admins to do so?
    Anyway that question was rhetorical on my part, it does not answer Your question.
    I hope this helps.

    Variables are tidy little places in memory to store things, you want to use. In the statement: dta var porta.0 ;KEYBOARD DATA PIN
    It assigns PortA.0 the alias dta so you can use the name dta instead of the name PortA.0
    The statement following the semicolon is a comment for the programmer so He /She understands what the variable is for.
    In this statement: chr var word ; OUTPUT FRAME
    It sets an area in memory aside to make 16 bits available accessable by the name " chr ". so if you say chr = 16535 it will set all those bits.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    ... Point was to describe to newcomers basics of this projects. It may be easy for us to understand, but I wanted to attract attention of 100-200 unregistered users who come here only for one particular reason and go away without saying "Hello"... Doing some project "commenting" line by line (I could do that, but I wanted people to see that whole community is participating) will attract their attention, and stay with reason "Hey, this is somehow interesting !" and maybe fall in love with electronics ..
    Interesting approach!

    Ok I plead all of you to help me define this code !! It is needed very urgent, so I plead u to do it as fast as u can, it is long for u to do whole code, do segments of code ... Please !!
    But the above is the way you have opened this thread! Sound different isn't it?

    But it was First of April ..April Fools day, so I have been fooled.

    Al.
    Last edited by aratti; - 3rd April 2010 at 08:26.
    All progress began with an idea

  7. #7
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Doing some project "commenting" line by line (I could do that, but I wanted people to see that whole community is participating)
    This community also has a life. If you are capable of doing something, then it is a little unfair of you to try to coerce others (with messages of dire urgency) to do it for you.

    I have done this project, with excellent comments...
    I am STUNNED at the SPEED you managed to learn... when only MINUTES earlier you hadn't a clue what a variable was. Lex Luther had better watch out, because world domination for someone with that kind of skill set can only be a matter of days away.

    "Hey, this is somehow interesting !" and maybe fall in love with electronics ..
    I'm sorry, but a 'keylogger' (or whatever this is) dumped on the forum in a bit of a mess, with no schematics, with a request BEGGING for absolute URGENCY and total CLUELESSNESS (stop whatever you are doing and see to MY request as a priority), does not set my heart racing to fall in love with electronics.

    I'm sure you will be inundated with PM's for your final dissitation on this piece of code - well done for having completed it!
    Last edited by Melanie; - 3rd April 2010 at 08:57.

  8. #8
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by StormRider View Post
    And one more thing, this thread will be closed tommorow at 12:00 o' clock and me leaving at 12:01 ...
    Your last post was at 12:50.... what are you doing here, thought you would be long gone

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