[Avrora] Setting MCUCSR default value
Simon Han
simonhan at ee.ucla.edu
Thu Jun 8 12:16:50 PDT 2006
Hello,
On ATmega128, MCUCSR is zero when the program is started. Would it
be possible to change this to 0x01 (for power on reboot).
Here is the code for it. :-)
================
ActiveRegister MCUCSR_reg = getIOReg("MCUCSR");
MCUCSR_reg.write((byte)0x01);
================
Could someone add this to the end of ATMega128.java:ATMega128(int id,
ClockDomain cd, Program p)?
Thank you,
Simon
More information about the Avrora
mailing list