C Control The I Unit-M Advanced 5 Vdc Inputs / outputs 16 x digital I/Os / 8 x analogue or digital I/Os Program memory 2 198805 Datenbogen

Produktcode
198805
Seite von 42
Interface and the ports can not be used freely any more. 
 
RF INTERFACE (PORT 2 and 3) 
Any usage of the RF Functions (see chapter RF OBJECT) will occupy this ports to work as special coded RF  
Interface and the ports can not be used freely any more. 
 
 
EXTENDED PORTS 
 
The Extended Ports are not really property of the Unit M 2.0 but they are treated this way by the Operating 
System. Therefore a connected IIC-Bus PCF8574 Digital Ports circuit can be accessed in the same simple 
way as the standard ports. See Chapter INSTRUCTION AND KEYWORDS for informations on read and 
write a port.  
 
define MyBitPort17                 as PORT[17] 
define MyBytePort4        as BYTEPORT[4] 
 
 
 
 
 
You can use the Extended Ports if a PCF8574 is connected to the IIC-BUS. For this case you may not use 
the IIC-BUS Object, because the PCF8574 is fully supported by the Operating System This integrated circuit 
provides you 8 I/O Ports. The port index (or port number) depends on the address given to the PCF8574  
The address consists of a 4 bit fixed and 3 bit user selectable address space. The LSB defines as for I²C-
Bus devices usual the read/write action. Removing a jumper will cause the corrsponding address bit to be HI. 
 
0   1   0   0   x   x   x   0           
I--------------I------------I----I 
FIX ADR       ADR    R/W 
 
0   1   0   0   x   x   x   1             
I--------------I------------I----I 
FIX ADR       ADR    R/W 
 
 
 
 
READ- Operation, LSB HI                                               WRITE- Operation, LSB LO 
The table shows the relation between address and port assignment 
  
PCF 8574    ADR 0      Ports 17 - 24          BYTEPORT 3 
PCF 8574    ADR 1      Ports 25 - 32          BYTEPORT 4 
PCF 8574    ADR 2      Ports 33 - 40          BYTEPORT 5 
PCF 8574    ADR 3      Ports 41 - 48 
    BYTEPORT 6 
PCF 8574    ADR 4      Ports 49 - 56  
    BYTEPORT 7 
PCF 8574    ADR 5      Ports 57 - 64  
    BYTEPORT 8 
PCF 8574    ADR 6      Ports 65 - 72  
    BYTEPORT 9 
PCF 8574    ADR 7      Ports 73 - 80  
    BYTEPORT 10 
 
PCF 8574A  ADR 0      Ports 81 - 88       BYTEPORT 11 
PCF 8574A  ADR 1      Ports 89 - 96       BYTEPORT 12 
PCF 8574A  ADR 2      Ports 97 - 104       BYTEPORT 13 
PCF 8574A  ADR 3      Ports 105 - 112     BYTEPORT 14 
PCF 8574A  ADR 4      Ports 113 - 120     BYTEPORT 15 
PCF 8574A  ADR 5      Ports 121 - 128     BYTEPORT 16 
PCF 8574A  ADR 6      Ports 129 - 136     BYTEPORT 17 
PCF 8574A  ADR 7      Ports 137 - 144     BYTEPORT 18 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Using the IIC-BUS the LCD always has to be initialised even it is not used: 
 LCD.INIT 
 LCD.OFF 
  
 
 
9