Digi BL1800 user manual Programming Cable, Changing Between Program Mode and Run Mode

Page 36

3.6 Programming Cable

The programming cable is used to connect the Jackrabbit’s programming port to a PC serial COM port. The programming cable converts the RS-232 voltage levels used by the PC serial port to the TTL voltage levels used by the Rabbit 2000.

When the PROG connector on the programming cable is connected to the Jackrabbit’s programming header, programs can be downloaded and debugged over the serial interface.

The DIAG connector of the programming cable may be used on the Jackrabbit’s program- ming header with the Jackrabbit operating in the Run Mode. This allows the programming port to be used as a regular serial port.

3.6.1 Changing Between Program Mode and Run Mode

The Jackrabbit is automatically in Program Mode when the PROG connector on the pro- gramming cable is attached to the Jackrabbit, and is automatically in Run Mode when no programming cable is attached. When the Rabbit 2000 is reset, the operating mode is determined by the status of the SMODE pins. When the programming cable’s PROG connector is attached, the SMODE pins are pulled high, placing the Rabbit 2000 in the Program Mode. When the programming cable’s PROG connector is not attached, the SMODE pins are pulled low, causing the Rabbit 2000 to operate in the Run Mode.

Program Mode

Run Mode

Power

U1

GND

J1

J2

GND

 

 

J4

 

GND

VCC

 

PA0

PA1

 

PA2

PA3

 

PA4

PA5

 

PA6

PA7

U3

GND

GND

 

PB0

PB1

 

PB2

PB3

 

PB4

PB5

Rabbit 2000

PB6

PB7

 

WDO

PCLK

 

GND

PE7

 

PE6

PE5

 

PE4

PE3

 

PE2

PE1

 

PE0

GND

 

HV0

HV1

 

HV2

HV3

 

K

+RAW

 

GND

VCC

Y3

 

 

U4

 

 

RS-232

 

J5

JP1

VCC

GND

RXB

RXC

 

U5

TXB

TXC

 

PC0

PC1

 

PC2

PC3

SRAM

PC4

PC5

PC6

PC7

 

 

AD0

AGND

 

DA0

DA1

 

PD0

PD1

 

PD2

PD3

 

PD4

PD5

 

PD6

PD7

 

GND

GND

 

485–

485+

U6

VCC

VCC

SM0

SM1

 

IOBEN

STAT

RS-485

GND

VBAT

/RST

GND

 

 

RESET

U1

GND

J1

J2

GND

 

 

J4

 

GND

VCC

 

PA0

PA1

 

PA2

PA3

 

PA4

PA5

 

PA6

PA7

U3

GND

GND

 

PB0

PB1

 

PB2

PB3

 

PB4

PB5

Rabbit 2000

PB6

PB7

 

WDO

PCLK

 

GND

PE7

 

PE6

PE5

 

PE4

PE3

 

PE2

PE1

 

PE0

GND

 

HV0

HV1

 

HV2

HV3

 

K

+RAW

 

GND

VCC

Y3

 

 

U4

 

 

RS-232

 

J5

JP1

VCC

GND

RXB

RXC

 

U5

TXB

TXC

 

PC0

PC1

 

PC2

PC3

SRAM

PC4

PC5

PC6

PC7

 

 

AD0

AGND

 

DA0

DA1

 

PD0

PD1

 

PD2

PD3

 

PD4

PD5

 

PD6

PD7

 

GND

GND

 

485–

485+

U6

VCC

VCC

SM0

SM1

 

IOBEN

STAT

RS-485

GND

VBAT

/RST

GND

 

 

RESET

Colored side lines up with pin 1

J3

 

 

J3

 

 

JACKRABBIT Z-World, Inc.

 

JACKRABBIT Z-World, Inc.

 

Programming

Reset pads

Reset pads

PROG

 

 

 

 

connector

 

RESET Jackrabbit board when changing mode:

 

 

 

Short out RESET pads below header J5, OR

 

 

 

Press RESET button (if using Prototyping Board), OR

DIAG

To

 

Cycle power off/on

 

 

after removing or attaching programming cable.

 

 

 

PC COM port

 

 

 

Figure 13. Jackrabbit Program Mode and Run Mode Setup

A program “runs” in either mode, but can only be downloaded and debugged when the Jackrabbit is in the Program Mode.

Refer to the Rabbit 2000 Microprocessor User’s Manual for more information on the pro- gramming port and the programming cable.

32

Jackrabbit (BL1800)

Image 36
Contents Jackrabbit BL1800 Programmable Single-Board ComputerTrademarks Digi International IncTable of Contents Index Schematics Features IntroductionJackrabbit Features Development and Evaluation ToolsHow to Use This Manual Additional Product InformationOnline Documentation CE Compliance ImmunityEmissions Safety Design Guidelines GeneralInterfacing the Jackrabbit to Other Devices Jackrabbit BL1800 Development Kit Contents Getting StartedDevelopment Hardware Connections Board Attach Jackrabbit to Prototyping BoardConnect Programming Cable Assemble AC AdapterConnect Power Installing Dynamic C Troubleshooting Run a Sample ProgramWhere Do I Go From Here? Real-Time ClockTechnical Support Subsystems BL1800Jackrabbit Pinouts HeadersDigital Inputs/Outputs Digital InputsDigital Outputs HV3 Sourcing OutputConfigurable High-Current Output Bidirectional I/O Changing HV3 to a Sinking OutputSchematic Diagram of A/D Converter A/D ConverterJackrabbit BL1800 Schematic Diagram of D/A Converters D/A ConvertersV ⋅ 1 e RC 1 DA1Typical DA1 Voltages for Various Duty Cycles 2 DA0 Typical DA0 Voltages for Various Duty CyclesUser’s Manual Serial Communication 1 RS-2322 RS-485 Ground recommended Programming Port 485 R16User’s Manual Changing Between Program Mode and Run Mode Programming CableMemory SramFlash Eprom Other Hardware External InterruptsClock Doubler Spectrum Spreader Jackrabbit BL1800 Software Reference An Overview of Dynamic CJackrabbit BL1800 Sample Programs Jackrabbit Sample ProgramsDEMOJR1.C Sample Program DEMOJR1.CSingle-Stepping Watch Expression Break PointSummary of Features Editing the ProgramWatching Variables Dynamically User’s Manual Other Sample Programs Illustrating Digital I/O R/W pin and DB0-DB3 on 3 RS-232 Serial Communication Sample Programs 4 RS-485 Serial Communication Sample Program Cooperative Multitasking Int vswitch Advantages of Cooperative Multitasking Jackrabbit Function Calls 1 I/O DriversVoid digOutint channel, int value Void anaOutint channel, int value Void anaInint channel, int *value Serial Communication Drivers Upgrading Dynamic C Patches and Bug FixesAdd-On Modules Appendix A. Specifications Electrical and Mechanical Specifications Figure A-1shows the mechanical dimensions for the JackrabbitTable A-1. Jackrabbit Board Specifications Exclusion Zone Exclusion ZonesFigure A-3. User Board Footprint for Jackrabbit Jumper Configurations Figure A-4. Location of Jackrabbit Configurable PositionsTable A-2. Jackrabbit Jumper Configurations Conformal Coating Conformally coated areaUse of Rabbit 2000 Parallel Ports JackrabbitTable A-3. Jackrabbit Pinout Configurations PD0 PD1 Jackrabbit BL1800 Appendix B. Prototyping Board Jackrabbit Connectors User LEDs Buzzer Prototyping Board OverviewPrototyping Board Features Mechanical Dimensions and Layout Top SideUsing the Prototyping Board Top SideDemonstration Board RelayExisting Prototyping Board Top SidePE0 VCC HV0 SM1 SM0 HV2 Stat Jackrabbit BL1800 Appendix C. Power Management Power SuppliesDcin Current mA Batteries and External Battery Connections 950 mA·h = 5.4 years 20 µABattery Backup Circuit Figure C-5shows the Jackrabbit battery backup circuitryPower to Vram Switch Reset GeneratorFigure C-7shows a schematic of the chip select circuit Chip Select CircuitJackrabbit BL1800 Index SMODE0 SMODE1RABDB01.C RABDB02.C Schematics