SDKZSPF LSI, SDKZSPF Datasheet - Page 72

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3.5 Timer Support
3-18
Integral division is supported by routines in the run-time libraries. These
routines generates a non-maskable interrupt and then halt if division by
zero occurs.
In addition to the run-time library support, the header files, ctype.h and
assert.h provide support for classifying characters and for debugging
code.
In the case of I/O functions, the SDK performs file I/O by sending a
message to the program running on the host (sdbug400, zsim400,
zisim400, zdbug, zdxbug, zsimg2 or zisimg2). These messages cause
the host program to perform the requested file I/O operation. All host
programs and all zdbug targets support file I/O.
The following functions are supported by the floating-point math library,
libm.a: acos, asin, atan, atan2, ceil, cos, cosh, exp,
fabs, floor, fmod, frexp, ldexp, log10, log, modf,
sin, sinh, sqrt, tan, and tanh.
The header file timer_util.h provides support for using the system
timers. The ZSP400 and ZSPG2 architectures have two 16-bit timers,
%timer0 and %timer1. These timers are countdown timers and operate
in two modes, single-shot and auto-reload. In single-shot mode, the
timers count down and stop at 0. In auto-reload mode, the timers are
reset to the last initialized value after 0 is reached. The rate at which the
timers decrement is controlled by a prescale divisor. When the prescale
divisor is set to X, the timer is decremented once every X clock cycles.
The prescale divisor can be set to any value from 1-64. The complete
interface for using the timers is:
ZSP_timer_set(<timer>, unsigned int value)
ZSP_timer_mode(<timer>, <mode>)
ZSP_timer_prescale(<timer>, unsigned int prescale)
ZSP_timer_start(<timer>)
C Cross Compiler
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
setjmp, longjmp