-
Notifications
You must be signed in to change notification settings - Fork 111
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
Main.c does cli() but not sei() #8
Comments
Hi - can you please explain why the main.c code just uses a cli to clear interrupts but is not neccesary to use a sei() once setting up the timing registers ? |
My code never uses interrupts. |
So why are you clearning the interrupts with cli() ? |
Found the answer in the datasheet of Atmega 328p - page 175 For interrupt driven USART operation, the Global Interrupt Flag should be cleared (and interrupts |
No description provided.
The text was updated successfully, but these errors were encountered: