B&B Electronics Parallel Printer Card PIOC Uživatelský manuál Strana 36

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 64
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 35
GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
IT - Initialize Real Time Clock
USBwiz has a built in real time clock that is used to save the date on the created files.
Users need to specify if USBwiz will be running the RTC using the same oscillator as
USBwiz or separate 32Khz oscillator and a battery. The advantage of running the RTC
on a 32Khz oscillator and battery is that it will not loose the time when losing the main
power source of USBwiz.
Format IT<SP>t<CR>
!00<CR>
t The mode to run RTC on. Can be B for backup
battery or S for share mode with the oscillator
used for USBwiz.
Example IT<SP>S<CR>
!00<CR>
Run RTC clock from same oscillator and power as
USBwiz.
ST - Set Real Time Clock
After the time is set, the RTC inside USBwiz will keep track of the time. The accuracy of
the RTC is 2 seconds.
Format ST<SP>t<CR>
!00<CR>
t The time and date as 32 bits that is
formed as in the structure below.
Example ST<SP>34210000<CR>
!00<CR>
Set clock to 1/1/2006 00:00:00
* Time and Date structure is a 32-bits standard structure used in FAT system. For
example, 0x34212002 is 01/01/2006 – 04:00:04
Bits(s) Field Description
0x34212000 Bits in Binary
31..25 Year1980 Years since 1980 001 1010
24..21 Month 1..12 0001
20..16 Day 1..31 0 0001
15..11 Hour 0..23 0 0100
10..5 Minute 0..59 00 0000
4..0 Second2 Seconds divided by 2 (0..30) 0 0010
GT - Get Current Real Time Clock
Obtains the current time. Returned value can be a 32-bit hex number or an ASCII string.
Format GT<SP>f<CR>
!00<CR>
(DWORD or ASCII string time
data)<CR>
!00<CR>
f Returned data can be 32-
bit hex (value X) or
formatted ASCII string
(value F)
Rev.2.27 Page 36 of 64 www.ghielectronics.com
Zobrazit stránku 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 63 64

Komentáře k této Příručce

Žádné komentáře