Você está na página 1de 64

kitCON-541

Hardware-Manual

Edition April 1999

A product of a PHYTEC Technology Holding company


kitCON-541

In this manual are descriptions for copyrighted products which are not explicitly
indicated as such. The absence of the trademark () symbol does not infer that a
product is not protected. Additionally, registered patents and trademarks are
similarly not expressly indicated in this manual

The information in this document has been carefully checked and is believed to be
entirely reliable. However, PHYTEC Meßtechnik GmbH assumes no responsibi-
lity for any inaccuracies. PHYTEC Meßtechnik GmbH neither gives any guarantee
nor accepts any liability whatsoever for consequential damages resulting from the
use of this manual or its associated product. PHYTEC Meßtechnik GmbH
reserves the right to alter the information contained herein without prior
notification and accepts no responsibility for any damages which might result.

Additionally, PHYTEC Meßtechnik GmbH offers no guarantee nor accepts any


liability for damages arising from the improper usage or improper installation of
the hardware or software. PHYTEC Meßtechnik GmbH further reserves the right
to alter the layout and/or design of the hardware without prior notification and
accepts no liability for doing so.

 Copyright 2000 PHYTEC Meßtechnik GmbH, D-55129 Mainz. Rights -


including those of translation, reprint, broadcast, photomechanical or similar
reproduction and storage or processing in computer systems, in whole or in part -
are reserved. No reproduction may occur without the express written consent from
PHYTEC Meßtechnik GmbH.

EUROPE NORTH AMERICA


Address: PHYTEC Technologie Holding AG PHYTEC America LLC
Robert-Koch-Str. 39 255 Ericksen Avenue NE
D-55129 Mainz Bainbridge Island, WA 98110
GERMANY USA
Ordering +49 (800) 0749832 +1 (800) 278-9913
Information: order@phytec.de info@phytec.com

Technical +49 (6131) 9221-31 +1 (800) 278-9913


Support: support@phytec.de support@phytec.com

Fax: +49 (6131) 9221-33 +1 (206) 780-9135


Web Site: http://www.phytec.de http://www.phytec.com

2nd Edition: April 1999

 PHYTEC Meßtechnik GmbH 2000 L-314e_2


Contents / Table of figures

Preface ...........................................................................................................1
1 Introduction to the kitCON-541.........................................................3
1.1 Block Diagram..............................................................................5
1.2 View of the kitCON-541 ..............................................................6
2 Quickstart Instructions .......................................................................7
2.1 Starting the kitCON using a Monitor Program.............................8
2.2 Starting the kitCON and programming the Flash .......................11
3 Pin-Layout..........................................................................................15
3.1 The kitCON-Connector ..............................................................16
3.2 The ICE/connect-51....................................................................17
3.3 The DB9-socket P1.....................................................................18
3.4 The USB-socket P3.....................................................................18
3.5 The power connector P2 .............................................................19
3.6 The VG96-connector VG1 .........................................................20
4 Jumper................................................................................................21
4.1 Special Features JP1 ..................................................................23
4.2 Battery Buffer of U11 JP5 .........................................................23
4.3 Connecting the Watchdog-Unit JP6 ..........................................24
4.4 Oscillator circuit JP9, JP10........................................................24
4.5 Bootjumper JP11 .......................................................................25
4.6 Power Source JP12 ....................................................................25
4.7 USB-detection in bus-powered mode.........................................26
4.8 USB-Full speed / Low speed configuration JP16, JP17 ............26
4.9 Oscillator circuit of the UART J1, J2 ........................................27
5 Memory Model...................................................................................29
5.1 Control Register 1.......................................................................31
5.2 Address Register.........................................................................37
5.3 Mask Register .............................................................................38
6 Flash-Memory....................................................................................41
7 The Battery Buffer ............................................................................42
8 The Serial Interface...........................................................................43
9 The USB Interface .............................................................................45
10 Technical Specifications....................................................................47
11 Hints for Handling the Module ........................................................49
12 FlashTools ..........................................................................................51
12.1 Starting the FlashTools ...............................................................52
12.2 Downloading into the Flash........................................................55
12.3 Downloading to RAM ................................................................56
Index ............................................................................................................57
Appendix: Circuit Diagram

 PHYTEC Meßtechnik GmbH 2000 L-314e_2


kitCON-541

Index of figures and tables

Figure 1: Block Diagram ........................................................................... 5


Figure 2: View of the kitCON-541 (Component Side).............................. 6
Figure 3: Connecting the power supply to X1 ........................................... 7
Figure 4: Important Jumpers and Connectors for starting ......................... 8
Figure 5: The initial screen of the FlashTools ......................................... 12
Figure 6: Position of the Connectors ....................................................... 15
Figure 7: Pinout of the DB9-socket P1 (front view)................................ 18
Figure 8: Pinout of the USB-socket P3 ( front view) .............................. 18
Figure 9: Pinout of the power connector P2 ( front view)....................... 19
Figure 10: Numbering of the VG96-connector VG1 (front view) ............ 20
Figure 11: Numbering of the jumper-pads ................................................ 21
Figure 12: Location of the Jumper (component side)................................ 21
Figure 13: Default-Memory Model after Hardware-Reset ........................ 30
Figure 14: Memory Model for Flash-Programming .................................. 32
Figure 15: Partitioning of the I/O-Area ..................................................... 33
Figure 16: Example of a Memory Model .................................................. 40
Figure 17: Pinout of the USB-socket P3 ( front view) .............................. 45
Figure 18: Physical Dimensions ................................................................ 47
Figure 19: The initial screen of the FlashTools ......................................... 54

Table 1: Pinout of thekitCON-Connector X3......................................... 16


Table 2: Pinout of the ICE/connect-51 X2 ............................................. 17
Table 3 Pinout of the VG96-connector VG1 ........................................ 20
Table 4: Jumper Settings ........................................................................ 22
Table 5: Registers of the external UART ............................................... 43

 PHYTEC Meßtechnik GmbH 2000 L-314e_2


Preface

Preface

This kitCON-541 User’s Manual describes the board’s design and


functions. Precise specifications for the C540U/C541U microcon-
trollers can be found in the enclosed microcontroller Data-
Sheet/User’s Manual. If software is included please also refer to
additional documentation for this software.

In this hardware manual and in the attached schematics, low active


signals are denoted by a "/" in front of the signal name (i.e.: /RD). A
"0" indicates a logic-zero or low-level signal, while a "1" represents a
logic-one or high-level signal.

Declaration regarding EMV-Conformity of the


PHYTEC kitCON-541

PHYTEC kitCON Single Board Computers (henceforth „products“)


are designed for installation in electrical appliances or as dedicated
Evaluation Boards (i.e.: for use as a test and prototype platform for
hardware/software development) in laboratory environments.

PHYTEC products must be operated within protective, grounded


circuitry. Moreover, PHYTEC products should not be operated
without protection circuitry if connections to the products’ pin header
rows are longer than 3 m.

Implementation of PHYTEC products into target devices, as well as


user modifications and extensions of PHYTEC products, is subject to
renewed establishment of conformity to, and certification of, EMV-
Statutes. Only after doing so the devices are allowed to be put into
circulation.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 1


kitCON-541

PHYTEC products fulfill the norms of the EMVG-statute only in


accordance to the descriptions and rules of usage indicated in this
hardware manual (particularly in respect to the pin header row
connectors, power connector and serial interface to a host-PC).
It is necessary that only appropriately trained personnel (such as
electricians) handle and/or operate these products. PHYTEC products
lacking protective enclosures are furthermore subject to damage by
ESD and, hence, may only be unpacked, handled, operated in
environments in which sufficient precautionary measures have been
taken in respect to ESD-dangers.

The kitCON-541 is one of a series of PHYTEC kitCONs which can


be fitted with different controllers and, hence, offers various functions
and configurations. PHYTEC supports all common Infineon’s 8- and
16-bit controllers in two ways:
(1) as the basis for Starter Kits in which user-designed hardware
can be implemented on a wrap-field around the controller and

(2) as universal, insert-ready, fully functional micro- and mini-


MODULS which can be embedded directly into the user's
peripheral hardware design.

PHYTEC's microcontroller modules allow engineers to shorten devel-


opment horizons, reduce design costs and speed project concepts from
design to market. Please contact PHYTEC for additional information:
EUROPE NORTH AMERICA
Address: PHYTEC Technologie PHYTEC America LLC
Holding AG 255 Ericksen Avenue NE
Robert-Koch-Str. 39 Bainbridge Island, WA 98110
D-55129 Mainz USA
GERMANY
Web Site: http://www.phytec.de http://www.phytec.com
e-mail: info@phytec.de info@phytec.com
Voice: +49 (6131) 9221-0 +1 (800) 278-9913
Fax: +49 (6131) 9221-33 +1 (206) 780-9135

2  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Introduction to the kitCON-541

1 Introduction to the kitCON-541

The kitCON-541 is a EURO-sized (100 x 160 mm) Evaluation Board.


It can be fitted with the single-chip microcontrollers C540U/C541U
in a P-LCC-44 package. The C540U/C541U are members of the
INFINEON C500 family of 8-bit microcontrollers. They are fully
compatible to the standard 80C51 architecture. The C540U/C541U
especially provide an on-chip USB module compliant to the USB
specification. Hence it is possible to connect the kitCON-541 directly
to the USB bus.

Precise specifications for the controllers characteristics can be found


in the enclosed microcontroller manual. The kitCON-541 hardware
manual describes no special features of the C540U/C541U
controllers, as they are not relevant to the basic functioning of this
module.

The kitCON-541 is pre-configured and equipped with all necessary


connectors required for immediate start-up (refer to Figure 2).

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 3


kitCON-541

The kitCON-541 offers the following features:

• Evaluation Board in EURO-card format 160 x 100 mm, including


wrap-field (90 x 55mm) for easy layout of user circuitry
• Improved interference safety through multi-layer technology
• Requires single unregulated 8V= to 12 V=/500mA power source
via jack plug, 5V=/500mA regulated via 5¼"-Floppy power
connector or USB-bus
• 128KB Flash on-board (PLCC-package)(optionally expandable to
up to 512MB) 1
• on-board Flash-programming
• No need for a dedicated programming voltage through use of
5V-Flash-devices
• 64KByte RAM on-board
• All controller ports, as well as data and address lines, are extended
from the controller to the pins of the kitCON-Connector in the
middle of the board
• Flexible software-configured address decoding through complex
logic device
• Bank latches for Flash integrated in address decoder
• RS-232 serial interface, available at DB9-socket P1
• USB-interface, may be configured as full speed or low speed
device
• Two free chip-select signals for simple I/O connections to exter-
nal peripherals
• Provision for operating the board with an ICE/connect-51 for easy
emulation of the controller

1: For more information about additional configurations see the PHYTEC product catalog

4  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Introduction to the kitCON-541

1.1 Block Diagram


opt.
BATTERY I
FLASH RAM RAM c
( 128 / 512 KB) opt. e
32 KB 32 KB -
C
o
Cntrl / Addr Cntrl / Addr n
Data Data n
e
P2 / Cntrl c
P0 Latch t
Decoder
o
r

INFINEON
digital I/O-Ports k
C540U/ i
analog I-Ports
C541U t
Cntrl/Addr C
RS232 O
Data UART
Treiber N
-
USB C
o
n
n
e
c
t
o
Reset/ USB-socket DB9-socket r
Watchdog S1 P3 P1

Figure 1: Block Diagram

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 5


kitCON-541

1.2 View of the kitCON-541

Figure 2: View of the kitCON-541 (Component Side)

6  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Quickstart Instructions

2 Quickstart Instructions

In this chapter you will find a step by step description for putting the
kitCON-541 into operation. Please note that the following instructions
refer to the current versions of the FlashTools and the monitor-
program from Keil Elektronik GmbH as of the pressing of this
manual.

To ensure putting the kitCON-541 quick and safe into operation, the
use of the PC-software is described only for DOS. Using it in
conjunction with other operating systems or environments might
cause disturbances of the proceeding, especially of the serial commu-
nication.

The kitCON-541 is delivered with a pre-programmed Flash-memory


device. It contains routines for programming the Flash (the so called
FlashTools1) as well as a monitor program2 for easy debugging of
your application. This chapter contains a step by step description for
the use of the FlashTools as well as for using the monitor program.
Here the monitor program from Keil Elektronik GmbH is used as an
example. Monitor programs from other vendors are also available for
use with the kitCON-541.
polatity: - +
+8..12VDC center hole
2,0mm 5,5mm
500mA

GND

Figure 3: Connecting the power supply to X1

1: A firmware allowing convenient on-board Flash-programming, at purchase of the module


including a Flash device this software is already installed in the Flash device.
2: The monitor program is only available on modules, purchased from Infineon

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 7


kitCON-541

1
5

13

21

29

37

45

53

61

69

77

85

93

101

109

117

125

133

141

149

Insertable Jumper

Figure 4: Important Jumpers and Connectors for starting

2.1 Starting the kitCON using a Monitor Program1


• Use of a Monitor requires a kitCON-541 with a pre-programmed
Flash device mounted on U7 and an IBM-PC or a compatible
system, as well as an unregulated power supply for 8V= - 12V=
/500mA. Typically all jumpers for configuring the kitCON-541
have been set correctly upon delivery of the module.

• Connect your Host-PC (COM1 or COM2) to the DB9-socket P1


on the kitCON-541 using a serial cable as shown below.

PC DB9-plug COM1,2 kitCON-541 DB9-socket P1


RxD PIN 2 to TxD PIN 2
TxD PIN 3 to RxD PIN 3
GND PIN 5 to GND PIN 5

1: The monitor program is only available on modules, purchased from Infineon

8  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Quickstart Instructions

No Hardware-Handshake-Line is required to invoke communication


between the kitCON-541 and the Host-PC, as the firmware contains a
transmission protocol to ensure fault-free data transmission between
the PC and the kitCON-541.

• Ensure that the red Boot-Jumper JP11 - which is located between


the USB interface P3 and the power connector X1 - is open.

The monitor program is not protected and can be erased or


overwritten with the FlashTools at any time. Therefore always ensure
that the red jumper JP11 is open, as long as you want to use the
monitor program

• Attach a power supply to the power-connector X1. An unregulated


8V= to 12V=/500mA power source can be used to supply the
board. Double check the correct polarity of the plug as shown in
Figure 3. Use only a fixed voltage power supply and no power
supply with variable voltage. If the power supply is attached
correctly the red LED 1 will shine.

• Push switch S1 to perform a reset. After releasing the reset button


S1 the monitor program on the kitCON-541 will be started.

• Invoke the Terminal program MON51.EXE on your Host-PC by


entering the following:

mon51 BR19200 [COM port number]

Other communication or terminal programs are not suitable for data


transmission to and from the monitor program on the kitCON-541, as
a special transmission protocol is required. Ensure that only DOS is
active at the time of the invocation.

• After a successful start of MON51.EXE the program will appear


with ’MONITOR-Mode’ and a ’#’ as prompt.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 9


kitCON-541

• Enter ’load Pathname\hello541.mon’ in order to load the demo


program.

• Once downloading has finished and the ’#’ prompt reappears, enter
the command ’g0’ to execute the demo program. Successful execu-
tion results in the message ’Hello World !’ which appears on the
screen of the Host-PC.

A monitor program usually runs within von-Neumann memory.


Therefore ensure to separate the XDATA and CODE-area when
linking your application.

• To leave the Monitorprogram press ’F1’

Quickstart Instructions for using a Monitor program - Summary

• Connect the kitCON-541 with an IBM-PC or a compatible system


using a serial cable (P1 to COM1 or COM2).
• Open red jumper JP11
• Attach an unregulated power supply with 8V= to 12V=/500mA to
X1 on the kitCON-541. Double check the correct polarity.
• Press switch ’S1’ to perform a RESET
• Start MON51.EXE on your Host- PC (mon51 BR19200 [2 (for
COM2)]) from the DOS environment
• After the ’#’ prompt appeared enter ’load Pathname\hello541.mon’
• Press ’ENTER’
• After the ’#’ prompt reappeared enter ’g0’
• Press ’ENTER’

’’Hello World !" appears on the screen of your Host-PC.

• To leave the monitor program press ’F1’

10  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Quickstart Instructions

2.2 Starting the kitCON and programming the Flash


At the time of delivery the Flash device is pre-programmed with a
monitor program1. This program is not protected, unlike the
FlashTools, and will be overwritten when the following steps are
carried out.

• Use of the Flash requires a kitCON-541 with a pre-programmed


Flash device mounted on U7 and an IBM-PC or a compatible
system, as well as an unregulated power supply for 8V= - 12V=
/500mA. Typically all jumpers for configuring the kitCON-541
have been set correctly upon delivery of the module.

• Connect your Host-PC (COM1 or COM2) to the DB9-socket P1


on the kitCON-541 using a serial cable as shown below.

PC DB9-plug COM1,2 kitCON-541 DB9-socket P1


RxD PIN 2 to TxD PIN 2
TxD PIN 3 to RxD PIN 3
GND PIN 5 to GND PIN 5

No Hardware-Handshake-Line is required to invoke


communication between the kitCON-541 and the Host-PC, as the
firmware contains a transmission protocol to ensure fault-free data
transmission between the PC and the kitCON-541.

• Ensure that the red Boot-Jumper JP11 - which is located between


the USB interface P3 and the power connector X1 - is closed.

• Attach a power supply to the power-connector X1. An unregulated


8V= to 12V=/500mA power source can be used to supply the
board. Double check the correct polarity of the plug as shown in
Figure 3. Use only a fixed voltage power supply and no power
supply with variable voltage. If the power supply is attached
correctly the red LED 1 will shine.

1: The monitor program is only available on modules, purchased from Infineon

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 11


kitCON-541

• Push switch S1 to perform a reset. This way the FlashTools on the


kitCON-541 will be started.

• Invoke the program FLASHT.EXE on your Host-PC by entering


the following:

flasht BR19200 [COM port number]

Other communication or terminal programs are not suitable for


data transmission to and from the FlashTools on the kitCON-541, as a
special transmission protocol is required. Ensure that only DOS is
active at the time of the invocation.

• After successfully starting FLASHT.EXE the main menu of the


FlashTools will appear on the screen of the Host-PC (refer to
Figure 5). In the main-menu you can choose either to program the
Flash with an application or to download the application into the
external RAM. Please select menu option ’1’ - ’Program FLASH’.

=====================================================================
=
FLASH/RAM-Download-Utility for Altera based modul V2.17
=====================================================================
=
(c) 1996, PHYTEC Meßtechnik GmbH, D-55129 Mainz

(1) Program FLASH


(2) Program RAM

> Command:

Figure 5: The initial screen of the FlashTools

12  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Quickstart Instructions

• All FlashTools menu options are intuitive. Select menu option ’5’,
’Erase and Load’. Confirm that the unprotected sectors (i.e. the sec-
tors available for user-applications) of the Flash can be erased by
entering "Y".

• Following erasure of the unprotected Flash sectors, the next menu


will automatically appear on the monitor screen of the Host-PC.
Press ’F2’ to indicate the name of the Hex-Files to be downloaded
into the Flash ( Specify the full pathname). To download the demo
program enter ’Pathname\HELLO541.HEX’. Press ’Enter’ to start
the download.

Downloading is complete once the FlashTools menu reappears.

• Disconnect the board’s power supply and open the red Bootjumper
JP11.

• Reattach the board to the power source.

• The downloaded application will now be executed. The output of


the program can be viewed on the monitor of the attached host-PC
if the correct baudrate was specified for the serial interface of the
kitCON-541 upon invoking the FlashTools.

When using the demo program HELLO541.HEX "Hello


World!" will be printed on the screen of the Host-PC.

• To leave the FlashTools press ’F1’

If any difficulties should occur during start-up, please contact


the PHYTEC Technical Support hotline at +49 (6131) 9221-31

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 13


kitCON-541

Quickstart Instructions for Flashprogramming - Summary

• Connect the kitCON-541 to an IBM-PC or a compatible system us-


ing a serial cable (P1 to COM1 or COM2).
• Close red Jumper JP11
• Attach an unregulated power supply with 8V= to 12V=/500mA to
X1 on the kitCON-541. Double check the correct polarity.
• Press switch ’S1’ to perform a reset
• Invoke FLASHT.EXE on your Host-PC (flasht BR19200 [2 (for
COM2)])
• Select menu option ’1’
• Select menu option ’5’
• Press ’Y’ to confirm ’Erase’
• Press ’F2’
• Enter ’Pathname\HELLO541.HEX ’
• Press ’ENTER’
• Wait until the Menu reappears
• Disconnect power supply
• Remove red Jumper JP11
• Reattach power supply
’’Hello World !" appears on the screen of your Host-PC.

• To leave the FlashTools press ’F1’

14  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Pin Layout

3 Pin-Layout

Please note that all module connections are not to exceed their ex-
pressed maximum voltage or current. Maximum input values are indi-
cated in the corresponding controller manuals. As damage from
improper connections varies according to use and application, it is the
user’s responsibility to take appropriate safety measures to ensure that
the module connections are protected from overloading through
connected peripherals.

As shown in Figure 6, all relevant controller signals are brought out


to the pin-rows ( X3 ) in the middle of the board. Some of the signals
are also available at the VG-96 connector VG1. The kitCON-541 is
also prepared to accommodate an ICE/connect-51 at X2. This special
connector enables easy emulation of the processor. The following
section provides an overview of the pin assignment of the pin-rows
(kitCON-Connector), while the ICE/connect-51 is described in
section 3.2. Sections 3.3 and 3.4 describe the pinout of the DB9-
connector P1 and the USB-socket P3, whereas the VG-96 connector is
descibed in section 3.6.
1
5

13

21

29

37

45

53

61

69

77

85

93

101

109

117

125

133

141

149

Figure 6: Position of the Connectors

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 15


kitCON-541

3.1 The kitCON-Connector


PIN 1 2 3 4
Supply Voltage VCC VCC GND GND
5 6 7 8
Data-Bus D0 D2 D4 D6
9 10 11 12
D1 D3 D5 D7
13 14 15 16

17 18 19 20

21 22 23 24
Address-Bus A0 A2 A4 A6
25 26 27 28
A1 A3 A5 A7
29 30 31 32
A8 A10 A12 A14
33 34 35 36
A9 A11 A13 A15
37 38 39 40

41 42 43 44

45 46 47 48
Control-Signals /RD /PSEN RES /RES
49 50 51 52
/WR ALE /EA MDIS
53 54 55 56
/CS1 /CS3
57 58 59 60
/CS2
61 62 63 64
Special Purpose P3.2 / INT0
65 66 67 68

69 70 71 72
Analog Input
73 74 75 76

77 78 79 80

81 82 83 84

85 86 87 88
Digital-Port P1 P1.0, LED 0 P1.2, SCLK P1.4, STO
89 90 91 92
P1.1, LED 1 P1.3, SRI P1.5, /SLS
93 94 95 96
Digital-Port P3 P3.0, LED 2 P3.2, /INT0 P3.4, T0 P3.6, /WR
97 98 99 100
P3.1, DADD P3.3, /INT1 P3.5, T1 P3.7, /RD
101 102 103 104

105 106 107 108

109 110 111 112

113 114 115 116

117 118 119 120

121 122 123 124

125 126 127 128

129 130 131 132

133 134 135 136

137 138 139 140

141 142 143 144

145 146 147 148

149 150 151 152


Supply Voltage VCC VCC GND GND

Table 1: Pinout of the kitCON-Connector X3

16  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Pin Layout

3.2 The ICE/connect-51


The ICE/connect-51 provides an easy possibility for connecting a
standard emulator, which uses the controller on-board, to the
kitCON-541. It can be mounted at position X2 (refer to Figure 6). It
carries all data- and address signals. The control signals coming from
the controller are extended via pre-connections at the ICE/connect-51
to the peripheral devices. When using an emulator the control signals
are generated by the emulator. Therefore in this case the pre-
connections must be opened.

The following table shows the pinout of the ICE/connect-51.

1 GND D0 2
3 D1 D2 4
5 D3 D4 6
7 D5 D6 8
9 D7 GND 10
11 A8 A9 12
13 A10 A11 14
15 A12 VCC 16
17 A13 A14 18
19 A15 GND 20
21 PSEN_P PSEN_U 22
23 /RD_P /RD_U 24
25 /WR_P /WR_U 26
27 RESET_P RESET_U 28
29 GND ALE 30
Table 2: Pinout of the ICE/connect-51 X2
Please note, pins 21+22, 23+24, 25+26 and 27+28 are pre-connected
on the component side. When using an ICE/connect-51 this pre-
connections have to be opened.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 17


kitCON-541

3.3 The DB9-socket P1


The DB9-socket P1 carries the RS-232 signals. The following figure
shows the pinout.

DB9-socket P1
1
6
2 Pin 2: TXD0
7
3
8 Pin 3: RXD0
4
5
9 Pin 5: GND

Figure 7: Pinout of the DB9-socket P1 (front view)

3.4 The USB-socket P3


The USB-socket P3 carries the USB-signals. The pinout for the USB-
interface is shown in the following.

USB-socket P3

2 1 Pin 1: VCC
Pin 2: D-
Pin 3: D+
3 4
Pin 4: GND
Figure 8: Pinout of the USB-socket P3 ( front view)

18  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Pin Layout

3.5 The power connector P2


The power connector P2 can be used alternatively to the power
connector X1, described in chapter 2. Its pinout corresponds to a
standard 5¼"-Floppy power connector.

Power connector P2
Pin 1: not connected
Pin 2: not connected
Pin 3: GND
Pin 4: VCC +5V=/ 500mA
Figure 9: Pinout of the power connector P2 ( front view)

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 19


kitCON-541

3.6 The VG96-connector VG1


VG1-A VG1-B VG1-C

PIN 1 VCC PIN 1 VCC PIN 1 VCC


2 2 2
3 3 3
4 4 4
5 5 P3.0, LED2 5 P3.1, DADD
6 P3.2, /INT0 6 P3.3, /INT1 6 P3.4, T0
7 P3.5, T1 7 P3.6, /WR 7 P3.7, /RD
8 GND 8 GND 8 GND
9 GND 9 GND 9 GND
10 P1.0, LED0 10 P1.1, LED1 10 P1.2, SCLK0
11 P1.3, SRI 11 P1.4, STO 11 P1.5, /SLS
12 12 12
13 13 A8 13 A9
14 A10 14 A11 14 A12
15 A13 15 A14 15 A15
16 VCC 16 VCC 16 VCC
17 VCC 17 VCC 17 VCC
18 ALE 18 /PSEN 18 /WR
19 /RD 19 19 RESET
20 /CS1 20 /CS2 20 /CS3
21 P3.2, /INT0 21 P3.3, /INT1 21
22 22 22
23 23 23
24 GND 24 GND 24 GND
25 GND 25 GND 25 GND
26 D0 26 D1 26 D2
27 D3 27 D4 27 D5
28 D6 28 D7 28
29 29 29
30 30 30
31 31 31
32 VCC 32 VCC 32 VCC

Table 3 Pinout of the VG96-connector VG1

32 31 C C 2 1
32 31 B B 2 1
32 31 A A 2 1

Figure 10: Numbering of the VG96-connector VG1 (front view)

20  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Jumper

4 Jumper

To configure the module, the kitCON-541 has 10 insertable and 2


solderable jumpers. In order to use the module immediately, the
jumpers have been configured prior to delivery. Figure 11 illustrates
the numbering of the jumper-pads, while Figure 12 indicates the
location of the jumpers on the board.

1
2 1
3 2

Figure 11: Numbering of the jumper-pads

Solderable Jumper Insertable Jumper

Figure 12: Location of the Jumper (component side)

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 21


kitCON-541

The jumpers (JP = insertable jumper, J = solderable jumper) have the


following functions:

Default Setting Alternate Setting


JP1 (2+3) external ROM/ (1+2) internal ROM/Flash
Flash active active
JP5 (2+3) U11 buffered by (1+2) no battery buffer
battery only
RAM-devices
JP6 (open) no Watchdog (1+2) Watchdog signal
line (WDI or WDI connected to
/PFO) connected P1.5
to P1.5 (2+3) Watchdog signal
/PFO connected to
P1.5
JP9, (2+3) quartz on XT1 (1+2) oscillator on U14
JP10 (closed) generates clock (open) generates clock pulse
pulse
JP11 (open) start user appli (closed) start FlashTools
cation after reset after reset
JP12 (open) kitCON541 (closed) kitCON-541 driven
powered by an by the power supply
external power from the USB bus
supply (bus-powered)
(self-powered)
JP15 (open) (closed) to ensure High Speed-/
Low Speed- detection
in bus-powered mode
if
VCC < 4,4V
JP16 (open) USB Full Speed (closed) USB Low Speed
,JP1 (closed) (12 Mbit/s) (open) (1,5 Mbit/s)
7
J1, (closed) quartz on XT2 (open) oscillator on U4 (1+2)
J2 (2+3) generates clock generates clock pulse
pulse for UART for UART
Table 4: Jumper Settings

22  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Jumper

4.1 Special Features JP1


Jumper JP1 is used to activate the special features of the particular
controller fitted on the module.

- Execution out of internal or external program memory

At the time of delivery, Jumper JP1 is pre-connected between pads


2+3. This default configuration means that the program stored in
the external program memory is executed after reset. In order to
allow the execution of a specific controller’s internal program
memory, jumper JP1 must be closed at 1+2.

The following configurations are possible:

Code-Fetch JP1
execution from external program memory 2+3*
execution from internal program memory 1+2

* = Default-Setting

4.2 Battery Buffer of U11 JP5


Via Jumper JP5 the device mounted on U11 can be connected to the
battery.

Battery Buffer of U11 JP5


No Buffering 1+2
Battery Buffering 2+3*

* = Default-Setting

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 23


kitCON-541

4.3 Connecting the Watchdog-Unit JP6


To use the watchdog-unit, JP6 has to be configured. Jumper JP6
connects port P1.5 either to the Watchdog-Enable-Input (WDI), or to
the Power-Failure-Output (/PFO).

Connecting the Watchdog-Unit JP6


Port P1.5 freely available open*
WDI on Port P1.5 1+2
/PFO on Port P1.5 2+3

* = Default-Setting

4.4 Oscillator circuit JP9, JP10


The clock pulse of the controller can be generated either with a quartz
or with an oscillator. The selected device is connected to the XTAL-
inputs of the controller via jumper JP9 and jumper JP10 . The standard
model of the kitCON-541 is equipped with a 12MHz quartz.

Clock Pulse JP9 JP10


Oscillator 1+2 open
Quartz 2+3* closed*

* = Default-Setting

24  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Jumper

4.5 Bootjumper JP11


The red jumper JP11 determines if a user application is executed after
RESET or if the FlashTools are started to download an application
into the Flash or RAM. To execute a user application, the red jumper
JP11 must be open.

Bootjumper JP11
Regular Program-Execution open
Program-Download into the closed*
Flash/external RAM

* = Default-Setting

4.6 Power Source JP12


To drive the kitCON-541 it either can be connected to an external
power supply (self-powered) or it can be powered by the power
supply from the USB-bus (bus-powered).

Power Source JP12


external power supply open*
(self-powered)
power supply from the USB-bus closed
(bus-powered)

* = Default-Setting

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 25


kitCON-541

4.7 USB-detection in bus-powered mode


In order to detect the kitCON-541 at USB-bus correctly a voltage of
more than 2.8V has to be attached to one of the lines D- or D+, while
the remaining line is pulled to ground. If to many devices are
connected to the USB-bus the voltage of 2.8V might not be reached in
bus-powered mode. In this case the voltage at the corresponding line
can be increased of about 0.7V by closing jumper JP15. Usually after
doing so correct detection is ensured.

USB-detection JP12
VCC > 4,4V open*
VCC < 4,4V closed

* = Default-Setting

4.8 USB-Full speed / Low speed configuration JP16, JP17


Jumpers JP16 and JP17 configure the kitCON-541 as either full speed
or low speed device.

Full speed / Low speed JP16 JP17


Full speed (12 Mbit/s) open* closed*
Low speed (1,5 Mbit/s) closed open

* = Default-Setting

26  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Jumper

4.9 Oscillator circuit of the UART J1, J2


The clock pulse of the UART 16C550 can be generated either with a
quartz or with an oscillator. The selected device is connected to the
XTAL-inputs of the UART via jumper J1 and jumper J2. The standard
model of the kitCON-541 is equipped with a 3,686MHz quartz.

Clock Pulse J1 J2
Oscillator open 1+2
Quartz closed* 2+3*

* = Default-Setting

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 27


kitCON-541

28  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Memory Model

5 Memory Model

The kitCON-541 allows flexible address decoding which can be


adjusted by software to different memory models. A hardware reset
activates a default memory configuration that is suitable for a variety
of applications. However, this memory model can be changed or ad-
justed at the beginning of a particular application.

Configuration of the memory is done within the address decoder by


means of decoder internal registers: one control register, one address
register and one mask register. All named registers are carried out as
Write-Only-Registers with access to the XDATA-memory of the
controller. There are two distinct address areas - selectable by means
of the bit IO-SW in control register 1 - by which the registers can be
accessed (refer to the description of the bit IO-SW below). Due to a
lack of read-access, a copy of all register contents should be main-
tained within the application. Reserved bits may not be changed dur-
ing the writing of the register; the contents must remain 0. A hard-
ware-reset erases all registers, while preserving the configuration of
the default memory model.

In the event that you use a pre-programmed Flash containing the


FlashTools - a firmware allowing convenient on-board Flash-
programming - it should be noted that the address FA16 will be pre-
set at the start of your application software (refer to the section
"Control Register 1" below). This is to be noted upon installation of
the software copy of the register contents. Please refer to chapter 12
"FlashTools" for an elaboration.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 29


kitCON-541

The following figure displays the default memory model:

CODE XDATA
I/O FFFFH

RAM U11

Flash U7 8000H
7FFFH

RAM U2

0000H
PRG-EN = 0
VN-EN = 0
IO-SW = 0
RAM-SW = 0
Figure 13: Default-Memory Model after Hardware-Reset
It should be noted that each memory device on U2 and U11 is mapped
into a separate 32KB memory area within the XDATA memory. If no
device is installed on either U2 or U11, memory-access to the
corresponding memory area is not possible. The corresponding
current I/O area is concentrated in an XDATA-address area in which
there is no access to any existing RAM.

In the following sections the registers of the address decoder for con-
figuration of the memory are explained.

30  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Memory Model

5.1 Control Register 1


Controlregister 1 (Address 7C00H / FC00H)
Bit 7 Bit 0
PRG- IO-SW RAM- VN-EN FA18 FA17 FA161 FA15
EN SW

Bit invalid in programming-model (refer to PRG-EN)


Bit valid only in programming-model (refer to PRG-EN)

PRG-EN: Activates the special Flash-programming-model (PRG-


EN = 1). This configuration is used within the
FlashTools2 for Flash-programming. On account of the
existing restrictions it is either of no or of restricted
use in your application.

In this model 32KB Flash memory located within the


address range 0000H - 7FFFH is accessible, as well as
32KB RAM within the range 8000H - FFFFH. The
Flash memory can only be written in the XDATA-area
and can only be read from the CODE-area. The RAM
can be read as well as written in the XDATA-area.
Reading the RAM in the CODE-area is also possible.
The address line A15 of the Flash is derived from the
Control Register 1 (Bit 0, FA15) only in the
programming-model. In the runtime-model (PRG-EN
= 0), the address line A15 of the controller is attached
directly to the Flash device. The bits IO-SW and
RAM-SW are also relevant in the programming-model.
Whereas the bit VN-EN is not relevant.

1: In the event that you use the FlashTools - a firmware allowing convenient on-board Flash-
programming - it should be noted that the address FA16 will be preset at the start of your
application software. This is to be noted upon installation of the software copy of the register
contents.
2: A firmware allowing convenient on-board Flash-programming. At purchase of the module
with a Flash device this software is already installed in the Flash device.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 31


kitCON-541

The following figure illustrates the programming con-


figuration (the I/O-field is not represented):

CODE XDATA
FFFFH

RAM U2

8000H
7FFFH

Flash U7

0000H
PRG-EN = 1

Read-Only
Write-Only
Read-Write
Figure 14: Memory Model for Flash-Programming
IO-SW: By means of this bit the I/O-area of the module can be
mapped either to the upper or to the lower 32KB of the
address space. After a Hardware-Reset (IO-SW = 0)
the I/O-area is located in the address area from FC00H
to FFFFH. Following setting of the IO-SW-bit, the
I/O-area is located in the address area from 7C00H to
7FFFH.

This I/O-area generally consists of 4 blocks of 256


bytes. In three of these blocks the address decoder
provides a pre-coded Chip-Select-Signal which simpli-
fies the connection of peripheral hardware to the
module.

32  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Memory Model

These Chip-Select-Signals are activated by XDATA-


access (Read-Write access) to the corresponding
address area. The fourth block is reserved for
accessing the register internal to the decoder (Write-
Only access). Hence, this block is not available for
connection of peripheral hardware to the module.

The following diagram illustrates the partitioning of


the I/O-area:

7FFFH / FFFFH*

/CS3

7F00H / FF00H*
7EFFH / FEFFH*

/CS2

7E00H / FE00H*
7DFFH / FDFFH*

/CS1

7D00H / FD00H*
7CFFH / FCFFH*

/CS-REG

7C00H / FC00H*

Write-Only
Read-Write

* = Default-Setting
Figure 15: Partitioning of the I/O-Area

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 33


kitCON-541

Given this partition, /CS2 and /CS3 function as the


available free Chip-Select signals. The signal /CS-
REG is solely a signal internal to the decoder, which is
necessary in order to access the internal register. /CS1
is used to control the external UART. These latter
signals are not available. Connection of peripheral
devices to the area of /CS-REG and /CS1 should not
take place under any circumstances, in order to main-
tain the correct function of the UART and the
FlashTools1 for programming of the Flash.

The internal register is to occupy only the address


ranges 7C00H - 7C03H and/or FC00H - FC03H. The
rest of the /CS-REG block remains unused and is
reserved for future expansion.

RAM-SW: By means of this bit the 32KB memory areas of U2


and U11 can be swapped. After hardware-reset (RAM-
SW = 0) RAM U2 is mapped to the memory area from
0000H to 7FFFH whereas RAM U11 can be accessed
in the memory area from 8000H to FFFFH. After
setting of the RAM-SW bit the memory areas are
swapped, meaning that RAM U2 occupies memory
from 8000H-FFFFH and RAM U11 is mapped from
0000H-7FFFH. Within the current I/O-area there is no
access to any existing RAM.

1: Software-tool for on-board Flash-programming, at delivery it is already installed in the Flash


device.

34  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Memory Model

VN-EN: This bit enables free selection of von-Neumann


memory1 within the address space of the controller.
After Reset a Harvard2-Architecture is available as the
default configuration. Von-Neumann memory is
especially useful when code is to be downloaded and
subsequently run during running time, as is the case
with a monitor program. The location of the optional
von-Neumann memory is defined through the address-
and mask registers (see below).

Following a Hardware-Reset (VN-EN = 0) the settings


in the address- and mask registers are not released,
which means that no von-Neumann memory is
available. After setting the bit (VN-EN = 1), the set-
tings in the address- and mask registers are valid and
incorporated in access addressing. This bit is only
relevant in the runtime-model (PRG-EN = 0), other-
wise it is unimportant and ignored.

FA[18..15]: The module can be equipped with an optional 512KB


Flash memory. As the controller’s address space is
limited to 64KB, the remainder of the Flash memory
can only be accessed by means of bank memory
switching.

In the runtime-model (PRG-EN = 0), 64KB banks can


be switched by controlling the high address lines
A[18..16] for the Flash through software. For this pur-
pose, register bits FA[18..16] of the address decoder
provide a Latch to which the desired higher addresses
can be written.

1: Memory area in which no difference is made between CODE- and XDATA-access,which


means that both accesses use the same physical memory device, usually a RAM.
2: Memory area in which CODE and XDATA-accesses use physical different memory devices,
usually CODE-access uses a ROM or Flash device, whereas XDATA-access uses a RAM.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 35


kitCON-541

Of particular note is the bit FA15, which is solely


relevant in the programming-model (PRG-EN = 1). As
in this model only 32KB of Flash can be accessed, it
serves as address line A15 for the Flash memory. In
the runtime-model (PRG-EN = 0) with a 64KB Flash
memory area, to contrast, the address line A15 of the
controller is attached directly to the Flash.

The function of the bits FA[18..16] is dependent on the


hardware configuration of the module and functions as
described above only in connection with Flash devices
of at least 512KB.

36  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Memory Model

5.2 Address Register


The address register 7C02H / FC02H functions in conjunction with
the mask register (see below) to define the von-Neumann1- and Har-
vard2-memory in the controller’s addressing area. By setting the bit
VN-EN in control register 1, the values of the address and the mask
register become valid for the definition of the von-Neumann and the
Harvard addressing space and incorporated in access addressing (refer
to Control Register 1).

The location of one or more Harvard areas can be configured with


both registers. The remaining sections of the addressing area is con-
figured as von-Neumann area in which RAM is accessible through
XDATA as well as through CODE.

The mechanism through which the areas are differentiated is based on


a comparison of the current address with a pre-defined address pattern
of variable width. If a correspondence of the relevant bit positions of
the address is recognised, access occurs according to the Harvard-
architecture. In the case of nonconformity, access occurs according to
the von-Neumann architecture.

Address Register (Address 7C02H / FC02H)


Bit 7 Bit 0
HA15 HA14 HA13 HA12 HA11 HA10 Res.3 Res.

The address register holds the address pattern described above. Each
bit of the pattern is compared with the corresponding address line of
the controller (HA15 with A15, ..., HA10 with A10). On the basis of
the available addresses A15..A10, this produces a granularity of the
configuration of the Harvard-fields of at least 1KB. Areas smaller
than 1KB can not be adjusted.

1: Memory area in which no difference is made between CODE- and XDATA-access,which


means that both accesses use the same physical memory device, usually a RAM.
2: Memory area in which CODE and XDATA-accesses use physical different memory devices,
usually CODE-access uses a ROM or Flash device, whereas XDATA-access uses a RAM.
3: Reserved bits are not to be changed, the default value (0) has to remain.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 37


kitCON-541

5.3 Mask Register


The mask register (addresses 7C03H / FC03H) serves the masking of
single bits in the address register (see above). Following a hardware-
reset, all bits within the address register are relevant. By setting the
individual bits in the mask register, all corresponding bits in the
address register will no longer be subject to an address comparison.

Mask Register (Address 7C03H / FC03H)


Bit 7 Bit 0
MA15 MA14 MA13 MA12 MA11 MA10 Res.1 Res.

1: Reserved bits are not to be changed, the default value (0) has to remain.

38  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Memory Model

The following examples with different combinations of the address-


and mask registers illustrate these function (X=don´t care):

Addr.-Reg. Mask.-Reg. Comments (only for VN-EN = 1)


1XXXXX00 b 01111100b Harvard 8000H-FFFFH, Von-Neu-
mann 0000H-7FFFH
0XXXXX00 b 01111100b Harvard 0000H-7FFFH, Von-Neu-
mann 8000H-FFFFH
11111100 b 00000000b Harvard FC00H-FFFFH, Von-
Neumann 0000H-FBFFH
010X0000 b 00010000b Harvard 4000H-43FFH and
5000H-53FFH, Von-Neumann
0000H-3FFFH, 4400H-4FFFH and
5400H-FFFFH
10000000 b 00000000b Harvard 8000H-83FFH,
Von-Neumann 0000H-7FFFH and
8400H-FFFFH
10100X00 b 00000100b Harvard A000H-A7FFH,
Von-Neumann 0000H-9FFFH and
A800H-FFFFH
Reserved bits without function for address decoding,
see description of the register
X=don´t care (on account of a bit set in the mask register)

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 39


kitCON-541

The last example in the table is further illustrated by the following


figure:

CODE XDATA
I/O FFFFH
Von-Neumann
A800H
A7FFH
Flash U7 Harvard
A000H
RAM U11 9FFFH
8000H
7FFFH

Von-Neumann
RAM U2

0000H
PRG-EN = 0
VN-EN = 1
IO-SW = 0
RAM-SW = 0
Adr.-Reg. = 10100X00b
Mask.-Reg. = 00000100b
Figure 16: Example of a Memory Model

40  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Flash-Memory

6 Flash-Memory

The kitCON-541 is equipped with 5-V programmable Flash devices.


Consequently, no special programming voltage is required. The Flash
device already houses a software tool which enables on-board repro-
gramming of, and downloading into, the Flash memory (refer to
chapter 12 "FlashTools").

Should this software be erased from the Flash device without having
an equal replacement, reprogramming of the Flash is no longer
possible !

However the software protects itself against any intentional or acci-


dental erasure or copy-over. As the integrated hardware protection
mechanism of the Flash is not used, protection is limited at the soft-
ware level. In the event that you might wish to download your own
programming algorithms or tools into Flash, please ensure that a pro-
gramming tool remains in the Flash memory.

Use of a Flash device as the only code memory results in no or only a


limited usability of the Flash memory as non-volatile memory for
data. This is due to the internal structure of the Flash device, as during
the Flash-internal programming process the reading of data from
Flash is not possible. Hence, for Flash programming, program
execution must be transferred out of Flash (such as into von-Neumann
RAM). This usually equals the interruption of a "normal" program
execution.

As of the printing of this manual, Flash devices generally have a life


expectancy of at least 100,000 Erase-/Program-cycles.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 41


kitCON-541

7 The Battery Buffer

To prevent loss of data in case of sudden power failure the


kitCON-541 can be equipped with a battery. This battery buffers the
memory devices on U2 and U11. However, this battery-buffer is not
otherwise essential to the functioning of the kitCON-541.

Position BT1 (refer to Figure 6) on the component side of the module


is provided for mounting a battery type CR2032. As of the pressing of
this manual, a lithium battery is recommended as it offers relatively
high capacity at low self-discharge. In the event of a power failure at
VCC, the RAM memory blocks will be buffered by a connected
battery via VBAT.

The current consumption depends on the components used and mem-


ory size. For the standard memory devices used on the board the draw
is typically 1µA per device ( max. 100µA).

Regarding data and code integrity, please be advised that despite the
battery buffer, changes in the data content within the RAM can occur
given disturbances. The battery buffer does not completely remove
the danger of data destruction.

42  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Serial Interface

8 The Serial Interface

As the USB interface on C540U / C541U controllers takes the place


of the serial interface, the serial interface is implemented with an
external UART 16C550.

The programming of the external UART is done by means of control-


registers, which can be accessed within the XDATA-memory area at
the addresses from FD00h to FDFFh (or from 7D00h to 7DFFh if bit
IO-SW is set). Eleven registers are located in this address area to
operate the UART (refer to Table 5). This has to be taken into consi-
deration when using standard output functions like printf().

DLAB1 Base address + Register


0 0x00 Receive buffer (read), transmitter holding
register (write
0 0x01 Interrupt enable register
X 0x02 Interrupt identification register (read only)
X 0x02 FIFO control register ( write only)
X 0x03 Line control register
X 0x04 Modem control register
X 0x05 Line status register
X 0x06 Modem status register
X 0x07 Scratch register
1 0x00 Divisor latch (LSB)
1 0x01 Divisor latch (MSB)
Table 5: Registers of the external UART

1: The divisor latch access bit (DLAB) is the most significant bit of the line control register

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 43


kitCON-541

The exact meaning of the registers and how to program the controller
can be read in the corresponding controller manual of the 16C550A
from Texas Instruments. The source of the functions getkey(),
putchar() und serinit(), included in the software delivered with the
kitCON-541, serve - in addition to this information - as examples as
how to use the external UART.

Please notice that due to the use of an etxernal UART neither the
FlashTools nor the monitor program run with variable baudrates. The
baudrate for both is fix at 19200 Baud.

44  PHYTEC Meßtechnik GmbH 2000 L-314e_2


The USB Interface

9 The USB Interface

USB is a peripheral bus standard developed by PC and telecom


industry leaders. It implements real plug and play for all kind of
computer peripherals, eliminating the need to install cards into
dedicated computer slots and reconfigure the system. Devices
equipped with USB will be automatically configured as soon as they
are physically attached. USB also allows multiple devices -- up to 127
-- to run on the bus.

C540U / C541U controllers are equipped with an on-chip USB mo-


dule, which enables the kitCON-541 to be attached directly to an USB
bus. The kitCON-541 runs either as full speed (12Mbit/s) or as low
speed device (1,5Mbit/s). Controlling the USB modul is done by
means of special function registers (refer to the C540U / C541U
User’s Manual), whereas the interface is configured with the help of
jumpers on the kitCON-541 (refer to chapter 4).

The kitCON-541 can be attached to the USB-bus via USB-socket P3.


The pinout is shown the the figure below.

USB-socket P3

2 1 Pin 1: VCC
Pin 2: D-
Pin 3: D+
3 4
Pin 4: GND

Figure 17: Pinout of the USB-socket P3 (front view)

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 45


kitCON-541

46  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Technical Specifications

10 Technical Specifications

The physical dimensions of the kitCON-541 are represented in Figure


17. The module’s profile is (inclusive of power connector X1) about
18mm thick, with a max. height of the components of 2.5mm on the
soldering-side and approx. 14mm on the component-side. The board
itself is approx. 1.5mm thick.

Figure 18: Physical Dimensions

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 47


kitCON-541

Additional specifications:

• Dimensions: 160mm x 100mm ±0,03mm


• Weight: approx. 120g
• Storage temperature: -40°C to +90°C
• Operating temperature: standard 0°C to +70°C/
• Humidity: max. 95% r.F. not condensed
• Operating voltage: 5V +10%
• Supply voltage: 8V= to 12V=/500mA, VBAT 3V ±20%
• Current consumption: appr. 150mA at 12 MHz clock pulse and
64KB RAM

These specifications describe the standard configuration of the


kitCON-541 as of pressing of this manual.

48  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Hints for Handling the Modul

11 Hints for Handling the Module

The microcontroller, the external UART and the Flash memory on the
kitCON-541 are fitted on PLCC sockets. When changing one of these
components please ensure that appropriate PLCC tools are used and
that the socket and all components remain free from intrusive damage.
It is also adviseable to ensure that the component to be used is pin-
compatible.

Removal of the standard quartz or oscillator is not advisable given the


compact nature of the module. Should this nonetheless be necessary,
please ensure that the board as well as surrounding components and
sockets remain undamaged. While unsweating. overheating the board
can cause the solder pads to loosen, rendering the module inoperable.
Carefully heat neighbouring connections in pairs. After a few
alternations, components can be removed with the solder-iron tip.
Alternatively, a hot air gun can be used to heat and loosen the bonds.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 49


kitCON-541

50  PHYTEC Meßtechnik GmbH 2000 L-314e_2


FlashTools

12 FlashTools

Flash is a highly functional means of storing non-volatile data. One of


its advantages among many others is its on-board programming
capability. Programming tools for the Flash device are included with
the kitCON-541 in the form of a pre-programmed Flash and support
software. These tools allow the download of your application into the
RAM during development. Alternatively, the Flash can be pro-
grammed following development.

The FlashTools incorporate a safety mechanism which ensures that


they can not be copied-over during programming of the Flash device.

Flash devices with two memory sizes are currently available: the
29F010 with two banks of 64KB each or a 29F040 with 8 banks of
64KB each. The first bank (bank 0) houses the FlashTools. Hence the
total memory available is 64KB or 448KB.

The following description is valid only for the use of the enclosed
FlashTools and is not intended as guidelines for use with any other
Flash utility program.

After resetting the module the FlashTools firmware is started auto-


matically. It either enters the programming mode or it starts your ap-
plication. The FlashTools will always occupy the first 64KB bank
(bank 0, FA[18..15] = 0000b) of the Flash memory upon initialisation.
The remaining banks are available to house your application.

Your application will always start in the second 64KB bank (bank 1,
FA[18..15] = 0010b). This is to be noted when preparing a software
copy of the address decoder’s register contents. Starting at this second
bank enables configuration of the memory according to your needs as
well as addressing additional Flash banks per Bank Switching. The
Tool diskette contains sample programs and hexfiles which illustrate
Bank Switching to other Flash banks.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 51


kitCON-541

Do not use Flash bank 0 in your application program in order to pre-


serve the FlashTools, which are required for subsequent
reprogramming of the Flash device.

In addition to programming the Flash device, there also exists the


possibility of downloading your application into RAM for testing pur-
poses, such as during the development phase. This means that a hex-
file can be copied to and executed in RAM. Please take into
consideration that your program will remain only as long as the board
is connected to a power supply. If Flash bank 1 contains a suitable
program, which sets up a von-Neumann memory model (which is a
precondition for executing CODE out of RAM) after reset and
performs a jump to a valid start address within the RAM, your
program will be executed out of RAM.

This procedure spares the need to engage in multiple


erase/programming-cycles of the Flash memory device when develop-
ing your application. Sample programs and hexfiles contained on the
Tool diskette illustrate how to install the correct memory model, in-
cluding how to start a program out of the RAM.

12.1 Starting the FlashTools


In order to set the kitCON-541 into its programming mode, the data
line D0 must be pulled through a Pull-Up-resistor of max. 10 kΩ to a
high-level1. A resistor of 4.7 kΩ is recommended, but it should be
noted that this value is only an approximate value, as the resistor to be
used can vary dependent on the external wiring of the data bus. The
resistor is already on the board and can be activated through the red
Bootjumper JP11.

1: configurations with other switches to enter programming mode are available on demand

52  PHYTEC Meßtechnik GmbH 2000 L-314e_2


FlashTools

Connect the module to the serial port of a PC (COM1 or COM2) as


shown below.

PC DB9-plug COM1,2 kitCON-541 DB9-socket P1


RxD PIN 2 to TxD PIN 2
TxD PIN 3 to RxD PIN 3
GND PIN 5 to GND PIN 5

Next connect the pull-up resistor to dataline D0 by closing the red


jumper JP11. Then connect the power supply and reset the module.

Start the program FLASHT.EXE, which is part of the FlashTool


software, on the PC. FLASHT.EXE should only be invoked at this
time by entering the following line:

flasht BR19200 [COM port number]

The FlashTools always utilise a baudrate of 19.200 Baud.

FLASHT.EXE can always be exited, except during downloading of


user code, with the special-function key ’F1’.

Note that correct execution of the FlashTools is only possible if the


FlashTools on the module are started first by power-up or reset, and
the terminal-program FLASHT.EXE is invoked on the PC afterwards.
Resetting of the module while the red jumper JP11 is closed is only
allowed after leaving FLASHT.EXE.

After having successfully started the FlashTools you will see the start
menu (s. Figure 18). Here you can select either Flash or RAM-
download.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 53


kitCON-541

======================================================================
FLASH/RAM-Download-Utility for Altera based modul V2.17
======================================================================
(c) 1996, PHYTEC Meßtechnik GmbH, D-55129 Mainz

(1) Program FLASH


(2) Program RAM

> Command:

Figure 19: The initial screen of the FlashTools

54  PHYTEC Meßtechnik GmbH 2000 L-314e_2


FlashTools

12.2 Downloading into the Flash


Selecting the first option in the start menu will lead to the Flash pro-
gramming menu. The tools enable the partial or total erasure of the
Flash device, as well as programming of the device. They also allow
device status information to be read from the Flash. All menu options
are intuitive and always refer only to the selected Flash bank.

Using a Flash memory device of type 29F040 up to 7 banks of 64KB


are available for your applications. A menu option allows specific
memory banks to be selected for programming and erasing. The menu
option is not applicable if the Flash type 29F010 is used. In this case,
bank 1 is the default selection for program storage. Only Intel hexfiles
can be used for programming purposes.

After programming of the Flash, disable the pull-up resistor at D0 by


opening the red Bootjumper JP11 and start your program by
performing a normal reset.

The FlashTools include a mechanism which ensures that they are not
erased or copied-over during programming. This preserves the pos-
sibility of future reprogramming.

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 55


kitCON-541

12.3 Downloading to RAM


During development, the RAM-download mechanism can be utilised
to avoid unnecessary erase/programming cycles of the Flash. Choos-
ing the second option in the Start Menu enables downloading to
RAM, as well as specification of the start address of the downloaded
program in order to allow subsequent easy execution of the program.
The software provided on the FlashTool diskette uses this start
address to start your program out of the RAM. For that purpose the
address is written to a specific memory area within the RAM.

The FlashTools automatically try to locate this start address during


the RAM-download. Hence, following RAM-download, the lowest
hexfile address is assumed to be the start address. If necessary, this
start address can be manually changed.

All menu options are intuitive. The RAM-download allows testing of


an application before it is programmed into the Flash memory.

Be advised that the kitCON-541 executes the program from Flash


bank 1 after a reset. In order to start your application from the RAM
the FlashTool diskette contains the program ’RUN_RAM.HEX’. This
utility-program has to be programmed into Flash bank 1 before
downloading your application to the RAM. ’RUN_RAM.HEX’ sets up
the von-Neumann memory and starts your application through per-
forming a jump to the user-specified start address in the RAM. This
procedure allows the start of your application through a normal reset.

56  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Index

Index

JP1 .............................................23
A
JP10 ...........................................24
Address Decoding .....................29 JP11 ...........................................25
Address Register .......................37 JP12 ...........................................25
B JP15 ...........................................26
JP16 ...........................................26
Battery Buffer............................42 JP17 ...........................................26
Battery Buffer of U11 ...............23 JP5 .............................................23
Bootjumper................................25 JP6 .............................................24
buspowered ...............................25 JP9 .............................................24
C Jumper .......................................21
Jumper Settings .........................22
Connecting the Watchdog-Unit.24
Control Register 1 .....................31 K
D kitCON-Connector.....................16
Default Memory Model.............29 M
F Mask Register............................38
Memory Model..........................29
FA[18..15] .................................35
Features .......................................4 O
Flash-Memory ...........................41 Oscillator circuit ........................24
FlashTools .................................51
Downloading to RAM............56 P
Invoking .................................52 Physical Dimensions .................47
Programming the Flash ..........55 Pin-Layout .................................15
Full speed/Low speed................26 Pinout ........................................16
H Power Source.............................25
PRG-EN.....................................31
Handling the Module.................49 Program execution
I from external memory ............23
from internal memory.............23
ICE/connect-51 .........................17
IO-SW .......................................32 Q
J Quickstart Instructions ................7
Quickstart Instructions for
J1 ...............................................27
Flashprogramming - Summary
J2 ...............................................27
................................................14

 PHYTEC Meßtechnik GmbH 2000 L-314e_2 57


kitCON-541

R Starting with a Monitor program -


Summary ................................ 10
RAM-SW .................................. 34
Registers of the address decoder T
............................................... 30 Technical Specifications ........... 48
S The Serial Interface................... 43
The USB Interface .................... 45
selfpowered ............................... 25
Special Features ........................ 23 V
Starting the kitCON and VG1 ........................................... 20
programming the Flash .......... 11 VN-EN ...................................... 35
Starting the kitCON using a
Monitor Program...................... 8

58  PHYTEC Meßtechnik GmbH 2000 L-314e_2


Suggestions for Improvement

Document: kitCON-541
Document number: L-314e_2, April 1999

How would you improve this manual?

Did you find any mistakes in this manual? page

Submitted by:
Customer number:

Name:

Company:

Address:

Return to:
PHYTEC Technologie Holding AG
Postfach 100403
D-55135 Mainz, Germany
Fax : +49 (6131) 9221-33

 PHYTEC Meßtechnik GmbH 2000 L-314e_2


Published by

 PHYTEC Meßtechnik GmbH 2000 Ordering No. L-314e_2


Printed in Germany

Você também pode gostar