| поискавой системы для электроныых деталей |
|
UPD77533 датащи(PDF) 86 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
UPD77533 датащи(HTML) 86 Page - Renesas Technology Corp |
|
86 / 104 page ![]() Data Sheet S15671EJ4V0DS 84 µµµµPD77533 APPENDIX SAMPLE PROGRAM The following program is a sample provided to enable an understanding of what is processed by the host CPU. The actual operation of the program differs depending on the system. /*============================================================================= * * Host CPU sample program * =============================================================================== * Copyright(C) 2001 NEC Corporation. =============================================================================== * This program describes an example of processing that should be performed by the host CPU. * To actually operate the program, it must be revised to comply with the system. =============================================================================*/ /*=====================*/ /* Constant definition */ /*=====================*/ /* BOOL value */ #define TRUE 1 /* TRUE */ #define FALSE 0 /* FALSE */ /* State values used by state machine */ #define STATE_INIT 0 /* Initialization */ #define STATE_WAIT_RESET 1 /* Reset response wait */ #define STATE_SEND_TIMEOUT 2 /* Character Timeout command transmission */ #define STATE_WAIT_TIMEOUT 3 /* Character Timeout response wait */ #define STATE_SEND_FCC_FREQ 4 /* FCC Frequency command transmission */ #define STATE_WAIT_FCC_FREQ 5 /* FCC Frequency response wait */ #define STATE_SEND_TXACVT 6 /* TXACVT command transmission */ #define STATE_WAIT_TXACVT 7 /* TXACVT response wait */ #define STATE_SEND_FCC_CTRL 8 /* FCC Control command transmission */ #define STATE_WAIT_FCC_CTRL 9 /* FCC Control response wait */ #define STATE_SEND_FLOW_CTRL 10 /* Flow Point Control command transmission */ #define STATE_WAIT_FLOW_CTRL 11 /* Flow Point Control response wait */ #define STATE_INIT_DONE 12 /* Initialization complete */ #define STATE_DONE 13 /* Complete */ /* Serial buffer control value */ #define SERIAL_GM 0 /* GM size of serial line */ #define SERIAL_LS 1 /* LS size of serial line */ #define SERIAL_IN 0 /* Serial input */ #define SERIAL_OUT 1 /* Serial output */ /* Packet */ #define PACKET_DATA_LEN 255 /* Maximum length of data segment of packet */ #define PACKET_INFO_LEN 3 /* Length of information segment of packet */ #define PACKET_MAX_LEN (PACKET_DATA_LEN+PACKET_INFO_LEN) /* Maximum length of packet */ #define PACKET_FLG 0x03 /* FLG (not continued) */ #define PACKET_FLG_CONT 0x02 /* FLG (continued) */ /* Buffer size */ #define MAXBLOCK PACKET_MAX_LEN /* Block size of serial reception */ |
|
ссылки 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 |