Справочник Пользователя для Micro Technic PV-1800

Скачать
Страница из 19
Users Manual & Installation Guide  
                            PV- 1800: Power supply module with GSM MODEM 
 
 
Page 13 / 19 
Internal registers 
 
Address 
Access 
Name 
Function 
Base+0 
Read only 
REG_SIGN 
Signature (8Ch) 
Base+1 
Read only 
REG_MODEL 
Model 
Base+2 
Read/write 
REG_DIGOUT 
Digital outputs 
Base+3 
Read only 
REG_DIGIN 
Digital inputs 
Base+4 
Read only 
REG_CNTLO 
Counter LSB 
Base+5 
Read only 
REG_CNTHI 
Counter MSB 
Base+6 
Read/write 
REG_CNTMODE  Counter configuration 
Base+7 
Read/write 
REG_MODEM 
Modem status and on/off command 
Base+8 
Read/write 
REG_UPS 
UPS status 
Base+9 
Read/write 
REG_UPSSHDN  Delayed UPS shutdown 
Base+0Ah  Read/write 
REG_ADCLO 
ADC command/result LSB 
Base+0Bh  Read/write 
REG_ADCHI 
ADC result MSB 
Base+0Ch  - 
reserved 
 
Base+0Dh  - 
reserved 
 
Base+0Eh  - 
reserved 
 
Base+0Fh  - 
reserved 
 
 
REG_SIGN (base+0): Signature (read only) 
Always reads 8Ch.  Can be used by software to verify the presence of the PV-1800. 
 
REG_MODEL (base+1): PV-1800 firmware model number (read only) 
When the firmware is changed to remove, add, or change features, the model number is 
changed.  Current model number is 00h. 
 
REG_DIGOUT (base+2): Digital outputs (read/write) 
Writing to bit 0-6 sets digital output 0-6.  0=off, 1=on. 
Reading bit 0-6 returns the current status of digital output 0-6. 
Bit 7 is always 0. 
 
REG_DIGIN (base+3): Digital inputs (read only) 
Reading bit 0-7 returns the current status of digital input 0-7.  0=off, 1=on. 
DI0 and DI1 can also be used as counter inputs.  Regardless of this, their current 
status can always be read at this register. 
 
REG_CNTLO (base+4): Counter low byte (read only) 
Reading this register returns bit 0-7 of the current value of the counter, and 
simultaneously stores bit 8-15 of the counter in the REG_CNTHI register. 
 
REG_CNTHI (base+5): Counter high byte (read only) 
Reading this register returns the previously stored value of bit 8-15 of the 
counter.