80C32MODULE ______________________80C32 Module 80C32 Module General Description The Maxim 80C32 microcontroller (µC) module is intended for use with this and other Maxim evaluation kits (EV kits). It contains the 80C32 µC, RS-232 interface, 8kbytes of EPROM, 32kbytes of static RAM, and address decoding logic. A 40-pin connector mates with a connector found on Maxim EV kits designed to interface with the 80C32 module. ____80C32 Module Component List DESIGNATION C1, C2 C4, C5, C6, C7, C8, C9, C10, C11, C12 QTY 2 C3, C13, C14 3 D1 J1 J2 R1 RS1 SW1 SW2 IC1 IC2 IC3 IC4 IC5 IC6 IC7 IC8 IC9 IC10 Y1 None 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 None 1 None None 4 1 12 9 DESCRIPTION 15pF ceramic capacitors 0.1µF, 50V ceramic capacitors 22µF, 16V radial electrolytic capacitors 1N4001 diode 40-pin right-angle male connector DB9 right-angle socket 620Ω resistor 10kΩ 10-pin, 9-resistor SIP Power switch Reset switch 80C32 MAX233CPP 27C64 74HCT573 74HCT139 74HCT08 74HCT245 62256 78M05 MAX707CPA 11.059MHz crystal 2-pin power connector 28-pin 600-mil socket for IC3 (the EPROM) Rubber feet 3.00" x 5.50" PC board The module is connected to an IBM-compatible personal computer over a serial communications port. Software provided with each EV kit runs on the computer and controls the unit consisting of the 80C32 module and EV kit. The program uses a routine stored in the 27C64 EPROM to download special 80C32 code for each kit. The downloaded code controls the EV kit and, together with the program running on the personal computer, displays the output data. The board operates from a single 8V to 22V supply. Both the pre-regulated and regulated +5V levels are available to the EV kit through the 40-pin connector. 80C32 Module Power Supply The Maxim 80C32 module requires an input of 8V to 22V for normal operation. An on-board 78M05 power regulator supplies the 5V required for the logic on the module, and any 5V requirements for the EV kit attached to the 40-pin connector. The pre-regulated voltage is also available on the data connector. The source must be capable of supplying 100mA for the module and meeting the load requirements of the EV kit. Microprocessor Supervisor A MAX707 on the module monitors the 5V logic supply, generates the power-on reset, and produces a reset pulse whenever the reset button is pressed. A watchdog function was not included because they frequently interfere while debugging programs, and debugging is a prime function of this board. 80C32 Microcontroller The 80C32 is a member of the popular Intel 8051 family of µCs. It is a low-power CMOS version that requires external ROM for program storage, 256 bytes of internal RAM, and four 8-bit I/O ports. Three of the ports are required by the system for serial communications and memory control. The fourth port (P1) is available through the data connector. The 80C32 communicates with the PC over a serial RS232 link. A MAX233 acts as a level shifter between the ±15V RS-232 signals and the TTL levels of the 80C32. ______________________________________________________________________________________ MAX186 Evaluation System/Evaluation Kit Port 0 (pins 32-39) of the 80C32 multiplexes the lower eight bits of memory address and the eight bits of read/write data. The lower eight bits of address data are latched during each I/O cycle by the 74HCT573 octal latch. The latch is controlled by the address latch enable (ALE) signal of the 80C32. Port 2 (pins 21-28) of the 80C32 supplies the upper eight bits of address information. The port 3 pins (10-17) provide several unrelated functions. Pins 10 and 11 are used as the receive data (RxD) and transmit data (TxD) pins of the RS-232 link. Pins 16 and 17 act as the write (WR) and read (RD) control signals for the data I/O cycles. Four other pins are configured as interrupt and timer controls, but are not used on this board. Memory The board has a 27C64 EPROM containing code for initializing the 80C32 and downloading additional program code to the 62256 RAM. After a reset, the EPROM resident code initializes the 80C32, determines the address range of the RAM, sets the RS-232 baud rate to 1200, and waits for communications from the PC. Receiving any character will prompt the program to send an initial banner that includes the program name, revision level, and boundaries of the on-board RAM. The 62256 CMOS (32kbyte) static RAM is used to hold program code for the various Maxim EV kits that use the 80C32 module as the controller. Programs are transferred from disk to the RAM using software running on a personal computer, such as MAXLOAD or other programs provided with Maxim EV kits. Programs written to execute from this RAM start at 4000 (HEX) and are typically less than 4kbytes long. The remaining RAM is available for data storage. Address Ranges Logic on the module board generates various enable signals for different address ranges. The ROM and RAM enable signals are fed directly to the respective chips. Several additional signals (CS0-CS3) are available on the data connector to be used by Maxim EV kits. Table 1 outlines the address range for each of the elements found on the 80C32 module. Table 1. Address Ranges in Hexadecimal ADDRESS RANGE (HEX) 0000 4000 C000 D000 E000 F000 ➔ ➔ ➔ ➔ ➔ ➔ ENABLE SIGNAL 3FFF BFFF CFFF DFFF EFFF FFFF ROM RAM CS0 CS1 CS2 CS3 Data I/O Connector A 40-pin connector mounted on the edge of the printed circuit board provides connection between the µC module and other Maxim EV kits. Both power and digital signals are transferred via the connector. To join the module board with an EV kit, carefully align and insert the pins on the connector with the mating 40-pin female connector of the kit. The pin functions are listed in Table 2. Table 2. I/O Connector Pin Functions PIN 1-4 5, 6 7, 8 9 10 11 12 13 14 15-18 19-26 27-34 35-40 FUNCTION Ground Pre-regulator input Regulated +5V RD WR CS0 CS1 CS2 CS3 ADDR0-ADDR3 DB0-DB7 P1.0-P1.7 Reserved DESCRIPTION Read strobe Write strobe Address C000-CFFF Address D000-DFFF Address E000-EFFF Address F000-FFFF Lowest 4 bits of address 8-bit data bus 8 bits of port 1 ______________________________________________________________________________________ 13 Evaluates: MAX186 The MAX233 also generates the output voltages necessary to drive RS-232 lines. Evaluates: MAX186 MAX186 Evaluation System/Evaluation Kit Software Architecture Software for EV kits using the Maxim 80C32 module is divided into three elements: the interface program running on an IBM-compatible PC, a module program located in EPROM, and a program supplied on disk that is transferred to the RAM located on the module. EPROM Resident Program The EPROM resident program initializes the 80C32, establishes communications over the RS-232 link, verifies the static RAM, and downloads other programs. Its operation starts on power-up and whenever the reset button is pressed. After reset, the program waits indefinitely to receive a character over the RS-232 port. When the first character is received, a logon banner identifying the module and firmware revision is transmitted. 14 Immediately following transmission of the logon banner, the program runs a checker routine for the on-board 256kbit static RAM. The RAM is filled with several patterns and then read to verify that each pattern has been retained. A pass or fail indication is displayed on the personal computer after each pass. EV kit software requires proper operation of the RAM. Do not attempt to use the board if any of the RAM checks fail. Two other programs for the EV kits are provided on a floppy disk shipped with each kit. One program acts as the user interface and transmits commands to the 80C32 module. The other is an 80C32 application program that executes from the RAM located on the module. The procedure for loading the programs varies with each kit, so follow the instructions provided. ______________________________________________________________________________________ MAX186 Evaluation System/Evaluation Kit Evaluates: MAX186 Figure 5. 80C32 Module Component Placement Guide (x2) ______________________________________________________________________________________ 15 Evaluates: MAX186 MAX186 Evaluation System/Evaluation Kit 34 P1.0-P1.7 27-34 ALL D9 MNEMONICS REFER TO THE HOST (DTE) 5 GND 1 DCD 4 DTR 6 DSR 27 2 TXD 3 RXD 7 RTS 8 CTS MAX233A U2 +5V 2 +5V 5 T1 2 OUT T1IN 18 T2 T2IN 1 OUT 4 R1 R1 3 19 R2IN R2OUT 20 OUT IN 11 8 C1+ C2+ 15 13 C1C2+ 10 V- 12 C216 17 VC214 GND GNDV+ 6 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 9 9 MAX707 +5V U10 1 MR RESET 2 RESET V SW1 3 CC GND N.C. RESET 4 PFO PFI P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RXD TXD -INT0 -INT1 T0 T1 -WR -RD RST C1 27pF18 8 7 6 5 AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 ALE -EA A15 A14 A13 A12 A11 A10 A9 A8 39 38 37 36 35 34 33 32 30 31 28 27 26 25 24 23 22 21 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 11 2 1 Q1 D1 3 4 74HCT 5 573 6 U4 7 D 8 9 D8 Q8 15 14 13 12 11 10 9 8 XTAL2 29 XTAL1 -PSEN XX1 11.059MHz C2 1 U6 HCT08 27pF 3 2 +5V 4 U6 HCT08 6 +5V 12 5 19 0 0 18 1 1 17 2 2 16 3 3 15 4 4 14 5 5 13 6 6 12 7 7 8 9 10 11 12 13 10 9 8 7 6 5 4 3 25 24 21 23 2 26 22 20 A0 O0 A1 O1 A2 O2 A3 O3 A4 O4 A5 O5 A6 O6 A7 O7 A8 27C64 A9 U3 A10 A11 VPP A12 N.C./A13 PCM C E 11 12 13 15 16 17 18 19 +5V 1 27 19 14 2 A0 0 3 A1 U5 1 15 HCT139 2 1 EN 3 4 5 6 7 9 U6 HCT08 8 10 11 13 U6 HCT08 Figure 6. 80C32 Module Schematic 16 ______________________________________________________________________________________ MAX186 Evaluation System/Evaluation Kit +5V RS1 U8 62256 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 9 8 7 6 5 4 3 25 24 21 23 2 26 1 20 22 27 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 -CS -OE -WR I/O1 I/O2 I/O3 I/O4 I/O5 I/O6 I/O7 I/O8 11 12 13 15 16 17 18 19 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 1 19 2 DIR EN B1 3 A1 4 74HCT 5 /245 6 U7 7 H 8 9 A8 B8 10k 18 17 16 15 14 13 12 11 12 0 11 1 LS139 10 2 U5 15 9 EN 3 13 ADDR0-4 15-18 DB00-DB07 19-26 14 A0 13 A1 12 3 Evaluates: MAX186 0 1 2 -CS0 - -CS3 11-14 -RD 9 -WR 10 RESERVED 35-40 +5V POWER LED R1 620Ω 70M05 U9 C4-C12 0.1µF + C3 47µF + C13 47µF VOUT VIN +5V 7-8 V++ 5-6 SW2 POWER SWITCH VIN POWER CONNECTOR C14 47µF GND GND 1-4 Figure 6. 80C32 Module Schematic (continued) ______________________________________________________________________________________ 17 Evaluates: MAX186 MAX186 Evaluation System/Evaluation Kit Figure 7. 80C32 Module Component- Side Layout (x2) 18 ______________________________________________________________________________________ MAX186 Evaluation System/Evaluation Kit Evaluates: MAX186 Figure 8. 80C32 Module Solder-Side Layout (x2) ______________________________________________________________________________________ 19 Evaluates: MAX186 MAX186 Evaluation System/Evaluation Kit Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time. 20 ___________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 (408) 737-7600 © 1996 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products.