09.01.2013 Views

EA eDIP128-6 compiler help - Electronic Assembly

EA eDIP128-6 compiler help - Electronic Assembly

EA eDIP128-6 compiler help - Electronic Assembly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36<br />

5.12 I/O-Ports<br />

<strong>EA</strong> <strong>eDIP128</strong>-6 <strong>compiler</strong> <strong>help</strong><br />

Input-ports:<br />

Read input port #YR n1 n1=0: Read all input ports as binary value (to<br />

sendbuffer)<br />

n1=1..8: Read input port (1=H-level=VDD, 0=Llevel=0V)<br />

Port scan on/off #YA n1 The automatic scan of the input port is<br />

n1=0: deactivated<br />

n1=1: activated<br />

Invert input port #YI n1 The input port is<br />

n1=0: evaluated normal<br />

n1=1: evaluated inverted<br />

Redefine input bitmacro #YD n1,n2,n3 n1=1..8: input port<br />

n2=0: falling-edge or n2=1: rising-edge<br />

n3=0..255: new BitMacro number<br />

(see How-to-use example Port Macro - BEGINNER 82 )<br />

(see How-to-use example Bit Macro - BEGINNER 80<br />

)<br />

Output-ports:<br />

Define output port #YM n1 n1=0: IN1..8 set to input (=default after power-on /<br />

reset)<br />

n1=1..8: n1 I/O-lines will be set to output (beginning<br />

at OUT1 upwards)<br />

Write output port #YW n1,n2 n1=0: Set all defined output ports in accordance with<br />

n2<br />

(=binary value)<br />

n1=1..8: Reset output port n1 (n2=0); set (n2=1);<br />

invert (n2=2)<br />

Additional Outputs:<br />

Write extended ports<br />

(with 74HC4094)<br />

#YE n1,n2,n3 write from output port n1=0..255 to port n2=0..255<br />

n3=0 Reset ports<br />

n3=1 Set ports<br />

n3=2 Invert ports<br />

(I/O-lines OUT1..OUT3 must be set to output: #YM<br />

3)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!