C200HBAT09 Omron, C200HBAT09 Datasheet - Page 82

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
Assembly Language Programming
5-1
68
Memory Area
Writing an Assembly
Program
The Assembly Language
Program
Assembly Language Programming
1, 2, 3... 1.
Note When it is necessary to load or save data using a peripheral device other
Special memory space for assembly language programs must be reserved
with the MSET command. When programming in assembly language, you
cannot use the BASIC program area to store the assembly program. The
MSET command will move an existing BASIC program to another part of
memory.
There are two ways to write an assembly language program:
• By using the monitor functions
• By directly writing the program to the memory using the POKE
In most cases the first method is quicker and easier; however, the second
method can be used to create short programs consisting of only a few steps.
Assembly language programs can be written to and read from RAM using the
S and L commands, respectively. They can also be written to or read from
the EEPROM by using the SAVE and LOAD commands, respectively.
Addresses &H0000 to &H1FFF and &H8000 to &HFFFF are reserved for the
ASCII Unit operating system and must not be altered by the user.
than the input terminal connected to port 1, perform the peripheral data trans-
fer procedure as follows:
2.
3.
4.
An assembly language program can be called from BASIC with the USR
function:
USR [<number>][<argument>]
Before the USR function can be used, the DEF USR statement must be ex-
ecuted to reserve space for the assembly routine. When the USR function is
executed, it calls the specified assembly routine and passes it an argument
defined in the BASIC program. (Refer to Section 4-2-7 Special Functions. )
Variables other than the argument specified by the USR function can also be
passed to the assembly language program by using the VARPTR function.
The following arguments are passed to the assembly program:
The RTS command should be the last command of the assembly routine; it
returns execution back to the BASIC program.
The value of the stack pointer must not be altered by the assembly routine.
Therefore, the data should be pushed on the stack at the beginning of the
routine and then pulled off before the RTS command is executed.
The assembly routine must store any data needed by the BASIC program in
the same address as that of the argument(s) passed by the USR or VARPTR
functions. Any data passed back to the BASIC program must be of the same
TYPE as the USR or VARPTR function argument(s).
statement in BASIC.
Accumulator A contents:
Index register X contents:
Enter the command and key-in a carriage return.
Disconnect the input terminal from port 1 and connect the peripheral
device.
Press the START/STOP switch on the ASCII Unit to start data transfer.
Reconnect the input terminal and key-in ctrl+x.
type of <argument>
address of <argument>
Section 5-1

Related parts for C200HBAT09