Skip to main content
PGood.1
Associate III
December 22, 2020
Question

On an stm32L4 When you enable input capture on timer 16 it appears to join pins PB6 and PA6

  • December 22, 2020
  • 9 replies
  • 1974 views

Ive setup PB6 as a GPIO_Output and Timer 16 and an input capture which uses PA6. It appears that if you set PA6 as an input capture it joins PA6 and PB6 internaly on the trace Chanel 0 is attached to PA6 Channel 2 is attached to PB3 (green LED) and Channel 3 is attached to PB6

This topic has been closed for replies.

9 replies

Tesla DeLorean
Guru
December 23, 2020

STM32L432KB ? Please be specific about part and package

Did you solve your previous problem? https://community.st.com/s/question/0D53W00000RShlHSAT/timer-16-interupt-not-trigering-on-a-stm32l432

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
December 23, 2020

Double check the Net List thoroughly. Significantly more likely that one of the schematic nodes got misnamed or connected.

Check as simple GPIO, one as an Input and the other as an Output

Check an unpopulated board for continuity.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PGood.1
PGood.1Author
Associate III
December 23, 2020

Im using a nucleo-l432kc with an 3.3 v arduino generating a pulse stream connected to PA6 or pin A5 on the Nucleo board

Tesla DeLorean
Guru
December 23, 2020

Do you have the grounds commoned properly? Got some odd voltage levels on the traces.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PGood.1
PGood.1Author
Associate III
December 23, 2020

Got the IRQ handler going by adding HAL_TIM_IC_Start_IT(&htim16, TIM_CHANNEL_1); in the main() function

PGood.1
PGood.1Author
Associate III
December 23, 2020

Close examination of the schematic shows SB16 and SB 18 short PA6-PB6 and PA7-PB7 not sure what the purpose of the jumpers are!!!!!!!!!!!!!!!!!

TDK
December 23, 2020

> not sure what the purpose of the jumpers are!!!!!!!!!!!!!!!!!

If only there were some sort of manual that the user could find this information within...

0693W000006Gh7aQAC.png

"If you feel a post has answered your question, please click ""Accept as Solution""."