Hello,
Regarding to setup the RTC module as internal trigger for the ADC bean in the Processor Expert your steps should be the following:
- enable the "Internal trigger" property in the ADC bean
- use bean selector to add Init_RTC or hi-level bean (e. g. Freecntr, TimerInt) with selected "RTCmod" in "Periodic interrupt source" property and configure timing
- in your code use "EnableIntChanTrigger" method to enable internal trigger
We will try to improve the trigger configuration in the ADC bean for the next PE release.
Note:
The RTC module is enabled as a hardware trigger for the ADC module when ADTRG bit is set in the in ADCSC2 register. Please for more detailed information refers to the chapter 21.1.2.3Hardware Trigger in the reference manual of JM128.
best regards
Vojtech Filip
Processor Expert Support Team
UNIS