in the second config you can use : Config Tca0 = NORMAL , Prescale = 8
this will update only the CTRLA register.
or you must specify the original config : Config Tca0 = Pwm , Prescale = 8 , Resolution = Normal , Compare0 = Enabled , Compare1 = Enabled , Ovf_int = Disabled , Run = Off
but with a different prescaler value of course.
in xtiny a new concept was introduced for some of the config statements. REGMODE=PRESERVE would preserve the state of the registers and only the modified register bits are altered. moreover all settings are in the dat file. this because they used to be/still are partial in the compiler, and it is better to handle that in the DAT file so that you as a user can tweak the settings too.
But not all config statements are processed yet. so until these are processed and REGMODE is supported you need to specify the whole config with the changed parameters.
the timers are high on the list but not for 2087 where there are already many changes.
↧