Skip to content
New issue

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

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

Already on GitHub? # to your account

Watch quartz on Tosc1 #526

Open
IngmarEckhardt opened this issue Feb 28, 2024 · 1 comment
Open

Watch quartz on Tosc1 #526

IngmarEckhardt opened this issue Feb 28, 2024 · 1 comment

Comments

@IngmarEckhardt
Copy link

Hello,

is there a way to simulate a watch quartz on Tosc1 with the atmega328p? Setting counter2 to asynchronous mode and connect a clock with 32khz to pin b6 seems not to work. Or did made a mistake?

@gatk555
Copy link
Collaborator

gatk555 commented Mar 1, 2024

It may be as simple as inserting this:

           .ext_clock_pin = AVR_IO_REGBIT(PORTB, 6), /* External clock pin */

at line 316 in simavr/simavr/cores/sim_megax8.h. The external clock pin definition is missing from the timer description. Compiled but not tested by me.

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

No branches or pull requests

2 participants