s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 52

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 3: SOFTWARE DEVELOPMENT PROCEDURES
The following shows the section definition of the sample program used in the tutorial as a simple example. Since
the assembly source program "boot.s" consists of only a program code, only the .code pseudo-instruction is used.
<boot.s>
<main.c>
36
(Program explanation)
(Program explanation)
Do not use this program in actual applications because the actual applications require setting up the
trap processing vector, etc.
The main( ) function is cleared global variable i to 0 because it is used as a counter. Then an endless
loop is created by local variable j, and the sub( ) function is called repeatedly by using j as the
argument. The sub( ) function increases global variable i by one every two calls.
Boot processing is performed to initialize the stack and global pointers, and call the main function.
EPSON
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
S5U1C33000C MANUAL

Related parts for s5u1c33000c