are you sure this problem exist in hardware? an ISIS simulation shown the proper value. I also checked the code and it is ok. I changed the simulator so it will not take RAMPZ into account for non-xmega chips. that was indeed a bug.
↧