Can someone write me a program in ASM ?? (digital thermometer, LM35)

Discussion in 'Embedded Systems and Microcontrollers' started by Baron1, Dec 28, 2009.

  1. Baron1

    Thread Starter New Member

    Nov 18, 2009
    2
    0
    hi, i need some urgent help. can someone write the program for this circuit in Assembly for me if i am not asking too much. i need to submit a project report by tomorrow and was quite busy bit other stuff. All help appreciated. thanks.
     
  2. Boo

    Member

    Oct 27, 2009
    40
    0
  3. Boo

    Member

    Oct 27, 2009
    40
    0
    I don't know why I can't upload things but here I'll put the code up on my website... give me a few mins....
     
  4. Boo

    Member

    Oct 27, 2009
    40
    0
  5. Baron1

    Thread Starter New Member

    Nov 18, 2009
    2
    0
    thanks. il give this a try. Any other suggestions??
     
  6. Boo

    Member

    Oct 27, 2009
    40
    0
    By the way, using a comparator is much more difficult.
     
  7. steinar96

    Active Member

    Apr 18, 2009
    239
    4
    Unless someone has got the code already. I doubt someone will code the entire thing for you since programming in ASM can be quite tedious. I think this also falls under "homework" and current policies dictate that we shouldn't do homework for people but help them.
    So if you attempt to program it yourself and post things when you are in trouble i'm sure you'll get assistance right away :)
     
  8. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Too busy to do ones homework assignment...
     
  9. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,884
    1,000
    Hilarious!
    :D:D:D:p
     
  10. Papabravo

    Expert

    Feb 24, 2006
    10,138
    1,789
    If you want a working program, what you ask is not even remotely possible given the lack of hardware to test it on. If I had the hardware in my hand and at least a week then maybe. Prior planning would have prevented this disaster.
     
  11. Tahmid

    Active Member

    Jul 2, 2008
    344
    25
    Hi,
    If I tweak the hardware a little, I can write you one such LM35 thermometer program, but in mikroBasic, writing assembly code from scratch is tedious work!
     
  12. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    I doubt his instructor wants it done in BASIC :) besides it's probably too late as a full day has already passed.
     
  13. Papabravo

    Expert

    Feb 24, 2006
    10,138
    1,789
    My hat is off to you Bill, for your intuitive grasp of the obvious!:)
    Rock on & well done!
     
  14. dor

    Active Member

    Feb 20, 2009
    62
    0
    hm.. why not disassembling a compiled C code?
     
  15. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Good luck commenting and explaining disassembled C code. It won't look anything like normal assembly code.
     
  16. Papabravo

    Expert

    Feb 24, 2006
    10,138
    1,789
    A perfect learning experience for a noob!:)
     
  17. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Indeed. Don Lancaster learned about programming from spending a summer disassembling Applesoft Basic. Time and interest.
     
  18. Papabravo

    Expert

    Feb 24, 2006
    10,138
    1,789
  19. dor

    Active Member

    Feb 20, 2009
    62
    0
    Sorry for the obscurity.
    I meant disassembling a binary file, which source code is written in C.

    You wrote "disassembled C code", and I wrote "disassembling a compiled C code".
    The "compiled" is omitted in your reference, which makes the whole difference, I assume...
     
    Last edited: Dec 31, 2009
  20. Papabravo

    Expert

    Feb 24, 2006
    10,138
    1,789
    I think it may be a distinction without much of a difference. The only real advantage my be some regularity of stucture, since goto statments, although allowed, are mercifully rare.
     
Loading...