Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program time interrupts #2

Open
swarner1033 opened this issue Sep 2, 2021 · 4 comments
Open

Program time interrupts #2

swarner1033 opened this issue Sep 2, 2021 · 4 comments

Comments

@swarner1033
Copy link
Owner

swarner1033 commented Sep 2, 2021

Internal clock functionality.
Turn on light at a specific time which is set programmatically

@swarner1033
Copy link
Owner Author

swarner1033 commented Sep 3, 2021

Possible improvement: get the current time from internet on reset

swarner1033 added a commit that referenced this issue Sep 3, 2021
Used macros from 2121 final project
A count of hours, minutes, seconds, and ticks are stored in data memory
15625 ticks in one second
Everything in the one file

RELATED TO: #2
@swarner1033
Copy link
Owner Author

Using this example for timing instead: https://www.instructables.com/Command-Line-Assembly-Language-Programming-for-Ard-3/

Change back to 40b08a6 version where timer_ticks are stored in dseg if you run out of registers. Slower as values are loaded from data memory more often but more consistent code and less registers used.

@swarner1033
Copy link
Owner Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant