cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about this circuit and a solution

Lyu.1
Associate III

Hi,Master:

​Platform: STM32F301K8U

As shown below in Figure 1, PA7 (MCU_14) is a video signal (As shown below in Figure 2), which contains the line sync signal (A area in Figure 2, fixed frequency, there may be noise)​and the field sync signal(B area in Figure 2). I want to distinguish the line sync signal and the field sync signal . My question is as follows:

Question 1: What is the purpose of PA4 in Figure 1 through capacitor to ground and PA2, PA3 short circuit?

Question 2: I want to use the comparator to compare PA7 and DAC1_CH1 and then use the input capture to measure the period to distinguish between the two signals (As shown below Figure 3). Is it feasible? I worry that if there is a lot of noise on the PA7, it may be difficult to distinguish. Is there a better solution? Ask the master for advice.

Thank you very much!​

0693W000000Wvs9QAC.jpg

Figure 1

0693W000000WvlxQAC.jpg

​ Figure 2

0693W000000WvuPQAS.jpg

Figure 3

1 ACCEPTED SOLUTION

Accepted Solutions

I'm not going to check but IMO it's pin compatible with 'F303 of the same package, which does have OPAMP1. And then plans may have changed and those pins remained unused.

Or anything else.

As Clive said, you should ask the guy who designed the board.

JW

View solution in original post

7 REPLIES 7

Guess you'd need to ask the guy who designed the board you're reverse engineering.

PA2/PA3 could be configured as IN/OUTPUT, or connected to other circuit nodes. Could be used to detect board/circuit specifics, or simply work out limitations of connecting signals not supported internally.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Shorting PA2-PA3 shorts inverting input to output of OPAMP1, making a voltage follower out of it. Capacitor on PA4 filters output of DAC. This all of course assuming appropriate setting of GPIO and given OPAMP and DAC.

JW

Hi,waclawek

Thank you for your professional answer.

I looked at this MCU (STM32F301K8U) data sheet, there is no OPAMP1 amplifier, only OPAMP2 amplifier.

I'm not going to check but IMO it's pin compatible with 'F303 of the same package, which does have OPAMP1. And then plans may have changed and those pins remained unused.

Or anything else.

As Clive said, you should ask the guy who designed the board.

JW

Your diagram shows PA2 as a potential input to COMP2 or an output from it.

TIM2_CH3, TSC_G1_IO3, USART2_TX, COMP2_OUT, TIM15_CH1, EVENTOUT, ADC1_IN3, COMP2_INM 

You should look at what PA3 is routable too.

TIM2_CH4, TSC_G1_IO4, USART2_RX, TIM15_CH2, EVENTOUT, ADC1_IN4 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Okay, thank you very much for your guidance!

Lyu.1
Associate III

Okay, thank you very much for your guidance!