-
Datei
FM_AS6501_SPI1-2x.c
flush_SPI1(); for(n = 0; n < MAX_INIT_TAB; n++) { if(TDC_read() != AS6501_init_tab[n]) AS6501_vorhanden = 0; // fehler aufgetreten oder AS6501 fehlt } SPI1_stop(); // Select auf '1' passiv // AS6501 starten if(AS6501_vorhanden) { SIO->GPIO_OUT_CLR = BIT(SPI1_SSN); // Select
in „TDC(AS6501) als Phasenvergleicher“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
H750_AS6501.c
14; // Teiler für 9,333 MHz } TIM4->CR1 = TIM_CR1_CEN | TIM_CR1_ARPE; // starten } uint32_t init_AS6501(void) { volatile int n; int AS6501_vorhanden = 1; // default AS6501 vorhanden RCC->AHB4ENR |= RCC_AHB4ENR_GPIOBEN | (RCC_AHB4ENR_GPIOCEN); // PortB+C aktivieren RCC->APB2ENR |= RCC_APB2ENR_SPI1EN;
in „TDC(AS6501) als Phasenvergleicher“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Tabelle der maximalen Zeitdifferenzen zwischen Stopps
Maximum Time Differences The following table shows the maximum possible time differences between stops, depending on the reference index bit width. Figure 57: Maximum Time Differences REF_INDEX_BITWIDTH Mode Maximum Readout Hexadecimal Maximum Readout Decimal Max. Time Difference with fREFCLK = 2 MHz fREFCLK = 5 MHz fREFCLK = 10 MHz 0 Bit LVDS/SPI No read-out No read-out 0.5 µs 200 ns 100 ns 2 Bit LVDS 0x3 3 2 µs 800 ns 400 ns 4 Bit LVDS 0xF 15 8 µs 3.2 µs 1.6 µs 8 Bit LVDS/SPI 0xFF 255 128 µs 51.2 µs 25.6 µs 16 Bit LVDS/SPI 0xFFFF 65535 32 ms 13.0 ms 6.5 ms 24 Bit LVDS 0xFFFFFF 16777215 8 s 3.2
in „TDC(AS6501) als Phasenvergleicher“ · Mikrocontroller und Digitale Elektronik · · Screenshots