13.07.2015 Views

AVR501: Replacing ATtiny15 with ATtiny25

AVR501: Replacing ATtiny15 with ATtiny25

AVR501: Replacing ATtiny15 with ATtiny25

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 General Porting ConsiderationsBetween the <strong>ATtiny25</strong> and <strong>ATtiny15</strong>, some registers and register bits have changedname but note that they preserve the same functionality. They are all listed later inthis document.In relation to code porting, it is an advantage if register names and bit definitions hasbeen used as substitution of these names and definitions can be performed ratherpainlessly. If absolute register addresses and bit values have been used in the codethat is to be ported, the effort to port it is slightly higher – but never the less possibleto overcome.Examples using register and bit definitions are shown below.PORTB |= (1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!