Telescope drive motors that don't...


Closed Thread
Results 1 to 40 of 69

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    ASM looks way harder than it is actually.

    Let's see few common expressions

    MOVLW .10
    MOVWF PORTA
    It's nothing else than PORTA = 10
    <hr>
    BTFSC PORTA.1
    GOTO $-1

    Could be translated as

    WHILE PORTA.1=1 : WEND

    OR

    TestPORTABit1:
    IF PORTA.1=0 then GOTO DoSomething
    Goto TestPORTABit1
    DoSomething:
    <hr>
    MOVF PORTA
    MOVWF MyVar

    would be MyVar=PORTA
    <hr>
    INCF MyVar,F

    MyVar=MyVar + 1
    <hr>
    nothing really hard to learn... but yeah... could be a bit hard to follow/understand a little bit when you begin. 18Fs and DsPIC assembler is way easier to code, but you have more Mnemonics to learn.
    Last edited by mister_e; - 29th March 2008 at 01:08.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. MPASM Path & File Name Length Limtation
    By Brian J Walsh in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 14th June 2008, 15:48
  2. Differential Drive Programming
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 30th December 2006, 14:03
  3. motors browning out PIC
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 17th November 2006, 02:50
  4. CD ROM Motors.
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2006, 17:59
  5. problems with Servo Motors...
    By saturnX in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2006, 01:43

Members who have read this thread : 0

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