KC-541
-
Upload
elektrodenhirn -
Category
Documents
-
view
214 -
download
0
Transcript of KC-541
-
8/7/2019 KC-541
1/64
A product of a PHYTEC Technology Holding company
kitCON-541
Hardware-Manual
Edition April 1999
-
8/7/2019 KC-541
2/64
kitCON-541
PHYTEC Metechnik GmbH 2000 L-314e_2
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 Metechnik GmbH assumes no responsibi-
lity for any inaccuracies. PHYTEC Metechnik 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 Metechnik 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 Metechnik GmbH offers no guarantee nor accepts anyliability for damages arising from the improper usage or improper installation of
the hardware or software. PHYTEC Metechnik 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 Metechnik 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 Metechnik GmbH.
EUROPE NORTH AMERICA
Address: PHYTEC Technologie Holding AG
Robert-Koch-Str. 39
D-55129 Mainz
GERMANY
PHYTEC America LLC
255 Ericksen Avenue NE
Bainbridge Island, WA 98110
USA
Ordering
Information:
+49 (800) 0749832
+1 (800) 278-9913
TechnicalSupport:
+49 (6131) [email protected]
+1 (800) [email protected]
Fax: +49 (6131) 9221-33 +1 (206) 780-9135
Web Site: http://www.phytec.de http://www.phytec.com
2nd Edition: April 1999
mailto:[email protected]:[email protected]:[email protected]:[email protected]://www.phytec.de/http://www.phytec.com/http://www.phytec.com/http://www.phytec.de/mailto:[email protected]:[email protected]:[email protected]:[email protected] -
8/7/2019 KC-541
3/64
Contents / Table of figures
PHYTEC Metechnik GmbH 2000 L-314e_2
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 .........................................................204 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 ........................................275 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
-
8/7/2019 KC-541
4/64
kitCON-541
PHYTEC Metechnik GmbH 2000 L-314e_2
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
-
8/7/2019 KC-541
5/64
Preface
PHYTEC Metechnik GmbH 2000 L-314e_2
1
Preface
This kitCON-541 Users Manual describes the boards design andfunctions. Precise specifications for the C540U/C541U microcon-
trollers can be found in the enclosed microcontroller Data-
Sheet/Users 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.
-
8/7/2019 KC-541
6/64
kitCON-541
2 PHYTEC Metechnik GmbH 2000 L-314e_2
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 functionsand configurations. PHYTEC supports all common Infineons 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
Holding AG
Robert-Koch-Str. 39
D-55129 MainzGERMANY
PHYTEC America LLC
255 Ericksen Avenue NE
Bainbridge Island, WA 98110
USA
Web Site: http://www.phytec.de http://www.phytec.com
e-mail: [email protected] [email protected]
Voice: +49 (6131) 9221-0 +1 (800) 278-9913
Fax: +49 (6131) 9221-33 +1 (206) 780-9135
http://www.phytec.de/http://www.phytec.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://www.phytec.com/http://www.phytec.de/ -
8/7/2019 KC-541
7/64
Introduction to the kitCON-541
PHYTEC Metechnik GmbH 2000 L-314e_2
3
1 Introduction to the kitCON-541The 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 foundin 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).
-
8/7/2019 KC-541
8/64
kitCON-541
4 PHYTEC Metechnik GmbH 2000 L-314e_2
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
-
8/7/2019 KC-541
9/64
Introduction to the kitCON-541
PHYTEC Metechnik GmbH 2000 L-314e_2
5
1.1 Block DiagramBATTERY
R e s e t /
W a t c h d o g
d i g i t a l I / O - P o r t sI N F I N E O N
C 5 4 0 U /
C 5 4 1 U
L a t c h D e c o d e r
P2 / Cntrl
k
i
t
CO
N-
Con
n
ec
tor
P1
USB-socket
T r e i b e r
R S 2 3 2
a n a l o g I - P o r t s
C n t r l / A d d r
F L A S H
( 128 / 512 KB)
R A M
32 KB
R A M
32 KB
C n t r l / A d d rD a t a
C n t r l / A d d rD a t a
opt.
S1
P0
opt.
Ice-Con
n
ec
tor
DB9-socket
P3
D a t a UART
U S B
Figure 1: Block Diagram
-
8/7/2019 KC-541
10/64
kitCON-541
6 PHYTEC Metechnik GmbH 2000 L-314e_2
1.2 View of the kitCON-541
Figure 2: View of the kitCON-541 (Component Side)
-
8/7/2019 KC-541
11/64
Quickstart Instructions
PHYTEC Metechnik GmbH 2000 L-314e_2
7
2 Quickstart InstructionsIn this chapter you will find a step by step description for putting thekitCON-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 foruse with the kitCON-541.
+8..12VDC
GND
500mA
center hole2,0mm 5,5mm
- +polatity:
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
-
8/7/2019 KC-541
12/64
kitCON-541
8 PHYTEC Metechnik GmbH 2000 L-314e_2
Insertable Jumper
149
101
109
117
125
133
141
1
5
13
21
29
37
45
53
61
69
77
85
93
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 P1on 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 3GND PIN 5 to GND PIN 5
1: The monitor program is only available on modules, purchased from Infineon
-
8/7/2019 KC-541
13/64
Quickstart Instructions
PHYTEC Metechnik GmbH 2000 L-314e_2
9
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 betweenthe 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 unregulated8V= 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 byentering 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 isactive at the time of the invocation.
After a successful start of MON51.EXE the program will appearwith MONITOR-Mode and a # as prompt.
-
8/7/2019 KC-541
14/64
kitCON-541
10 PHYTEC Metechnik GmbH 2000 L-314e_2
Enter load Pathname\hello541.mon in order to load the demoprogram.
Once downloading has finished and the # prompt reappears, enterthe 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 loadPathname\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
-
8/7/2019 KC-541
15/64
Quickstart Instructions
PHYTEC Metechnik GmbH 2000 L-314e_2
11
2.2 Starting the kitCON and programming the FlashAt the time of delivery the Flash device is pre-programmed with a
monitor program1. This program is not protected, unlike theFlashTools, and will be overwritten when the following steps are
carried out.
Use of the Flash requires a kitCON-541 with a pre-programmedFlash 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 P1on 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 invokecommunication 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 betweenthe 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 theboard. 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
-
8/7/2019 KC-541
16/64
kitCON-541
12 PHYTEC Metechnik GmbH 2000 L-314e_2
Push switch S1 to perform a reset. This way the FlashTools on thekitCON-541 will be started.
Invoke the program FLASHT.EXE on your Host-PC by enteringthe 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 theFlashTools 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.
Figure 5: The initial screen of the FlashTools
=====================================================================
=
FLASH/RAM-Download-Utility for Altera based modul V2.17
=====================================================================
=
(c) 1996, PHYTEC Metechnik GmbH, D-55129 Mainz
(1) Program FLASH
(2) Program RAM
> Command:
-
8/7/2019 KC-541
17/64
Quickstart Instructions
PHYTEC Metechnik GmbH 2000 L-314e_2
13
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 menuwill 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 boards power supply and open the red BootjumperJP11.
Reattach the board to the power source.
The downloaded application will now be executed. The output ofthe program can be viewed on the monitor of the attached host-PC
if the correct baudrate was specified for the serial interface of thekitCON-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
-
8/7/2019 KC-541
18/64
kitCON-541
14 PHYTEC Metechnik GmbH 2000 L-314e_2
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
-
8/7/2019 KC-541
19/64
Pin Layout
PHYTEC Metechnik GmbH 2000 L-314e_2
15
3 Pin-LayoutPlease 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
users 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 signalsare 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.
Figure 6: Position of the Connectors
149
101
109
117
125
133
141
15
13
21
29
37
45
53
61
69
77
85
93
-
8/7/2019 KC-541
20/64
kitCON-541
16 PHYTEC Metechnik GmbH 2000 L-314e_2
3.1 The kitCON-ConnectorSupply Voltage PIN 1 VCC 2 VCC 3 GND 4 GND
Data-Bus 5 D0 6 D2 7 D4 8 D69 D1 10 D3 11 D5 12 D7
13 14 15 16
17 18 19 20
Address-Bus 21 A0 22 A2 23 A4 24 A625 A1 26 A3 27 A5 28 A729 A8 30 A10 31 A12 32 A1433 A9 34 A11 35 A13 36 A1537 38 39 40
41 42 43 44
Control-Signals 45 /RD 46 /PSEN 47 RES 48 /RES49
/WR50
ALE51
/EA52
MDIS53 /CS1 54 /CS3 55 56
57 /CS2 58 59 60
Special Purpose 61 62 63 P3.2 / INT0 64
65 66 67 68
Analog Input 69 70 71 72
73 74 75 76
77 78 79 80
81 82 83 84
Digital-Port P1 85 P1.0, LED 0 86 P1.2, SCLK 87 P1.4, STO 88
89 P1.1, LED 1 90 P1.3, SRI 91 P1.5, /SLS 92
Digital-Port P3 93 P3.0, LED 2 94 P3.2, /INT0 95 P3.4, T0 96 P3.6, /WR97 P3.1, DADD 98 P3.3, /INT1 99 P3.5, T1 100 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
Supply Voltage 149 VCC 150 VCC 151 GND 152 GND
Table 1: Pinout of thekitCON-Connector X3
-
8/7/2019 KC-541
21/64
Pin Layout
PHYTEC Metechnik GmbH 2000 L-314e_2
17
3.2 The ICE/connect-51The ICE/connect-51 provides an easy possibility for connecting a
standard emulator, which uses the controller on-board, to thekitCON-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.
-
8/7/2019 KC-541
22/64
kitCON-541
18 PHYTEC Metechnik GmbH 2000 L-314e_2
3.3 The DB9-socket P1The DB9-socket P1 carries the RS-232 signals. The following figure
shows the pinout.
DB9-socket P1
Pin 2: TXD0
Pin 3: RXD0
Pin 5: GND
Figure 7: Pinout of the DB9-socket P1 (front view)
3.4 The USB-socket P3The USB-socket P3 carries the USB-signals. The pinout for the USB-
interface is shown in the following.
USB-socket P3
Pin 1: VCC
Pin 2: D-
Pin 3: D+
Pin 4: GND
Figure 8: Pinout of the USB-socket P3 ( front view)
1
2
3
4
7
6
5
8
9
2 1
3 4
-
8/7/2019 KC-541
23/64
Pin Layout
PHYTEC Metechnik GmbH 2000 L-314e_2
19
3.5 The power connector P2The power connector P2 can be used alternatively to the power
connector X1, described in chapter 2. Its pinout corresponds to astandard 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)
-
8/7/2019 KC-541
24/64
kitCON-541
20 PHYTEC Metechnik GmbH 2000 L-314e_2
3.6 The VG96-connector VG1VG1-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, /SLS12 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 2223 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
Figure 10: Numbering of the VG96-connector VG1 (front view)
CBA
CBA 1
1
12
2
2
31
31
3132
32
32
-
8/7/2019 KC-541
25/64
Jumper
PHYTEC Metechnik GmbH 2000 L-314e_2
21
4 JumperTo configure the module, the kitCON-541 has 10 insertable and 2solderable 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.
Figure 11: Numbering of the jumper-pads
Figure 12: Location of the Jumper (component side)
1
2
3
1
2
Solderable Jumper Insertable Jumper
-
8/7/2019 KC-541
26/64
kitCON-541
22 PHYTEC Metechnik GmbH 2000 L-314e_2
The jumpers (JP = insertable jumper, J = solderable jumper) have the
following functions:
Default Setting Alternate SettingJP1 (2+3) external ROM/
Flash active
(1+2) internal ROM/Flash
active
JP5 (2+3) U11 buffered by
battery only
RAM-devices
(1+2) no battery buffer
JP6 (open) no Watchdog
line (WDI or
/PFO) connected
to P1.5
(1+2) Watchdog signal
WDI connected to
P1.5
(2+3) Watchdog signal/PFO connected to
P1.5
JP9,
JP10
(2+3) quartz on XT1
(closed) generates clock
pulse
(1+2) oscillator on U14
(open) generates clock pulse
JP11 (open) start user appli
cation after reset
(closed) start FlashTools
after reset
JP12 (open) kitCON541
powered by anexternal power
supply
(self-powered)
(closed) kitCON-541 driven
by the power supplyfrom the USB bus
(bus-powered)
JP15 (open) (closed) to ensure High Speed-/
Low Speed- detection
in bus-powered mode
if
VCC < 4,4V
JP16,JP1
(open) USB Full Speed(closed) (12 Mbit/s)
(closed) USB Low Speed(open) (1,5 Mbit/s)
J1,
J2
(closed) quartz on XT2
(2+3) generates clock
pulse for UART
(open) oscillator on U4 (1+2)
generates clock pulse
for UART
Table 4: Jumper Settings
-
8/7/2019 KC-541
27/64
Jumper
PHYTEC Metechnik GmbH 2000 L-314e_2
23
4.1 Special Features JP1Jumper 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 controllers 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 JP5Via 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
-
8/7/2019 KC-541
28/64
kitCON-541
24 PHYTEC Metechnik GmbH 2000 L-314e_2
4.3 Connecting the Watchdog-Unit JP6To use the watchdog-unit, JP6 has to be configured. Jumper JP6
connects port P1.5 either to the Watchdog-Enable-Input (WDI), or tothe 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, JP10The 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
-
8/7/2019 KC-541
29/64
Jumper
PHYTEC Metechnik GmbH 2000 L-314e_2
25
4.5 Bootjumper JP11The red jumper JP11 determines if a user application is executed after
RESET or if the FlashTools are started to download an applicationinto 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
Flash/external RAM
closed*
* = Default-Setting
4.6 Power Source JP12To 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(self-powered)
open*
power supply from the USB-bus
(bus-powered)
closed
* = Default-Setting
-
8/7/2019 KC-541
30/64
kitCON-541
26 PHYTEC Metechnik GmbH 2000 L-314e_2
4.7 USB-detection in bus-powered modeIn 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+, whilethe 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, JP17Jumpers 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
-
8/7/2019 KC-541
31/64
Jumper
PHYTEC Metechnik GmbH 2000 L-314e_2
27
4.9 Oscillator circuit of the UART J1, J2The clock pulse of the UART 16C550 can be generated either with a
quartz or with an oscillator. The selected device is connected to theXTAL-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
-
8/7/2019 KC-541
32/64
kitCON-541
28 PHYTEC Metechnik GmbH 2000 L-314e_2
-
8/7/2019 KC-541
33/64
Memory Model
PHYTEC Metechnik GmbH 2000 L-314e_2
29
5 Memory ModelThe kitCON-541 allows flexible address decoding which can beadjusted 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 thecontroller. 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.
-
8/7/2019 KC-541
34/64
kitCON-541
30 PHYTEC Metechnik GmbH 2000 L-314e_2
The following figure displays the default memory model:
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.
CODE XDATA
Flash U7
RAM U11
8000H
0000H
FFFFH
7FFFH
PRG-EN = 0
I/O
IO-SW = 0
VN-EN = 0
RAM-SW = 0
RAM U2
-
8/7/2019 KC-541
35/64
Memory Model
PHYTEC Metechnik GmbH 2000 L-314e_2
31
5.1 Control Register 1Controlregister 1 (Address 7C00H / FC00H)
Bit 7 Bit 0PRG-
EN
IO-SW RAM-
SW
VN-EN FA18 FA17 FA161 FA15
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
FlashTools2for 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.
-
8/7/2019 KC-541
36/64
kitCON-541
32 PHYTEC Metechnik GmbH 2000 L-314e_2
The following figure illustrates the programming con-
figuration (the I/O-field is not represented):
CODE XDATA
8000H
0000H
FFFFH
RAM U2
7FFFH
PRG-EN = 1
Write-Only
Read-Write
Read-Only
Flash U7
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.
-
8/7/2019 KC-541
37/64
Memory Model
PHYTEC Metechnik GmbH 2000 L-314e_2
33
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:
Write-Only
Read-Write
/CS1
/CS2
/CS3
7C00H / FC00H*
7CFFH / FCFFH*
7D00H / FD00H*
7DFFH / FDFFH*7E00H / FE00H*
7EFFH / FEFFH*7F00H / FF00H*
7FFFH / FFFFH*
/CS-REG
* = Default-Setting
Figure 15: Partitioning of the I/O-Area
-
8/7/2019 KC-541
38/64
kitCON-541
34 PHYTEC Metechnik GmbH 2000 L-314e_2
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. /CS1is 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. Therest 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 areswapped, 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.
-
8/7/2019 KC-541
39/64
Memory Model
PHYTEC Metechnik GmbH 2000 L-314e_2
35
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 isespecially 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 isavailable. 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 controllers address space is
limited to 64KB, the remainder of the Flash memorycan 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.
-
8/7/2019 KC-541
40/64
kitCON-541
36 PHYTEC Metechnik GmbH 2000 L-314e_2
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. Inthe 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.
-
8/7/2019 KC-541
41/64
Memory Model
PHYTEC Metechnik GmbH 2000 L-314e_2
37
5.2 Address RegisterThe address register 7C02H / FC02H functions in conjunction with
the mask register (see below) to define the von-Neumann1- and Har-vard2-memory in the controllers 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 throughXDATA 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 smallerthan 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.
-
8/7/2019 KC-541
42/64
kitCON-541
38 PHYTEC Metechnik GmbH 2000 L-314e_2
5.3 Mask RegisterThe 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.
-
8/7/2019 KC-541
43/64
Memory Model
PHYTEC Metechnik GmbH 2000 L-314e_2
39
The following examples with different combinations of the address-
and mask registers illustrate these function (X=dont care):
Addr.-Reg. Mask.-Reg. Comments (only for VN-EN = 1)1XXXXX00b 01111100b Harvard 8000H-FFFFH, Von-Neu-
mann 0000H-7FFFH
0XXXXX00b 01111100b Harvard 0000H-7FFFH, Von-Neu-mann 8000H-FFFFH
11111100b 00000000b Harvard FC00H-FFFFH, Von-Neumann 0000H-FBFFH
010X0000b 00010000b Harvard 4000H-43FFH and5000H-53FFH, Von-Neumann
0000H-3FFFH, 4400H-4FFFH and5400H-FFFFH
10000000b 00000000b Harvard 8000H-83FFH,Von-Neumann 0000H-7FFFH and
8400H-FFFFH
10100X00b 00000100b Harvard A000H-A7FFH,Von-Neumann 0000H-9FFFH and
A800H-FFFFH
Reserved bits without function for address decoding,
see description of the registerX=dont care (on account of a bit set in the mask register)
-
8/7/2019 KC-541
44/64
kitCON-541
40 PHYTEC Metechnik GmbH 2000 L-314e_2
The last example in the table is further illustrated by the following
figure:
CODE XDATA
0000H
FFFFH
Flash U7A000H9FFFH
PRG-EN = 0
I/O
IO-SW = 0VN-EN = 1
RAM U2
A800HA7FFH
Von-Neumann
Von-Neumann
Harvard
Adr.-Reg. = 10100X00bMask.-Reg. = 00000100b
RAM-SW = 0
RAM U11
7FFFH8000H
Figure 16: Example of a Memory Model
-
8/7/2019 KC-541
45/64
Flash-Memory
PHYTEC Metechnik GmbH 2000 L-314e_2
41
6 Flash-MemoryThe 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
chapter12 "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 fordata. 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.
-
8/7/2019 KC-541
46/64
kitCON-541
42 PHYTEC Metechnik GmbH 2000 L-314e_2
7 The Battery BufferTo prevent loss of data in case of sudden power failure thekitCON-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 connectedbattery 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 1A per device ( max. 100A).
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 removethe danger of data destruction.
-
8/7/2019 KC-541
47/64
Serial Interface
PHYTEC Metechnik GmbH 2000 L-314e_2
43
8 The Serial InterfaceAs the USB interface on C540U / C541U controllers takes the placeof 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 registerX 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
-
8/7/2019 KC-541
48/64
kitCON-541
44 PHYTEC Metechnik GmbH 2000 L-314e_2
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 thekitCON-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.
-
8/7/2019 KC-541
49/64
The USB Interface
PHYTEC Metechnik GmbH 2000 L-314e_2
45
9 The USB InterfaceUSB is a peripheral bus standard developed by PC and telecomindustry 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 USBbus. 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
Users Manual), whereas the interface is configured with the help of
jumpers on the kitCON-541 (refer to chapter4).
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
Pin 1: VCC
Pin 2: D-
Pin 3: D+
Pin 4: GND
Figure 17: Pinout of the USB-socket P3 (front view)
2 1
3 4
-
8/7/2019 KC-541
50/64
kitCON-541
46 PHYTEC Metechnik GmbH 2000 L-314e_2
-
8/7/2019 KC-541
51/64
Technical Specifications
PHYTEC Metechnik GmbH 2000 L-314e_2
47
10 Technical SpecificationsThe physical dimensions of the kitCON-541 are represented in Figure17. The modules 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
-
8/7/2019 KC-541
52/64
kitCON-541
48 PHYTEC Metechnik GmbH 2000 L-314e_2
Additional specifications:
Dimensions: 160mm x 100mm 0,03mm
Weight: approx. 120g Storage temperature: -40C to +90C
Operating temperature: standard 0C to +70C/
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 thekitCON-541 as of pressing of this manual.
-
8/7/2019 KC-541
53/64
Hints for Handling the Modul
PHYTEC Metechnik GmbH 2000 L-314e_2
49
11 Hints for Handling the ModuleThe microcontroller, the external UART and the Flash memory on thekitCON-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 andsockets 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.
-
8/7/2019 KC-541
54/64
kitCON-541
50 PHYTEC Metechnik GmbH 2000 L-314e_2
-
8/7/2019 KC-541
55/64
FlashTools
PHYTEC Metechnik GmbH 2000 L-314e_2
51
12 FlashToolsFlash is a highly functional means of storing non-volatile data. One ofits 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 decoders 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.
-
8/7/2019 KC-541
56/64
kitCON-541
52 PHYTEC Metechnik GmbH 2000 L-314e_2
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, yourprogram 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 FlashToolsIn 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
-
8/7/2019 KC-541
57/64
FlashTools
PHYTEC Metechnik GmbH 2000 L-314e_2
53
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 P1RxD 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.
-
8/7/2019 KC-541
58/64
kitCON-541
54 PHYTEC Metechnik GmbH 2000 L-314e_2
Figure 19: The initial screen of the FlashTools
======================================================================
FLASH/RAM-Download-Utility for Altera based modul V2.17
======================================================================
(c) 1996, PHYTEC Metechnik GmbH, D-55129 Mainz
(1) Program FLASH(2) Program RAM
> Command:
-
8/7/2019 KC-541
59/64
FlashTools
PHYTEC Metechnik GmbH 2000 L-314e_2
55
12.2 Downloading into the FlashSelecting the first option in the start menu will lead to the Flash pro-
gramming menu. The tools enable the partial or total erasure of theFlash 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 hexfilescan 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.
-
8/7/2019 KC-541
60/64
kitCON-541
56 PHYTEC Metechnik GmbH 2000 L-314e_2
12.3 Downloading to RAMDuring 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 lowesthexfile 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. Thisutility-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.
-
8/7/2019 KC-541
61/64
Index
PHYTEC Metechnik GmbH 2000 L-314e_2
57
Index
A
Address Decoding.....................29
Address Register .......................37
B
Battery Buffer............................42
Battery Buffer of U11 ...............23
Bootjumper................................25
buspowered ...............................25
C
Connecting the Watchdog-Unit.24
Control Register 1 .....................31
D
Default Memory Model.............29
F
FA[18..15].................................35
Features .......................................4
Flash-Memory ...........................41
FlashTools .................................51
Downloading to RAM............56
Invoking .................................52
Programming the Flash ..........55
Full speed/Low speed................26
H
Handling the Module.................49
I
ICE/connect-51 .........................17
IO-SW .......................................32
J
J1 ...............................................27
J2 ...............................................27
JP1 .............................................23JP10 ...........................................24
JP11 ...........................................25
JP12 ...........................................25
JP15 ...........................................26
JP16 ...........................................26
JP17 ...........................................26
JP5 .............................................23
JP6 .............................................24
JP9 .............................................24
Jumper .......................................21Jumper Settings .........................22
K
kitCON-Connector.....................16
M
Mask Register............................38
Memory Model..........................29
O
Oscillator circuit........................24
P
Physical Dimensions .................47
Pin-Layout .................................15
Pinout........................................16
Power Source.............................25
PRG-EN.....................................31
Program execution
from external memory............23from internal memory.............23
Q
Quickstart Instructions ................7
Quickstart Instructions for
Flashprogramming - Summary
................................................14
-
8/7/2019 KC-541
62/64
kitCON-541
58 PHYTEC Metechnik GmbH 2000 L-314e_2
R
RAM-SW..................................34
Registers of the address decoder
............................................... 30
S
selfpowered............................... 25
Special Features ........................23
Starting the kitCON and
programming the Flash ..........11
Starting the kitCON using a
Monitor Program...................... 8
Starting with a Monitor program -
Summary................................10
T
Technical Specifications ...........48The Serial Interface...................43
The USB Interface ....................45
V
VG1 ...........................................20
VN-EN ......................................35
-
8/7/2019 KC-541
63/64
Suggestions for Improvement
PHYTEC Metechnik GmbH 2000 L-314e_2
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
-
8/7/2019 KC-541
64/64