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

Implement MCU reset correctly #107

Open
urish opened this issue Sep 10, 2021 · 0 comments
Open

Implement MCU reset correctly #107

urish opened this issue Sep 10, 2021 · 0 comments
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features

Comments

@urish
Copy link
Contributor

urish commented Sep 10, 2021

Datasheet says:

During reset, all I/O registers are set to their initial values, and the program starts execution from the reset vector
so there are a couple of changes to get the reset done properly:

This means we need to:

  1. Zero out just the I/O registers, not all the SRAM
  2. Make sure all the peripherals are reset (the peripherals can set the reset value of their I/O registers for those who aren't zero)
@urish urish added enhancement New feature or request good first issue Good for newcomers open for vote Vote at https://wokwi.com/features and removed good first issue Good for newcomers labels Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features
Projects
None yet
Development

No branches or pull requests

1 participant