Hallo Leute,

ich brauche unbedingt Eure Hilfe: Ich möchte einen ATtiny15L per Software auf 1,6 MHz kalibrieren. Dazu muß man laut datasheet:

"To make use of this byte, it should be read from this location and written into the normal Flash Program memory. At start-up, the user software must read this Flash location and write the value
to the OSCCAL Register."

Ja nun, wie geht das??? Wie sieht der C-Code für den ICC-tiny-Compiler aus?
Bisher habe ich mit Ponyprog2000 das Calibration-Byte manuell ausgelesen und es mir auf einen Zettel geschrieben. Dann habe ich den Hex-Wert des Bytes in das OSCCAL-Register geschrieben (zB: OSCCAL = 0x5e
Nur das ist ein grausamer Umstand, da ich die Software für jeden einzelen ATtiny15l-Chip manuell ändern muß.

Wer von Euch weiß wie das geht, bitte, bitte, mir kurz antworten!!!

DANKE


Gruß,

Lalupa