Using analog inputs, Application programs, J3 and j7 pin out table – Remote Processing RPC-210 User Manual

Page 33

Advertising
background image

DIGITAL LINES

BASIC

SECTION 6

Page 6-5

LINEB,0A307H,1

Inputs are rea d as follows:

A = LINEB(0A400H) .AND. 0F0H

USING ANALOG INPUTS

Analog inputs may be used as digital inputs only.
Simply do an AIN(n) on the appropriate channel. Any
value above 2048 may be considered a ‘1' .

APPLICATION PROGRAMS

The following application program is in the BASIC 52
directory.

F i le n am e

Description

210_MULT.BAS

O N C O U N T a nd O N L IN E
multi-tasking program

J3 and J7 PIN OUT TABLE

J3 pin out and alternate function, if any, is below.

J3 pin

No.

Description

Alternate Function

1

Port B, bit 4

2

+ 5V

3

Port B, bit 5

4

Port B, bit 2

5

Port B, bit 6

6

Port B, bit 3

7

Port B, bit 7

8

Port B, bit 1

9

Port C , bit 7

10

Port B, bit 0

11

Port C , bit 5

12

Port C , bit 6

13

Port C , bit 0

14

Port C , bit 4

15

Port C , bit 2

16

Port C , bit 1

17

Port C , bit 3

18

Port A , bit 7

Display ‘E2' line

19

Port A , bit 0

Displa y data D B4

20

Port A , bit 6

Display ‘E’ line

21

Port A , bit 1

Displa y data D B5

22

Port A , bit 5

R / W

23

Port A , bit 2

Displa y data D B6

24

Port A , bit 4

Register/data select

25

Port A , bit 3

Displa y data D B 7

26

Ground

Advertising