555 Timer Help

  • plypencil
    6th Aug 2010 Member 0 Permalink
    And once I get it working I will send you a schematic
  • devast8a
    6th Aug 2010 Former Staff 0 Permalink
    plypencil
    What part of the RAM are you having troubles with specifically?
  • plypencil
    6th Aug 2010 Member 0 Permalink
    I just cant work out how to successfuly put something into it. Im using the processor with stack version.
  • devast8a
    6th Aug 2010 Former Staff 0 Permalink
    You first put a store command onto the stack let's say
    0101 - Store something from register A into RAM
    Then the next thing we put onto the stack is the location we want to put it into RAM
    0100 - Binary for 4

    So the processor should place whatever is in register A into ram slot 4.
  • plypencil
    6th Aug 2010 Member 0 Permalink
    Thanks I will give it another go in a little while, before when I did it no spark was in the ram so I assumed it didnt work. I read something about two cycles, do i need to leave a gap in the stack? Or by two cycles does it mean 0101 0100?
  • um3k
    6th Aug 2010 Member 0 Permalink
    First you have to put the value into a register.

    0001 - Write to register A
    0010 - Value to write
    0101 - Store register A into memory
    0100 - Memory address to be stored into

    So it takes a grand total of four lines to store a value into memory. Here's how it would look in the stack:
  • plypencil
    6th Aug 2010 Member 0 Permalink
    I realised what I did DOH!

    You gave me:
    0001
    0010
    0101
    0100

    I did
    0001
    0011
    1001 <-- used the wrong code
    0001
  • um3k
    6th Aug 2010 Member 0 Permalink
    That would 'splain it!
  • ItsMyStupidNick123
    22nd Nov 2016 Banned 0 Permalink
    This post is hidden because the user is banned
Locked by jacob1: necro