No sync if clock is too fast #1163
Replies: 1 comment
-
I noticed that if you keep pressing the button on keyboard if the clock is too high, a zero is output by the keyboard register. Here is a short video where I show how the output is given at low clock versus high clock: keyboard.MP4I want to try to get the value of the key to be output when the key is pressed permanently and not null. Is this possible? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't manage to output the screen in sync with keystrokes at high clock speed. The Screen-chip is the hack display for digital (The chip is 8K RAM, but it is linked to an output window for the digital software) and the keyboard is the keyboard chip from digital software itself .
Example: As soon as a key is pressed, each word (16 pixels per word) should be displayed on the screen one after the other. But when the key is released, every word should be deleted retrospectively. I have written a program for this, which is intended for this purpose in the nand2tetris course. That all works. The problem is: as soon as the clock is too fast, the signal is sometimes output and sometimes not. Sometimes a 0 is detected and sometimes a 1. The clock seems to be so fast that synchronization does not occur.
I've tried adding a delay, which didn't work. I also tried a simple buffer at the data output from the screen and keyboard, without success. Both probably because I wired it wrong.
Maybe someone has a suggestion or a link to a simple example for me to learn how to sync.
Beta Was this translation helpful? Give feedback.
All reactions