![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
SPI.c@127:6a7472d67804, 2016-04-11 (annotated)
- Committer:
- igor_v
- Date:
- Mon Apr 11 03:13:42 2016 +0000
- Revision:
- 127:6a7472d67804
- Parent:
- 126:76579c4db080
- Child:
- 128:1e4675a36c93
??? ???? ????????;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 0:8ad47e2b6f00 | 1 | #include "Global.h" |
igor_v | 0:8ad47e2b6f00 | 2 | struct SPI Spi; |
Kovalev_D | 112:4a96133a1311 | 3 | //unsigned int Temp_AMP; |
Kovalev_D | 96:1c8536458119 | 4 | unsigned int Temp_AMP64P; |
igor_v | 31:c783288001b5 | 5 | |
Kovalev_D | 99:3d8f206ceac2 | 6 | unsigned int Count_AMP, ADD_AMP, Cur_Amp; |
Kovalev_D | 99:3d8f206ceac2 | 7 | int Znak_Amp; |
Kovalev_D | 109:ee0cff33ad3b | 8 | int AD_Regul = 0; |
Kovalev_D | 109:ee0cff33ad3b | 9 | |
Kovalev_D | 109:ee0cff33ad3b | 10 | |
Kovalev_D | 99:3d8f206ceac2 | 11 | |
Kovalev_D | 86:398da56ef751 | 12 | unsigned int Temp_ADC_2; |
Kovalev_D | 86:398da56ef751 | 13 | unsigned int Temp_ADC_3; |
Kovalev_D | 86:398da56ef751 | 14 | unsigned int Temp_ADC_4; |
Kovalev_D | 86:398da56ef751 | 15 | unsigned int Temp_ADC_5; |
igor_v | 31:c783288001b5 | 16 | |
igor_v | 31:c783288001b5 | 17 | |
Kovalev_D | 95:dd51e577e114 | 18 | unsigned int Buff_ADC_1 [32]; |
Kovalev_D | 95:dd51e577e114 | 19 | unsigned int Buff_ADC_2 [32]; |
Kovalev_D | 95:dd51e577e114 | 20 | unsigned int Buff_ADC_3 [32]; |
Kovalev_D | 95:dd51e577e114 | 21 | unsigned int Buff_ADC_4 [32]; |
igor_v | 51:81f47b817071 | 22 | |
igor_v | 31:c783288001b5 | 23 | unsigned int Buff_ADC_5 [256]; |
igor_v | 31:c783288001b5 | 24 | unsigned int Buff_AMP [256]; |
Kovalev_D | 96:1c8536458119 | 25 | unsigned int Buff_AMP64P [256]; |
igor_v | 31:c783288001b5 | 26 | unsigned int SinPLC[64]= {1023, 1016, 1006, 993, 976, 954, 904, 874, 841, 806, 768, 728, |
igor_v | 31:c783288001b5 | 27 | 687, 645, 601, 557, 500, 379, 337, 296, 256, 219, 183, 150, |
igor_v | 31:c783288001b5 | 28 | 120, 93, 69, 48, 31, 18, 8, 0, 8, 18, 31, 48, |
igor_v | 31:c783288001b5 | 29 | 69, 93, 120, 150, 183, 219, 256, 296, 337, 379, 468, 512, 557, |
igor_v | 31:c783288001b5 | 30 | 601, 645, 687, 728, 768, 806, 841, 874, 904, 954, 976, 993, 1006, |
igor_v | 31:c783288001b5 | 31 | 1016, 1023 |
igor_v | 31:c783288001b5 | 32 | }; |
Kovalev_D | 86:398da56ef751 | 33 | |
igor_v | 110:6406b7ac0442 | 34 | |
igor_v | 110:6406b7ac0442 | 35 | |
igor_v | 110:6406b7ac0442 | 36 | |
igor_v | 110:6406b7ac0442 | 37 | |
igor_v | 114:5cc38a53d8a7 | 38 | void SPI_Exchange(void) // новая функция чтения, в нецй не должно быть ничего лишнего |
igor_v | 110:6406b7ac0442 | 39 | { |
igor_v | 110:6406b7ac0442 | 40 | unsigned int DummySPI; |
igor_v | 110:6406b7ac0442 | 41 | Spi.ADC5_Accum += LPC_SSP0->DR; // Чтение АЦП |
igor_v | 110:6406b7ac0442 | 42 | Spi.ADC4_Accum += LPC_SSP0->DR; |
igor_v | 110:6406b7ac0442 | 43 | Spi.ADC3_Accum += LPC_SSP0->DR; |
igor_v | 110:6406b7ac0442 | 44 | Spi.ADC2_Accum += LPC_SSP0->DR; |
igor_v | 110:6406b7ac0442 | 45 | Spi.ADC1_Accum += LPC_SSP0->DR; |
igor_v | 110:6406b7ac0442 | 46 | while (LPC_SSP0->SR & RX_SSP_notEMPT) {DummySPI = LPC_SSP0->DR;} //если буфер SPI не пуст.//очистить буфер. |
Kovalev_D | 112:4a96133a1311 | 47 | |
Kovalev_D | 112:4a96133a1311 | 48 | |
Kovalev_D | 112:4a96133a1311 | 49 | DAC_OutPut(); |
Kovalev_D | 112:4a96133a1311 | 50 | |
igor_v | 110:6406b7ac0442 | 51 | if (CountV31 == 0) // просто фильтруем по 32 точкам. |
igor_v | 110:6406b7ac0442 | 52 | { |
Kovalev_D | 112:4a96133a1311 | 53 | // выставояем бит, что есть новы данные |
igor_v | 110:6406b7ac0442 | 54 | Spi.ADC1 = Spi.ADC1_Accum >> 5; // подгоотавливаем данные (в той эе сетке) те ADC1 0..65535 |
igor_v | 110:6406b7ac0442 | 55 | Spi.ADC2 = Spi.ADC2_Accum >> 5; |
igor_v | 110:6406b7ac0442 | 56 | Spi.ADC3 = Spi.ADC3_Accum >> 5; |
igor_v | 110:6406b7ac0442 | 57 | Spi.ADC4 = Spi.ADC4_Accum >> 5; |
igor_v | 110:6406b7ac0442 | 58 | Spi.ADC5 = Spi.ADC5_Accum >> 5; |
Kovalev_D | 112:4a96133a1311 | 59 | Spi.ADC1_Accum = 0; // сбрасывкем аккамулятор |
Kovalev_D | 112:4a96133a1311 | 60 | Spi.ADC2_Accum = 0; |
Kovalev_D | 112:4a96133a1311 | 61 | Spi.ADC3_Accum = 0; |
Kovalev_D | 112:4a96133a1311 | 62 | Spi.ADC4_Accum = 0; |
Kovalev_D | 112:4a96133a1311 | 63 | Spi.ADC5_Accum = 0; |
Kovalev_D | 125:9400e64d0636 | 64 | Spi.ADC_NewData = 1; |
igor_v | 110:6406b7ac0442 | 65 | } |
Kovalev_D | 125:9400e64d0636 | 66 | |
Kovalev_D | 113:8be429494918 | 67 | |
Kovalev_D | 112:4a96133a1311 | 68 | } |
Kovalev_D | 113:8be429494918 | 69 | |
Kovalev_D | 116:66f1f0ff2dab | 70 | void PlcRegul(void) //Программа расчет напряжения для модулятора |
Kovalev_D | 116:66f1f0ff2dab | 71 | { |
Kovalev_D | 116:66f1f0ff2dab | 72 | int PLC_In; |
Kovalev_D | 116:66f1f0ff2dab | 73 | |
igor_v | 127:6a7472d67804 | 74 | |
igor_v | 127:6a7472d67804 | 75 | PLC_In = Gyro.AD_Slow; //выбираем даные для фильтрации |
Kovalev_D | 116:66f1f0ff2dab | 76 | // PLC_In = Gyro.AD_Fast; |
igor_v | 127:6a7472d67804 | 77 | |
igor_v | 127:6a7472d67804 | 78 | Gyro.PLC_Delta = PLC_In - Gyro.PLC_Old; // узнаем приращение |
igor_v | 127:6a7472d67804 | 79 | Gyro.PLC_DeltaADD = PLC_Delta * Gyro.PLC_ADC_DOld; //приращение с учетом знака (и количества) прошлого приращения |
igor_v | 127:6a7472d67804 | 80 | Gyro.PLC_Old = PLC_In; // запоминание значения |
igor_v | 127:6a7472d67804 | 81 | if(Gyro.RgConA&0x2) // если включон контур регулирования |
igor_v | 127:6a7472d67804 | 82 | { |
igor_v | 127:6a7472d67804 | 83 | if (Gyro.PLC_Error2Mode > 0) {Gyro.PLC_Error2Mode --;} // если ошибка(нахожление в двух модовом) |
igor_v | 127:6a7472d67804 | 84 | else if ( Gyro.PLC_Delta > (1000 * 65536)) {Spi.DAC_B += 2500; Gyro.PLC_Error2Mode = 5; Gyro.PLC_DeltaADD = 0;} // проверка на двух модовость |
igor_v | 127:6a7472d67804 | 85 | else if ( Gyro.PLC_Delta < (-1000 * 65536)) {Spi.DAC_B += 2500; Gyro.PLC_Error2Mode = 5; Gyro.PLC_DeltaADD = 0;} |
igor_v | 127:6a7472d67804 | 86 | else if (Gyro.PLC_DeltaADD > 0) |
igor_v | 127:6a7472d67804 | 87 | { |
igor_v | 127:6a7472d67804 | 88 | |
igor_v | 127:6a7472d67804 | 89 | } |
igor_v | 127:6a7472d67804 | 90 | else if (Gyro.PLC_DeltaADD < 0) |
igor_v | 127:6a7472d67804 | 91 | { |
igor_v | 127:6a7472d67804 | 92 | |
igor_v | 127:6a7472d67804 | 93 | } |
igor_v | 127:6a7472d67804 | 94 | else |
igor_v | 127:6a7472d67804 | 95 | { |
igor_v | 127:6a7472d67804 | 96 | |
igor_v | 127:6a7472d67804 | 97 | } |
igor_v | 127:6a7472d67804 | 98 | } |
igor_v | 127:6a7472d67804 | 99 | else |
igor_v | 127:6a7472d67804 | 100 | { |
igor_v | 127:6a7472d67804 | 101 | Gyro.PLC_Error2Mode = 1; Gyro.PLC_DeltaADD = 0 |
igor_v | 127:6a7472d67804 | 102 | } |
igor_v | 127:6a7472d67804 | 103 | Spi.DAC_B += Gyro.PLC_ADC_DOld * 4; |
igor_v | 127:6a7472d67804 | 104 | if ( Spi.DAC_B < 1000 ) {Spi.DAC_B = 64000; Gyro.PLC_Error2Mode = 5; Gyro.PLC_DeltaADD = 0;} |
igor_v | 127:6a7472d67804 | 105 | if ( Spi.DAC_B > 1000 ) {Spi.DAC_B = 1000; Gyro.PLC_Error2Mode = 5; Gyro.PLC_DeltaADD = 0;} |
Kovalev_D | 116:66f1f0ff2dab | 106 | |
igor_v | 127:6a7472d67804 | 107 | |
igor_v | 127:6a7472d67804 | 108 | |
igor_v | 127:6a7472d67804 | 109 | |
igor_v | 127:6a7472d67804 | 110 | |
igor_v | 127:6a7472d67804 | 111 | /* эТО вроде заработало |
Kovalev_D | 116:66f1f0ff2dab | 112 | if(Gyro.RgConA&0x2) |
Kovalev_D | 116:66f1f0ff2dab | 113 | { |
igor_v | 127:6a7472d67804 | 114 | if (Gyro.PLC_Error2Mode > 0) {Gyro.PLC_Error2Mode --;} // если ошибка(нахожление в двух модовом) |
igor_v | 127:6a7472d67804 | 115 | else if ( Gyro.PLC_Delta > (1000 * 65536)) {Spi.DAC_B += 2500; Gyro.PLC_Error2Mode = 5;} |
igor_v | 127:6a7472d67804 | 116 | else if ( Gyro.PLC_Delta < (-1000 * 65536)) {Spi.DAC_B += 2500; Gyro.PLC_Error2Mode = 5;} |
Kovalev_D | 116:66f1f0ff2dab | 117 | else if ((Gyro.PLC_Delta * Gyro.PLC_Znak) > 0) |
Kovalev_D | 116:66f1f0ff2dab | 118 | { |
Kovalev_D | 116:66f1f0ff2dab | 119 | Gyro.PLC_Znak = 1; |
Kovalev_D | 121:bbae560cdd43 | 120 | // Gyro.PLC_Regul -= ((Gyro.PLC_Delta * Gyro.PLC_Znak)/100); |
Kovalev_D | 125:9400e64d0636 | 121 | // Spi.DAC_B -= (((Gyro.PLC_Delta * Gyro.PLC_Znak)/65536))*16; |
Kovalev_D | 126:76579c4db080 | 122 | Spi.DAC_B -= 64; |
Kovalev_D | 116:66f1f0ff2dab | 123 | } |
Kovalev_D | 116:66f1f0ff2dab | 124 | else |
Kovalev_D | 116:66f1f0ff2dab | 125 | { |
Kovalev_D | 116:66f1f0ff2dab | 126 | Gyro.PLC_Znak = -1; |
Kovalev_D | 121:bbae560cdd43 | 127 | // Gyro.PLC_Regul -= ((Gyro.PLC_Delta * Gyro.PLC_Znak)/100); |
Kovalev_D | 125:9400e64d0636 | 128 | // Spi.DAC_B -= (((Gyro.PLC_Delta * Gyro.PLC_Znak)/65536))*16; |
Kovalev_D | 126:76579c4db080 | 129 | Spi.DAC_B += 64; |
Kovalev_D | 116:66f1f0ff2dab | 130 | } |
Kovalev_D | 116:66f1f0ff2dab | 131 | // Spi.DAC_B = (Gyro.PLC_Regul + 0x1fffffff)/65536; |
Kovalev_D | 116:66f1f0ff2dab | 132 | } |
Kovalev_D | 122:fbacb932a30b | 133 | else Spi.DAC_B += 16; |
igor_v | 127:6a7472d67804 | 134 | */ |
igor_v | 127:6a7472d67804 | 135 | |
igor_v | 127:6a7472d67804 | 136 | |
igor_v | 127:6a7472d67804 | 137 | |
igor_v | 127:6a7472d67804 | 138 | |
igor_v | 127:6a7472d67804 | 139 | |
Kovalev_D | 116:66f1f0ff2dab | 140 | } |
Kovalev_D | 116:66f1f0ff2dab | 141 | |
Kovalev_D | 116:66f1f0ff2dab | 142 | |
Kovalev_D | 116:66f1f0ff2dab | 143 | |
Kovalev_D | 116:66f1f0ff2dab | 144 | |
Kovalev_D | 116:66f1f0ff2dab | 145 | void PlcRegul_old(void) // на всяни й случай |
Kovalev_D | 112:4a96133a1311 | 146 | { |
Kovalev_D | 112:4a96133a1311 | 147 | int Delta; |
Kovalev_D | 112:4a96133a1311 | 148 | |
Kovalev_D | 112:4a96133a1311 | 149 | ADD_AMP+=Spi.ADC5; |
Kovalev_D | 112:4a96133a1311 | 150 | Count_AMP++; |
Kovalev_D | 112:4a96133a1311 | 151 | if(Count_AMP>=(32*32+8)) |
Kovalev_D | 112:4a96133a1311 | 152 | { |
Kovalev_D | 112:4a96133a1311 | 153 | Delta = ADD_AMP - Cur_Amp; |
Kovalev_D | 112:4a96133a1311 | 154 | |
Kovalev_D | 112:4a96133a1311 | 155 | if(Gyro.RgConA&0x2) |
Kovalev_D | 112:4a96133a1311 | 156 | { |
Kovalev_D | 112:4a96133a1311 | 157 | if (Znak_Amp > 1) {Znak_Amp --;} |
Kovalev_D | 112:4a96133a1311 | 158 | else if ( Delta > 30000000 ) {AD_Regul += 5000000; Znak_Amp = 5;} |
Kovalev_D | 112:4a96133a1311 | 159 | else if ( Delta < (-3000000)) {AD_Regul += 5000000; Znak_Amp = 5;} |
Kovalev_D | 112:4a96133a1311 | 160 | else if ((Delta * Znak_Amp) > 0) |
Kovalev_D | 112:4a96133a1311 | 161 | { |
Kovalev_D | 112:4a96133a1311 | 162 | Znak_Amp = 1; |
Kovalev_D | 112:4a96133a1311 | 163 | AD_Regul -= (Delta * Znak_Amp * 10); |
Kovalev_D | 112:4a96133a1311 | 164 | } |
Kovalev_D | 112:4a96133a1311 | 165 | else |
Kovalev_D | 112:4a96133a1311 | 166 | { |
Kovalev_D | 112:4a96133a1311 | 167 | Znak_Amp = -1; |
Kovalev_D | 112:4a96133a1311 | 168 | AD_Regul -= (Delta * Znak_Amp * 10); |
Kovalev_D | 112:4a96133a1311 | 169 | } |
Kovalev_D | 112:4a96133a1311 | 170 | |
Kovalev_D | 112:4a96133a1311 | 171 | Spi.DAC_B = (AD_Regul + 0x1fffffff)/65536; |
Kovalev_D | 112:4a96133a1311 | 172 | } |
Kovalev_D | 112:4a96133a1311 | 173 | Cur_Amp=ADD_AMP; Count_AMP=0; ADD_AMP=0; |
Kovalev_D | 112:4a96133a1311 | 174 | } |
Kovalev_D | 112:4a96133a1311 | 175 | |
igor_v | 110:6406b7ac0442 | 176 | } |
igor_v | 110:6406b7ac0442 | 177 | |
igor_v | 110:6406b7ac0442 | 178 | |
Kovalev_D | 116:66f1f0ff2dab | 179 | |
Kovalev_D | 116:66f1f0ff2dab | 180 | |
Kovalev_D | 112:4a96133a1311 | 181 | void DAC_OutPut(void)//выдача в цапы |
igor_v | 0:8ad47e2b6f00 | 182 | { |
Kovalev_D | 112:4a96133a1311 | 183 | LPC_SSP0->DR=0x5555; |
igor_v | 31:c783288001b5 | 184 | LPC_SSP0->DR=0x5555; |
igor_v | 31:c783288001b5 | 185 | LPC_SSP0->DR=0x5555; |
igor_v | 0:8ad47e2b6f00 | 186 | |
igor_v | 110:6406b7ac0442 | 187 | if (CountV31 & 1) { //если нечетный такт то |
igor_v | 31:c783288001b5 | 188 | LPC_SSP0->DR = WRITE_DAC0; //e.команда для ЦАП_0 передавать. |
igor_v | 31:c783288001b5 | 189 | LPC_SSP0->DR = (Spi.DAC_A); //e. передача 12 бит |
igor_v | 31:c783288001b5 | 190 | } else { //если такт четный. |
igor_v | 31:c783288001b5 | 191 | LPC_SSP0->DR = WRITE_DAC1 ; //e.команда для ЦАП_1 передавать. |
igor_v | 31:c783288001b5 | 192 | LPC_SSP0->DR = (Spi.DAC_B); //e. передача 12 бит |
igor_v | 31:c783288001b5 | 193 | } |
Kovalev_D | 112:4a96133a1311 | 194 | } |
Kovalev_D | 112:4a96133a1311 | 195 | |
Kovalev_D | 112:4a96133a1311 | 196 | |
Kovalev_D | 113:8be429494918 | 197 | |
Kovalev_D | 113:8be429494918 | 198 | |
Kovalev_D | 113:8be429494918 | 199 | |
Kovalev_D | 113:8be429494918 | 200 | |
Kovalev_D | 113:8be429494918 | 201 | |
Kovalev_D | 113:8be429494918 | 202 | |
Kovalev_D | 113:8be429494918 | 203 | |
Kovalev_D | 113:8be429494918 | 204 | |
Kovalev_D | 113:8be429494918 | 205 | |
Kovalev_D | 113:8be429494918 | 206 | |
Kovalev_D | 113:8be429494918 | 207 | |
Kovalev_D | 113:8be429494918 | 208 | |
Kovalev_D | 113:8be429494918 | 209 | |
Kovalev_D | 113:8be429494918 | 210 | |
Kovalev_D | 113:8be429494918 | 211 | |
Kovalev_D | 113:8be429494918 | 212 | |
Kovalev_D | 113:8be429494918 | 213 | |
Kovalev_D | 113:8be429494918 | 214 | |
Kovalev_D | 113:8be429494918 | 215 | |
Kovalev_D | 113:8be429494918 | 216 | |
Kovalev_D | 113:8be429494918 | 217 | |
Kovalev_D | 113:8be429494918 | 218 | |
Kovalev_D | 113:8be429494918 | 219 | |
Kovalev_D | 113:8be429494918 | 220 | |
Kovalev_D | 113:8be429494918 | 221 | |
Kovalev_D | 113:8be429494918 | 222 | |
Kovalev_D | 113:8be429494918 | 223 | |
Kovalev_D | 113:8be429494918 | 224 | |
Kovalev_D | 113:8be429494918 | 225 | /* |
Kovalev_D | 112:4a96133a1311 | 226 | void SPI_Exchange(void) |
Kovalev_D | 112:4a96133a1311 | 227 | { |
Kovalev_D | 112:4a96133a1311 | 228 | unsigned int DummySPI; |
Kovalev_D | 112:4a96133a1311 | 229 | |
Kovalev_D | 112:4a96133a1311 | 230 | |
Kovalev_D | 112:4a96133a1311 | 231 | Spi.ADC5 = LPC_SSP0->DR; |
Kovalev_D | 112:4a96133a1311 | 232 | Spi.ADC4 = LPC_SSP0->DR; |
Kovalev_D | 112:4a96133a1311 | 233 | Spi.ADC3 = LPC_SSP0->DR; |
Kovalev_D | 112:4a96133a1311 | 234 | Spi.ADC2 = LPC_SSP0->DR; |
Kovalev_D | 112:4a96133a1311 | 235 | Spi.ADC1 = LPC_SSP0->DR; |
Kovalev_D | 112:4a96133a1311 | 236 | |
Kovalev_D | 112:4a96133a1311 | 237 | Input.ArrayIn[2]= Spi.ADC5; |
Kovalev_D | 112:4a96133a1311 | 238 | |
Kovalev_D | 112:4a96133a1311 | 239 | DAC_OutPut(); |
igor_v | 0:8ad47e2b6f00 | 240 | |
Kovalev_D | 99:3d8f206ceac2 | 241 | // LPC_DAC->CR = (((SinPLC[CountV64]*35/5)+24300));// модулятор |
Kovalev_D | 112:4a96133a1311 | 242 | |
Kovalev_D | 89:a0d344db227e | 243 | while (LPC_SSP0->SR & RX_SSP_notEMPT) //если буфер SPI не пуст. |
Kovalev_D | 89:a0d344db227e | 244 | DummySPI = LPC_SSP0->DR; //очистить буфер. |
igor_v | 31:c783288001b5 | 245 | |
Kovalev_D | 112:4a96133a1311 | 246 | //заполнение буферов еденичных значений АЦП. |
Kovalev_D | 112:4a96133a1311 | 247 | Buff_ADC_1 [CountV31] = Spi.ADC1; |
Kovalev_D | 112:4a96133a1311 | 248 | Buff_ADC_2 [CountV31] = Spi.ADC2; |
Kovalev_D | 112:4a96133a1311 | 249 | Buff_ADC_3 [CountV31] = Spi.ADC3; |
Kovalev_D | 112:4a96133a1311 | 250 | Buff_ADC_4 [CountV31] = Spi.ADC4; |
Kovalev_D | 95:dd51e577e114 | 251 | Buff_ADC_5 [CountV255] = Spi.ADC5; // ампл ацп. |
igor_v | 110:6406b7ac0442 | 252 | |
Kovalev_D | 112:4a96133a1311 | 253 | |
igor_v | 110:6406b7ac0442 | 254 | Temp_AMP64P += Buff_ADC_5[CountV255]; |
Kovalev_D | 96:1c8536458119 | 255 | Temp_AMP64P -= Buff_ADC_5[(CountV255-64) & 0xff]; // заполнение буфера накопленых приращений за 8 тактов |
Kovalev_D | 96:1c8536458119 | 256 | Buff_AMP64P[CountV255] = (unsigned int) (Temp_AMP64P); |
Kovalev_D | 96:1c8536458119 | 257 | |
igor_v | 31:c783288001b5 | 258 | |
Kovalev_D | 47:d902ef6f7564 | 259 | Temp_ADC_2 += Buff_ADC_2[CountV31]; |
Kovalev_D | 47:d902ef6f7564 | 260 | Temp_ADC_2 -= Buff_ADC_2[(CountV31-32) & 0xff]; |
igor_v | 31:c783288001b5 | 261 | |
Kovalev_D | 47:d902ef6f7564 | 262 | Temp_ADC_3 += Buff_ADC_3[CountV31]; |
Kovalev_D | 95:dd51e577e114 | 263 | Temp_ADC_3 -= Buff_ADC_3[(CountV31-32) & 0xff]; |
igor_v | 31:c783288001b5 | 264 | |
Kovalev_D | 47:d902ef6f7564 | 265 | Temp_ADC_4 += Buff_ADC_4[CountV31]; |
Kovalev_D | 47:d902ef6f7564 | 266 | Temp_ADC_4 -= Buff_ADC_4[(CountV31-32) & 0xff]; |
igor_v | 31:c783288001b5 | 267 | |
igor_v | 31:c783288001b5 | 268 | Temp_ADC_5 += Buff_ADC_1[CountV255]; |
igor_v | 31:c783288001b5 | 269 | Temp_ADC_5 -= Buff_ADC_1[(CountV255-32) & 0xff]; |
Kovalev_D | 112:4a96133a1311 | 270 | Spi.PLC_NewData=1; |
Kovalev_D | 113:8be429494918 | 271 | }*/ |