| поискавой системы для электроныых деталей |
|
AN2278 датащи(PDF) 4 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2278 датащи(HTML) 4 Page - STMicroelectronics |
|
4 / 9 page ![]() Software configuration AN2278 4/9 3 Software configuration All the source files are in ‘C’ language and the application uses ST7 software library functions. The application works in two modes: 1. Configuration mode (refer to the flowchart in Figure 1) 2. Normal mode (refer to the flowcharts in Figure 2 and Figure 3) Since Button5 and Button6 are not connected to the microcontroller interrupt I/Os, polling mode is used to read the request status resulting from pressing these buttons. The main function is organized as follows: while(1) { ------------------------------ ------------------------------ code=1; switch (code) { case 1: //Configuration Mode break; case 2: //Read temperature log from EEPROM and display on hyperterminal break; case 3: // Sense temperature in 16 samples (refer to the flowchart in Figure 3.) // Display average temperature every 1 sec on hyperterminal // if temperature is out of bounds(set in configuration mode) // then toggle LED // else continue // Record max and min temperature over 1 hr // Write max and min temperature to EEPROM break; } ----------------------------- ----------------------------- if(!(IO_Read(IO_PORT_C) & 0x20)) //Poll for Button 5 code=1; else if(!(IO_Read(IO_PORT_C) & 0x80)) //Poll for Button 6 code=2; ------------------------------ ------------------------------ } |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |