ON 20021002@7:26:04 PM at page: http://www.piclist.com/techref/quotes.htm JMN-EFP-786 James Newton added 'Says General Patton said "If everybody is thinking alike then somebody isn't thinking"' ON 20021012@3:17:18 AM at page: http://www.piclist.com/techref/index.htm radhikabhat13-indiatimes- added 'Questions: *I want the circuit diagram and other details about PIC programmer? *I want information about ultrasonic sensors that can be interface to PIC (16F84)? ' ON 20021012@9:39:31 PM at page: http://www.piclist.com/techref/index.htm JMN-EFP-786 James Newton added 'change ' ON 20021012@9:43:11 PM at page: http://www.piclist.com/techref/index.htm JMN-EFP-786 James Newton edited the page ON 20021012@9:44:38 PM at page: http://www.piclist.com/techref/index.htm JMN-EFP-786 James Newton edited the page ON 20021014@12:43:14 AM at page: http://www.piclist.com/techref/index.htm NGS-EC-KA7 Nicolaas Gerhardus Scheepers added 'Questions: Hi there, I am having trouble with arithmetic in assembler. I want to do the following calculation. Y = ((X-Xmin)((Ymax-Ymin)/(Xmax-Xmin))) + Ymin This is a formula to scale a point between Xmax and Xmin to a point between Ymax and Ymin. The Y points is 8-bit but the X points can be up to 16-bit values. You can already see my problem because I cannot get any 16-bit divided by 16-bit algorith or for that matter 24-bit divided by 16-bit that replies with the fractional part. So I came up with the nexty formula to try and use a 16-bit divided by 8-bit number to give back fractions: Y = ((X-Xmin)(1/(Xmax-Xmin)/(Ymax-Ymin))) + Ymin But it just gets more complex as I go along. My second problem is that say I work out the division and now I must multiply the answer (which is fractional , hoe the hell do you do it with the fractional part. Do you first multiply both numbers so they are integer and then divide it again later with the same number or what. Am I evenon the right track here or am I going bananas? Please help me I am now three months into the game and have learned a lot in a short space of time but the learning just seems to grow and not level out, not that I am complaining just a remark:-)' ON 20021022@12:14:46 AM at page: http://www.piclist.com/techref/quotes.htm JMN-EFP-786 James Newton added 'archive reference http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\2002\10\21\060506a PICList post "Something on the lighter side"' ON 20021031@2:19:33 AM at page: http://www.piclist.org/techref/index.htm krramu-indiatimes- added 'Questions: '

Interested: