Yenka CAD software Arithmetic Calulations in Flowcharts

Status
Not open for further replies.

TobyB434

New Member
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
 
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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…