在写stm32程序时,经常遇到这样的问题,就是使用一个模块时,首先要查数据手册,看这个模块用了哪个io口,会耽误一些时间,所以这两天就抓了一些时间,以数据手册中的表5作为参照整理了一下各个模块所使用的io口,这样以后在用到某个模块时,就可以快速的了解,该模块都用了哪个io口,方便编程与画图。也分享给大家,好让编程更方便快捷。文件已经保存成rar格式,解压后为txt文本
关于stm32各模块的io口定义.rar
(2.75 KB)
以下为部分内容:
定时器1
TIM_BKIN ----- PB12 LQFP64(33) LQFP100(51) LQFP144(73)
TIM1_CH1N ----- PB13 LQFP64(34) LQFP100(52) LQFP144(74)
TIM1_CH2N ----- PB14 LQFP64(35) LQFP100(53) LQFP144(75)
TIM1_CH3N ----- PB15 LQFP64(36) LQFP100(54) LQFP144(76)
TIM1_CH1 ----- PA8 LQFP64(41) LQFP100(67) LQFP144(100)
TIM1_CH2 ----- PA9 LQFP64(42) LQFP100(68) LQFP144(101)
TIM1_CH3 ----- PA10 LQFP64(43) LQFP100(69) LQFP144(102)
TIM1_CH4 ----- PA11 LQFP64(44) LQFP100(70) LQFP144(103)
TIM1_ETR ----- PA12 LQFP64(45) LQFP100(71) LQFP144(104)
定时器2
TIM2_CH1_ETR ----- PA0 LQFP64(14) LQFP100(23) LQFP144(34)
TIM2_CH2 ----- PA1 LQFP64(15) LQFP100(24) LQFP144(35)
TIM2_CH3 ----- PA2 LQFP64(16) LQFP100(25) LQFP144(36)
TIM2_CH4 ----- PA3 LQFP64(17) LQFP100(26) LQFP144(37)
定时器3
TIM3_CH1 ----- PA6 LQFP64(22) LQFP100(31) LQFP144(42)
TIM3_CH2 ----- PA7 LQFP64(23) LQFP100(32) LQFP144(43)
TIM3_CH3 ----- PB0 LQFP64(26) LQFP100(35) LQFP144(46)
TIM3_CH4 ----- PB1 LQFP64(27) LQFP100(36) LQFP144(47)
TIM3_ETR ----- PD2 LQFP64(54) LQFP100(83) LQFP144(116)
定时器4
TIM4_CH1 ----- PB6 LQFP64(58) LQFP100(92) LQFP144(136)
TIM4_CH2 ----- PB7 LQFP64(59) LQFP100(93) LQFP144(137)
TIM4_CH3 ----- PB8 LQFP64(61) LQFP100(95) LQFP144(139)
TIM4_CH4 ----- PB9 LQFP64(62) LQFP100(96) LQFP144(140)
TIM4_ETR ----- PE0 LQFP64() LQFP100(97) LQFP144(141)
定时器5
TIM5_CH1 ----- PA0 LQFP64(14) LQFP100(23) LQFP144(34)
TIM5_CH2 ----- PA1 LQFP64(15) LQFP100(24) LQFP144(35)
TIM5_CH3 ----- PA2 LQFP64(16) LQFP100(25) LQFP144(36)
TIM5_CH4 ----- PA3 LQFP64(17) LQFP100(26) LQFP144(37)
定时器8
TIM8_ETR ----- PA0 LQFP64(14) LQFP100(23) LQFP144(34)
TIM8_BKIN ----- PA6 LQFP64(22) LQFP100(31) LQFP144(42)
TIM8_CH1N ----- PA7 LQFP64(23) LQFP100(32) LQFP144(43)
TIM8_CH2N ----- PB0 LQFP64(26) LQFP100(35) LQFP144(46)
TIM8_CH3N ----- PB1 LQFP64(27) LQFP100(36) LQFP144(47)
TIM8_CH1 ----- PC6 LQFP64(37) LQFP100(63) LQFP144(96)
IIC
IIC2_CLK ----- PB10 LQFP64(29) LQFP100(47) LQFP144(69)
IIC2_SDA ----- PB11 LQFP64(30) LQFP100(48) LQFP144(70)
IIC2_SMBA ----- PB12 LQFP64(33) LQFP100(51) LQFP144(73)
IIC1_SMBA ----- PB5 LQFP64(57) LQFP100(91) LQFP144(135)
IIC1_CLK ----- PB6 LQFP64(58) LQFP100(92) LQFP144(136)
IIC1_SDA ----- PB7 LQFP64(59) LQFP100(93) LQFP144(137)
IIS
IIS2_WS ----- PB12 LQFP64(33) LQFP100(51) LQFP144(73)
IIS2_CK ----- PB13 LQFP64(34) LQFP100(52) LQFP144(74)
IIS2_SD ----- PB15 LQFP64(36) LQFP100(54) LQFP144(76)
IIS2_MCK ----- PC6 LQFP64(37) LQFP100(63) LQFP144(96)
IIS3_WS ----- PA15 LQFP64(50) LQFP100(77) LQFP144(110)
IIS3_SD ----- PB5 LQFP64(57) LQFP100(91) LQFP144(135)
IIS3_MCK ----- PC7 LQFP64(38) LQFP100(64) LQFP144(97)
IIS3_CK ----- PB3 LQFP64(55) LQFP100(89) LQFP144(133)
|