11
22= XtightlyCoupledIO
33Jan Oleksiewicz <jnk0le@hotmail.com>
4- :appversion: 3.2.45
4+ :appversion: 3.2.46
55:toc:
66:toclevels: 4
77:sectnums:
@@ -19,6 +19,7 @@ This document is released under a Creative Commons Attribution 4.0 International
1919[cols="1,5",options=header]
2020|====================================================================================
2121| Version | Change
22+ | v3.2.46 | fixed typos
2223| v3.2.45 | typo, anti windup satration not considered
2324| v3.2.44 | add code size comparisons to stm32f0 samples
2425| v3.2.43 | reorganized 3p3z appendix
@@ -2935,7 +2936,7 @@ void init_clocks2()
29352936 }
29362937
29372938 RCC->CR &= ~RCC_CR_PLLON;
2938- while((RCC->CR & RCC_CR_PLLRDY))
2939+ while((RCC->CR & RCC_CR_PLLRDY));
29392940
29402941 RCC->CFGR = RCC_CFGR_PLLMUL12 | (RCC->CFGR & ~RCC_CFGR_PLLMUL_Msk);
29412942
@@ -3738,7 +3739,7 @@ magic numbers and overall design according to <<an5305>>, that provides followin
37383739- Vref (aka target voltage, not to be confused with ADC reference voltage) set by DAC on the
37393740differential ADC, or subtracted by ADC from result (`ADC_OFRy`).
37403741- ADC handles sign extension to 16 bits (right adjusted)
3741- - timer saturates the output to maximum duty (assuming >16bit values are not produced, or handled
3742+ - timer saturates the output to maximum duty (assuming >16bit values are not produced, or are handled
37423743by timer)
37433744- anti windup accumulator saturation (as used by denominators) not considered
37443745- early conversion trigger not available
@@ -4028,7 +4029,7 @@ by "preserving shadow registers" (+Zfinx)::
40284029ADC1_IRQHandler():
40294030 tio.fcvt.s.w a0, ADC1_DR // adc sign extends
40304031 fmadd.s a1, a0, x28, x20
4031- fcvt.wu.s a2, a1 // saaturate negative, UB in C/C++
4032+ fcvt.wu.s a2, a1 // saturate negative, UB in C/C++
40324033 tio.cm.mv HRTIM1_TIMA_CMP1xR, a2 // can do tio.max after fcvt.w
40334034 tio.bseti ADC1_ISR, zero, ADC_ISR_JEOC_Pos // can also tio.addi
40344035 fmadd.s x20, a0, x29, x21
0 commit comments