Сенсорные кнопки Discuss Сенсорные кнопки https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html Fri, 29 Mar 2024 01:58:24 +0000 JComments mash says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4437 TouchCount) Sound(4000); ovf0=0;} . . . // пока проверил на 11 кнопках if (time==0) { TIM3_Cmd(DISABL E); time=6500; GPIO_Init(GPIOA ,GPIO_Pin_2,GPI O_Mode_Out_OD_H iZ_Slow); } else time--; } return 0; } INTERRUPT_ HANDLER(TIM4_UP D, 25) { ovf0++; ovf1++; ovf2++; ovf3++; ovf4++; ovf5++; ovf6++; ovf7++; TIM4_ClearFlag( TIM4_FLAG_Updat e); } INTERRUPT _HANDLER(TIM2_U PD, 19) { GPIO_Init(GPIOB , GPIO_Pin_All, GPIO_Mode_Out_O D_Low_Fast); GPIO_Init(GPIOB , GPIO_Pin_All, GPIO_Mode_In_FL _No_IT); TIM2_ClearFlag( TIM2_FLAG_Updat e); } INTERRUPT _HANDLER(TIM3_U PD, 21) // Звук { GPIO_ToggleBits (GPIOA,GPIO_Pin _2); TIM3_ClearFlag( TIM3_FLAG_Updat e); } void Sound(int Freq) { TIM3_TimeBaseIn it(TIM3_Prescal er_2, TIM3_CounterMod e_Up, Freq); TIM3_Cmd(ENABLE ); }]]> mash Wed, 18 Feb 2015 09:45:32 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4437 mash says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4435 mash Mon, 16 Feb 2015 05:51:31 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4435 mash says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4432 TouchCou nt){comp++;if(c omp>=Threshold) {GPIO_ToggleBit s(GPIOC,GPIO_Pi n_0);comp=0;}}s tpin0=0;} if (GPIO_ReadInput DataBit(GPIOB,G PIO_Pin_1)){if( stpin1>TouchCou nt){comp++;if(c omp>=Threshold) {GPIO_ToggleBit s(GPIOC,GPIO_Pi n_1);comp=0;}}s tpin1=0;} } return 0; } INTERRUPT_ HANDLER(TIM2_OV F, 19) { if (TIM2_GetFlagSt atus(TIM2_FLAG_ Update)) { stpin0++; stpin1++; TIM2_ClearFlag( TIM2_FLAG_Updat e); } } INTERRUPT_H ANDLER(TIM3_OVF , 21) { if (TIM3_GetFlagSt atus(TIM3_FLAG_ Update)) { GPIO_Init(GPIOB , GPIO_Pin_0, GPIO_Mode_Out_O D_Low_Fast); GPIO_Init(GPIOB , GPIO_Pin_1, GPIO_Mode_Out_O D_Low_Fast); GPIO_Init(GPIOB , GPIO_Pin_0, GPIO_Mode_In_FL _No_IT); GPIO_Init(GPIOB , GPIO_Pin_1, GPIO_Mode_In_FL _No_IT); stpin0 = 0; stpin1 = 0; // ? Обнуляем счетный регистр TIM3_ClearFlag( TIM3_FLAG_Updat e); } } INTERRUPT_H ANDLER(TIM4_OVF , 25) { if (TIM4_GetFlagSt atus(TIM4_FLAG_ Update)) { GPIO_ToggleBits (GPIOD,GPIO_Pin _0); // Вывод звука TIM4_ClearFlag( TIM4_FLAG_Updat e); } }]]> mash Sat, 14 Feb 2015 16:32:09 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4432 mash says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4431 mash Sat, 14 Feb 2015 16:09:16 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-4431 oxidizer says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2502 oxidizer Fri, 08 Feb 2013 11:51:28 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2502 Leo says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2226 Leo Tue, 20 Nov 2012 10:40:58 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2226 DmitryyDAS says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2121 DmitryyDAS Sat, 29 Sep 2012 23:26:26 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2121 Сергей123 says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2028 Сергей123 Sun, 26 Feb 2012 11:56:11 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-2028 vikfreeman says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1986 vikfreeman Sun, 29 Jan 2012 15:40:38 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1986 ROM says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1930 ROM Mon, 02 Jan 2012 21:35:07 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1930 ROM says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1928 ROM Mon, 02 Jan 2012 10:31:28 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1928 Иван says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1920 Иван Sun, 25 Dec 2011 20:03:42 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1920 AVRson says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1856 AVRson Thu, 17 Nov 2011 13:37:06 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1856 Alca says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1562 Alca Tue, 28 Jun 2011 08:58:09 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1562 кулибин says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1479 кулибин Wed, 04 May 2011 08:29:42 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1479 ankar says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1360 ankar Sun, 13 Mar 2011 21:15:31 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1360 Владимир says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1220 Владимир Thu, 24 Feb 2011 08:53:05 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1220 Petrov says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1204 Petrov Wed, 23 Feb 2011 14:10:54 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1204 Владимир says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1196 Владимир Wed, 23 Feb 2011 11:43:49 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1196 Владимир says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1195 Владимир Wed, 23 Feb 2011 11:35:39 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1195 Pashgan says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1151 Pashgan Wed, 16 Feb 2011 21:59:07 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1151 Владимир says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1147 Владимир Wed, 16 Feb 2011 08:30:54 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1147 CatMurr says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1115 CatMurr Fri, 04 Feb 2011 06:12:53 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1115 GurovIlya says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1114 GurovIlya Fri, 04 Feb 2011 05:05:31 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1114 Petrov says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1113 Petrov Fri, 04 Feb 2011 02:51:01 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1113 Pashgan says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1111 Pashgan Thu, 03 Feb 2011 19:36:06 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1111 Витек. says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1109 Витек. Thu, 03 Feb 2011 15:59:48 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1109 Pashgan says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1108 Pashgan Thu, 03 Feb 2011 15:28:57 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1108 Витек. says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1107 Витек. Thu, 03 Feb 2011 14:49:17 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1107 Petrov says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1103 Petrov Thu, 03 Feb 2011 13:29:17 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1103 Pashgan says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1101 Pashgan Thu, 03 Feb 2011 12:07:03 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1101 Pashgan says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1098 Pashgan Thu, 03 Feb 2011 11:49:00 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1098 CatMurr says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1097 CatMurr Thu, 03 Feb 2011 11:45:00 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1097 CrazySynergetic says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1094 CrazySynergetic Thu, 03 Feb 2011 10:02:18 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1094 ANN says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1088 ANN Thu, 03 Feb 2011 03:31:02 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1088 Petrov says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1087 Petrov Thu, 03 Feb 2011 03:03:57 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1087 TERMIN says: https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1085 TERMIN Wed, 02 Feb 2011 22:41:55 +0000 https://chipenable.ru/index.php/how-connection/item/83-sensornye-knopki.html#comment-1085