Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Using Codevision to program an ATmega32...
The features I'm not using dont need to have 0x00 written to them do they?
For example, I'm not using any Timer Interrupts so do I have to put TIMSK=0x00; or can I just delete that line and it will automatically set to 0x00?
~Mike
The unused special function registers will probably power up to a default state, probably 0x00, but there is no guarantee. It's a good idea to leave the initialization code in even if it just rewrites the default value.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.