Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: S7G2 GPT Hardware Count Start/Count Stop and Clear Operation

$
0
0
Hello, This functionality is not yet implemented in the configurator so indeed you'll need to use register access to enable desired functionality. First, make sure that the P100 is set to Peripheral mode, with function GTETRGA. You should look in section 23.2 of the S7G2 User's Manual (subsections 5-7), regarding specific settings. i.e. to enable timer on rising edge of GTETRGA and stop and clear on its falling edge, you need to execute the following: R_GPTB3- GTSSR_b.SSGTRGAR = 1; R_GPTB3- GTPSR_b.PSGTRGAF = 1; R_GPTB3- GTCSR_b.CSGTRGAF = 1; Regards

Viewing all articles
Browse latest Browse all 59170

Trending Articles