45111 Parallax Inc, 45111 Datasheet - Page 87

MANUAL FOR SX-KEY/BLITZ VER. 2.0

45111

Manufacturer Part Number
45111
Description
MANUAL FOR SX-KEY/BLITZ VER. 2.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 45111

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Parallax microcontroller
For Use With
70002PAR - GUIDE PROG THE SX MICRO -DAUBACH
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
10 SX Special Features and Coding Tips
10.1 Introduction
The SX chip offers many configurable features. This chapter explains how to use many of these features,
offers coding tips and demonstrates most topics with sample code. All examples are written for the
SX20/28 chips and may need modification for SX48/52 chips.
10.2 Port Configuration and Usage
There are many configuration options for each of the ports on the SX chip as shown in Table 19 – Port
Configuration Options, below. The following sections explain how to use the various port
configuration options.
To set these functions, a special form of the MOV instruction, called the port configuration instruction,
is used to modify the port configuration registers. The syntax of this instruction is:
By default, the port configuration instruction writes to the port direction registers, called the tristate
registers. To write to other registers, the MODE register must be preset with a specific value. Table 20 –
MODE Register Settings lists these values. See chapter 15.4.1 – MODE Register for more information.
MOV
* Port C not available on SX20, Port D and E only available on SX48/52 devices.
Schmitt-Trigger
Edge-Interrupts
Input/Output
CMOS/TTL
Comparator
Pull-Ups
!port, src
Type
Table 19 - Port Configuration Options
10 SX Special Features and Coding Tips
Port A
X
X
X
Three Pins
Port B
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 87
X
X
X
X
X
Port C*
X
X
X
X
Port D*
X
X
X
X
Port E*
X
X
X
X

Related parts for 45111