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.

Basic Stamp 2pe pin scanning program.

Status
Not open for further replies.

egg0900

New Member
I have a program written for a bs2pe stamp and it reads 7 pins to see with one pin or two pair and three pins go high at the same time. when it is spost to read three pins at the same time its hard to sence all three pins go high for a very short time it dosent have enough time to scan all three pins . I would like to know of a way to solve this problem. :evil:
 
You could read the complete port into a variable, and check the bits in the variable - but you could still miss any new changes while you are doing that. Your best bet is probably to use assembler routines for it, interpreted BASIC read from slow EEPROM is not likely to be fast enough.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top