1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Yenka CAD software Arithmetic Calulations in Flowcharts

Discussion in 'Microcontrollers' started by TobyB434, Nov 18, 2016.

  1. TobyB434

    TobyB434 New Member

    Joined:
    Nov 18, 2016
    Messages:
    1
    Likes:
    0
    Hi, I was wondering whether somebody could help I am a student and am using the Yenka CAD software to program a PICAXE chip, I was wondering whether anybody knew how to perform arithmetic in a flowchart on a variable x such as division e.g. x / 58. Is this possible with this chip /software, or is there a way around it through programming BASIC and then downloading this code straight to the IC? Many Thanks
     
  2. Diver300

    Diver300 Well-Known Member

    Joined:
    Oct 19, 2007
    Messages:
    3,090
    Likes:
    102
    Location:
    England
    I don't know anything about the Yenka CAD software.

    The PICAXE chips can be programmed to divide, within the limits of integer arithmetic. If you are dividing by a fixed number, for instance 58, it may be better to multiply by 1130 (which is 65536/58) and then take the high word of the result as the answer.
     

Share This Page