Escolar Documentos
Profissional Documentos
Cultura Documentos
Hardware-Manual
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.
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
Preface
1: For more information about additional configurations see the PHYTEC product catalog
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
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.
GND
1
5
13
21
29
37
45
53
61
69
77
85
93
101
109
117
125
133
141
149
Insertable Jumper
• 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.
=====================================================================
=
FLASH/RAM-Download-Utility for Altera based modul V2.17
=====================================================================
=
(c) 1996, PHYTEC Meßtechnik GmbH, D-55129 Mainz
> Command:
• 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".
• Disconnect the board’s power supply and open the red Bootjumper
JP11.
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.
13
21
29
37
45
53
61
69
77
85
93
101
109
117
125
133
141
149
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
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.
DB9-socket P1
1
6
2 Pin 2: TXD0
7
3
8 Pin 3: RXD0
4
5
9 Pin 5: GND
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)
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)
32 31 C C 2 1
32 31 B B 2 1
32 31 A A 2 1
4 Jumper
1
2 1
3 2
Code-Fetch JP1
execution from external program memory 2+3*
execution from internal program memory 1+2
* = Default-Setting
* = Default-Setting
* = Default-Setting
* = Default-Setting
Bootjumper JP11
Regular Program-Execution open
Program-Download into the closed*
Flash/external RAM
* = Default-Setting
* = Default-Setting
USB-detection JP12
VCC > 4,4V open*
VCC < 4,4V closed
* = Default-Setting
* = Default-Setting
Clock Pulse J1 J2
Oscillator open 1+2
Quartz closed* 2+3*
* = Default-Setting
5 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.
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.
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.
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
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: Reserved bits are not to be changed, the default value (0) has to remain.
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
6 Flash-Memory
Should this software be erased from the Flash device without having
an equal replacement, reprogramming of the Flash is no longer
possible !
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.
1: The divisor latch access bit (DLAB) is the most significant bit of the line control register
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.
USB-socket P3
2 1 Pin 1: VCC
Pin 2: D-
Pin 3: D+
3 4
Pin 4: GND
10 Technical Specifications
Additional specifications:
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.
12 FlashTools
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.
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.
1: configurations with other switches to enter programming mode are available on demand
After having successfully started the FlashTools you will see the start
menu (s. Figure 18). Here you can select either Flash or RAM-
download.
======================================================================
FLASH/RAM-Download-Utility for Altera based modul V2.17
======================================================================
(c) 1996, PHYTEC Meßtechnik GmbH, D-55129 Mainz
> Command:
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.
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
Document: kitCON-541
Document number: L-314e_2, April 1999
Submitted by:
Customer number:
Name:
Company:
Address:
Return to:
PHYTEC Technologie Holding AG
Postfach 100403
D-55135 Mainz, Germany
Fax : +49 (6131) 9221-33