You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running with simavr and avr-gdb (-ggdb -Og) and a breakpoint on line 8 (the PCKE line), never breaks. The emulator gets stuck on line 7 waiting for "hardware" to set the PLOCK bit to confirm that the PLL is locked
avr-gcc -mmcu=attiny85 -Wall -DF_CPU=8000000 -Og -ggdb -o main main.c
P.S. I would be happy to work on this issue, given a pointer on where to start to emulate the PLL
The text was updated successfully, but these errors were encountered:
What would be an acceptable fix? If internal source is used a simple time delay might be enough. But one might require that the bit is never set if the external input has too much jitter. And what will you do with the output? AFAIK clocking a timer from PLL is not implemented,
I'd be happy with a timer; the idea is to make the firmware beleive it's working properly (and not lock up!) so toggling that bit after X cycles makes perfect sense to me.
The following MWE reproduces the issue:
Running with simavr and avr-gdb (-ggdb -Og) and a breakpoint on line 8 (the PCKE line), never breaks. The emulator gets stuck on line 7 waiting for "hardware" to set the PLOCK bit to confirm that the PLL is locked
avr-gcc -mmcu=attiny85 -Wall -DF_CPU=8000000 -Og -ggdb -o main main.c
P.S. I would be happy to work on this issue, given a pointer on where to start to emulate the PLL
The text was updated successfully, but these errors were encountered: