Adlink HSL-DO32-M-N/HSL-DO32-M-P Instrukcja Użytkownika Strona 99

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 137
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 98
86 HSL Function Library
5.3 Timer Control
@ Name
HSL_enable_timer_interrupt (7851/52 only) – Enable timer
interrupt of master card
HSL_disable_timer_interrupt (7851/52 only) – Disable
timer interrupt of master card
HSL_set_timer (7851/52 only)– Set the resolution of timer
HSL_set_int_timer (7853/54 only) – Set the timer parameters
HSL_set_int_timer_enable (7853/54 only) – Enable\Disable
timer interrupt of master card( 7853/54 only)
HSL_wait_timer_interrupt (7853/54 only) – Wait timer event
@ Description
HSL_enable_timer_interrupt (7851/52 only):
Enables the hardware timer interrupt of the master card.
HSL_disable_timer_interrupt (7851/52 only):
Disables the hardware timer interrupt of the master card.
HSL_set_timer (7851/52 only):
This function sets up Timer 1 and Timer 2. Timer 1 and Timer 2 are
used as frequency dividers to generate a dedicated constant timer
interrupt sampling rate. The highest timer interrupt sampling rate
of the master card may not exceed 20 KHz on Windows NT plat-
form because of system limitation. The following example is set at
6 Mbps:
If you want to have a sampling rate of 15 kHz, the function must be
HSL_set_timer (0, 20, 20)
If you want to have a sampling rate of 1.2 kHz, the function must
be
HSL_set_timer (0, 100, 50)
The formula used is:
Transmission speed / (c1 x c2)
Przeglądanie stron 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 136 137

Komentarze do niniejszej Instrukcji

Brak uwag