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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…