> > Analog: the STM32G474Cxt is heavy on analog features with much more > ADC, DAC, COMP, and OPAMP peripherals and pins than the STM32F3. These > features are obviously new IP as the ADC adds Hardware Oversampling, > IO Voltage Booster, Gain Compensation, Bulb Sampling, Sampling Time > Control Trigger, Dual Interleaved Sampling, new Analog Watchdog > features. The DAC adds Sample and Hold, and also Internal DACs that > can be connected to other internal peripherals, e.g., to a COMP or > OPAMP. And there's much more. [1] >
Yes, there are some new features in analogs but if you look at registers organization and configuration bits, these looks the same as in F3. Timers: Both have HRTIM, but the STM32F334 has HRTIM IP version 1.0 > while STM32G474Cxt has HRTIM IP version 2.0. This adds various > features and capabilities, described in [2]. Also, the G4 more of the > regular resolution timers. > As above, we have new features, but the basic structure is the same. The question is when we can talk about completely new IP block and when we can talk only about an extended old version. In my opinion, when the registers are identical, we have backward compatibility but some new functions added - we are dealing with the same IP block. With this approach, we can easily extend existing code with some #ifdefs.