Hi Christopher,
The requirement for the counter bus is mentioned in the counting mode description, chapters 35.6.1.1.1-.12
For the OPWMB mode the external counter driven in MCB Up mode must be selected from one of the counter buses.
So either global counter bus is selected (A or F) or local counter bus (B, C, D, E) depending of used channel.
Regarding your questions…
1. I couldn't use (E0UC_0_X) as a counter for the G channels, since I am using it as a seperate PWM signal.
Yes, if you want to operate ch0 in OPWMB mode, then it cannot serve counter bus B for channels 1-7.
2. I tried selecting counter bus[A] for all the eMIOS channels, but the G channels didn't work.
Channels working in OPWMB mode can run with counter bus A (channel 23) without issue. Channel 23 must be set for MCB mode and determines the PWM period for OPWMB channels.
3. When I tried to setup the G channels to use their internal counters, they seemed to be a lot slower than (E0UC_23_X) counter.
If you set channels to OPWMB mode, internal counter cannot be selected, period is not configurable, so internal counter, if enabled, overflows. If you want to use internal counter then OPWFMB can be used on channel types X and G.
4. I finally setup (E0UC_22_X) (F Bus) and used that counter for both (E0UC_2_G) and (E0UC_4_G).
Yes, this is a possibility, but counter bus A is functional too.
BR, Petr