2014-05-27 - ATmega64(A) compatibility bit

recently got surprised by ATmega64A once again. this time LCD display did not worked well. i used well tested, open source LCD-library for HD44870-based displays. it did not worked. i've used logic state analyzer (which is awesome, btw!) and noticed that several control pins appear to be dead, even though µC was up and running (other pins did output proper signals).

the answer has been found in sections 14.3.6 and 14.3.7 of ATmega64A's datasheet: ports F and G behave very differently (one is an input-only while the other is alternative function only), when used in “ATmega103 compatibility mode”. yes – you guessed – compatibility mode was turned on by default. i wonder how many more subtleties are waiting out there…

blog/2014/05/27/atmega64_a_compatibility_bit.txt · Last modified: 2021/06/15 20:08 by 127.0.0.1
Back to top
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0