Continue to Site

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.

  • 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.

lookup table made simple

Status
Not open for further replies.

jkmadsci

New Member
Here is a liberty basic program I wrote to create a lookup table.
i will never enter tables again


for x = 1 to 255
print "retlw .";
y = int(-.4*x + 64) ' this is the formula line that creates the database
if y <0 then y = 0 ' this table was used for calculating battery voltages
print y; 'based on reading a constant voltage accross a led
print " ; x input is "; 'try it youll like it
print x
next x
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top