1
TI Z80 / Re: Accurate Subsecond Timing
« on: March 18, 2024, 12:44:39 pm »
IN is a program written entirely in hex provided by the youtube video linked up top. It can be typed directly into the calculator and compiled by the calculator itself the code is as follows:
You type that into your calculator and save it. Then you run: AsmComp(prgm0IN, prgmIN)
And there you go, you have IN which returns a 3 by default when both he tip and the ring are high.
These are the states returned to Ans by IN:
Value Tip Ring
0 Low Low
1 High Low
2 Low High
3 High High
They go low when they are connected to ground. My little circuit connects the ring to the ground when a car rolls over either of the photoresistors thus triggering the start or end of something when Ans is not equal to 3 (equal to 1).
Thank you again, I can't say that enough.
Code: [Select]
PROGRAM:0IN
:AsmPrgm
:DB00
:26006F
:EF9247
:EF5641
:EFBF4A
:C9
You type that into your calculator and save it. Then you run: AsmComp(prgm0IN, prgmIN)
And there you go, you have IN which returns a 3 by default when both he tip and the ring are high.
These are the states returned to Ans by IN:
Value Tip Ring
0 Low Low
1 High Low
2 Low High
3 High High
They go low when they are connected to ground. My little circuit connects the ring to the ground when a car rolls over either of the photoresistors thus triggering the start or end of something when Ans is not equal to 3 (equal to 1).
Thank you again, I can't say that enough.