| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
TDC-GPX2 bảng dữ liệu(PDF) 60 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
TDC-GPX2 bảng dữ liệu(HTML) 60 Page - ams AG |
|
60 / 77 page ![]() Page 60 ams Datasheet Document Feedback [v1-03] 2017-Dec-18 TDC-GPX2 − Application Information // ----------------------------------------------------------------------------------------- // *** Writing the configuration registers *** // ----------------------------------------------------------------------------------------- GPIO_SSN = 1; // Reset the SPI interface and select the slave device GPIO_SSN = 0; config_error = false; send_byte_to_SPI( spiopc_write_config + 00 ); // Opcode for "Write Configuration" // and config address (00) are sent over SPI for ( i = 0; i < 17; i++) // Send all 17 config registers via SPI send_byte_to_SPI( config_register[i] ); // ----------------------------------------------------------------------------------------- // *** Verification of config registers *** // ----------------------------------------------------------------------------------------- GPIO_SSN = 1; // Reset the SPI interface and select the slave device GPIO_SSN = 0; send_byte_to_SPI( spiopc_read_config + 00 ); // Opcode for "Read Configuration" // and config address (00) are sent over SPI for ( i = 0; i < 17; i++) { read_byte_from_SPI( Buffer ); // read one byte from SPI to Buffer variable if ( config_register[i] != Buffer ) config_error = true; // if there was a failure in writing the config // registers, then the config_error flag is raised. } // // ----------------------------------------------------------------------------------------- // *** Initialize and start the measurement *** // ----------------------------------------------------------------------------------------- if (config_error == false ) { GPIO_SSN = 1; // Reset the SPI interface and select the slave device GPIO_SSN = 0; send_byte_to_SPI( spiopc_init ); // Opcode for "Initialize" is sent over SPI // This is required to start measuring process // ************************************************************************************* // End of the configuration settings. After now the time measurement will start. // This code is designed to use SPI to read the measurement data from GPX2. // Using LVDS as a output interface requires additional hardware and code. // ************************************************************************************* |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |