C200HBAT09 Omron, C200HBAT09 Datasheet - Page 97

no-image

C200HBAT09

Manufacturer Part Number
C200HBAT09
Description
C200H REPLACEMENT BATTERY
Manufacturer
Omron
Datasheet

Specifications of C200HBAT09

Rohs Compliant
NO
Leaded Process Compatible
No
Peak Reflow Compatible (260 C)
No
Example Programs
Example 4b
Example 5
PC Program
Execution
statement
PC words are used to store the data, which consists of four characters (two
characters per word).
When the execution statement flag is set, the data is stored in DM words
0020 and 0021.
The ASCII Unit OPENs port 2 as the keyboard, and stores the entered char-
acters as a character string, A$. The character string is terminated with a car-
riage return.
Purpose:
• This example does not require a PC data transfer routine.
ASCII Unit Program:
10
20
30
Remarks:
When the PC WRITE “@...” statement is executed, the first four characters of
character string A$ are converted into ASCII code and stored in DM words
0020 and 0021.
During PC WRITE “@...” execution, the busy flag (word n+3 bit 00) is set.
Purpose:
Remarks:
In this example, the PC controls execution of the ASCII Unit by means of an
interrupt.
When the ASCII Unit ON PC GOSUB statement is executed (the PC ON
statement must be executed to enable the interrupts ) the PC can then inter-
rupt the ASCII Unit. Each interrupt generated by the PC has a unique inter-
rupt number associated with it. This number is written to the ASCII Unit Pro-
gram and causes branching to a corresponding interrupt service routine. In
the above example, the unique interrupt number is 3, causing a branch to
line 200 of the BASIC program.
OPEN #2,“KYBD:”
INPUT #2,A$
PC WRITE “@D,20,2,2A3”;A$
To use the PC WRITE statement to specify and write data to the
PC DM area
To control the ASCII Unit from the PC using the ON PC state-
ment
#0030
MOV
100
10001
WRITE flag
200
300
50
60
70
ASCII Unit Program
ON PC 3 GOSUB 200
ON PC 4 GOSUB 300
PC ON
A = 1234:RETURN
A = 2345:RETURN
Section 6-1
83

Related parts for C200HBAT09