References to CCU6 Unit in Mcal

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18504
Level 3
Level 3
Hello, I found that there are some references to the CCU6 Unit in Mcal, although there is no Mcal component for CCU6.
For example in the Adc module there is the following option:

AdcCcu6Synchronization
Enable / Disable the CCU6x T13 to generate 20MHz Synchronization signal to all VADCs. This parameter should be set to true only for the devices (e.g: TC29xBB, TC26xBB and TC27xDB) with metal fix for Cross coupling effect. true: Enables the CCU6x T13 to generate 20MHz Synchronization signal to all VADCs. false: Disables the CCU6x T13 to generate 20MHz Synchronization signal to all VADCs

How will the Mcal do the synchronization between the CCU6x and the VADC in this case, as CCU6x is not implemented in the Mcal?
0 Likes
1 Reply
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Hi bbogdanmircea. There isn't a one-to-one mapping between the MCAL components and peripherals. The MCAL ADC driver primarily uses the VADC peripheral, but also relies on the Interrupt Router, DMA, CCU6, GTM, and probably more I'm not thinking of offhand.

To include the workaround for the ADC_TC.068 erratum , the ADC driver was extended to include support for synchronization with a CCU6 peripheral. You can browse the Adc_lCcu6Init source code if you want to peek under the hood to see how it's done.

Elsewhere, the MCAL does include support for CCU6: see the ICU Driver's Icu_17_GtmCcu6* functions, which can use either GTM inputs or CCU6 inputs.
0 Likes