
PV-1648 64 CHANNEL DIGITAL I/O 16 DIGITAL INPUTS 48 DIGITAL OUTPUTS User Manual
D OC : M 5097 DM . DOC
Website: www.micro-technic.com


PV-SERIES 16 DIGITAL INPUTS, 48 DIGITAL OUTPUTS
PV - 16 48 - /PX - /5 - /S Number of digital inputs Number of digital outputs Pull-up resistors on outp.[x=KΩ] Pull-up to +5V internal S=Stack-through EXAMPLE: PV-1648 with PC-104 Non-Stack-through connector. PV-1648 - P1 - S with PC-104 Stack-through connector and 1K pull-up resistors on outputs. PRECAUTIONS TO ESD Please note, that the Micronix PV modules must be handled with respect to ESD (Electrostatic Discharge). Electrostatic Discharge to the PV modules must be avoided. Before removing the module from the protection bag, the user must be discharged using a grounded wrist ribbon.



PV-SERIES 16 DIGITAL INPUTS, 48 DIGITAL OUTPUTS

PV-SERIES 16 DIGITAL INPUTS, 48 DIGITAL OUTPUTS
Software example: /* Compiler: Borland C++ 3.1 */ #include #include /* For inportb() and outportb() */ #define BASEADDR 0x300 /* This must match with SW1 on the PV1648 */ #define OUTBYTE0 (BASEADDR+0) #define OUTBYTE1 (BASEADDR+1) #define OUTBYTE2 (BASEADDR+2) #define OUTBYTE3 (BASEADDR+3) #define OUTBYTE4 (BASEADDR+4) #define OUTBYTE5 (BASEADDR+5) #define INBYTE0 (BASEADDR+6) #define INBYTE1 (BASEADDR+7) int main (void) { unsigned char value; /* Show input 0-7 */ value = inportb (OUTBYTE0); printf ("Input 0 = %d\n", (value>>0) & 0x01); printf ("Input 1 = %d\n", (value>>1) & 0x01); printf ("Input 2 = %d\n", (value>>2) & 0x01); printf ("Input 3 = %d\n", (value>>3) & 0x01); printf ("Input 4 = %d\n", (value>>4) & 0x01); printf ("Input 5 = %d\n", (value>>5) & 0x01); printf ("Input 6 = %d\n", (value>>6) & 0x01); printf ("Input 7 = %d\n", (value>>7) & 0x01); /* Show input 8-15 */ value = inportb (OUTBYTE1); printf ("Input 8 = %d\n", (value>>0) & 0x01); printf ("Input 9 = %d\n", (value>>1) & 0x01); printf ("Input 10 = %d\n", (value>>2) & 0x01); printf ("Input 11 = %d\n", (value>>3) & 0x01); printf ("Input 12 = %d\n", (value>>4) & 0x01); printf ("Input 13 = %d\n", (value>>5) & 0x01); printf ("Input 14 = %d\n", (value>>6) & 0x01); printf ("Input 15 = %d\n", (value>>7) & 0x01); /* Examples of output operations on DO0 – DO7 */ outportb (OUTBYTE0, 0x01); /* Make /DO0 active, all others off */ outportb (OUTBYTE0, 0x02); /* Make /DO1 active, all others off */ outportb (OUTBYTE0, 0x04); /* Make /DO2 active, all others off */ outportb (OUTBYTE0, 0x08); /* Make /DO3 active, all others off */ outportb (OUTBYTE0, 0x10); /* Make /DO4 active, all others off */ outportb (OUTBYTE0, 0x20); /* Make /DO5 active, all others off */ outportb (OUTBYTE0, 0x40); /* Make /DO6 active, all others off */ outportb (OUTBYTE0, 0x80); /* Make /DO7 active, all others off */ outportb (OUTBYTE0, 0x81); /* Make /DO0 & /DO7 active, all others off */ return 0;}

PV-SERIES 16 DIGITAL INPUTS, 48 DIGITAL OUTPUTS



PV-SERIES 16 DIGITAL INPUTS, 48 DIGITAL OUTPUTS


PV-SERIES 16 DIGITAL INPUTS, 48 DIGITAL OUTPUTS


When powering inductive loads, catch diodes must be connected across the loads to protect the output transistors on the PV1648 card.
Les utilisateurs et notre équipe répondent généralement sous 24 h — et votre question servira aussi aux suivants.
Soyez le premier à poser une question — d'autres utilisateurs ou notre équipe y répondront.