20-668-0003 Rabbit Semiconductor, 20-668-0003 Datasheet - Page 176

IC CPU RABBIT2000 30MHZ 100PQFP

20-668-0003

Manufacturer Part Number
20-668-0003
Description
IC CPU RABBIT2000 30MHZ 100PQFP
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-668-0003

Processor Type
Rabbit 2000 8-Bit
Speed
30MHz
Voltage
2.7V, 3V, 3.3V, 5V
Mounting Type
Surface Mount
Package / Case
100-MQFP, 100-PQFP
Data Bus Width
8 bit
Maximum Clock Frequency
30 MHz
Operating Supply Voltage
0 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
40
Number Of Timers
8 & 10 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Features
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
20-668-0003
316-1062

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
20-668-0003
Manufacturer:
Rabbit Semiconductor
Quantity:
10 000
17.2 Reading and Writing I/O Registers
The Rabbit has two I/O spaces: internal I/O registers and external I/O registers.
17.2.1 Using Assembly Language
The fastest way to read and write I/O registers in Dynamic C is to use a short segment of
assembly language inserted in the C program. Access is the same as for accessing data
memory except that the instruction is preceded by a prefix (
internal or external I/O space.For example.
In the example above the
I/O port. The prefix
17.2.2 Using Library Functions
Dynamic C functions are available to read and write I/O registers. These functions are pro-
vided for convenience. For speed, assembly code is recommended. For a complete
description of the functions noted in this section, refer to the Dynamic C User’s Manual
or from the
options.
To read internal I/O registers, there are two functions.
To write internal I/O registers, there are two functions.
The external registers are also accessible with Dynamic C functions.
In order to read a port the following code could be used:
170
// compute value and write to Port A Data Register
value=x+y
#asm
ld a,(value)
ioi ld (PADR),a
#endasm
int RdPortI(int PORT)
int BitRdPortI(int PORT, int bitcode); // bit code 0-7
void WrPortI(int PORT, char *PORTShadow, int value);
void BitWrPortI(int PORT, char *PORTShadow, int value, int bitcode);
int RdPortE(int PORT)
int BitRdPortE(int PORT, int bitcode); // bit code 0-7
int WrPortE(int PORT, char *PORTShadow, int value);
int BitWrPortE(int PORT, char *PORTShadow, int value, int bitcode);
k=RdPortI(PADR); // returns Port A Data Register
Help
menu in Dynamic C, access the
ioe
is used for writes to external I/O ports.
; value to write
; write value to PADR
ioi
prefix changes a store to memory to a store to an internal
; // returns PORT, high byte zero
; // returns PORT, high byte zero
HTML Function Reference
Rabbit 2000 Microprocessor User’s Manual
ioi
or
ioe
) to indicate the
or
Function Lookup

Related parts for 20-668-0003