Beruflich Dokumente
Kultur Dokumente
Information contained in this publication regarding device applications and the like is intended by way of suggestion only. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information. Use of Microchips products as critical components in life support systems is not authorized except with express written approval by Microchip. 2000 Microchip Technology Incorporated. All rights reserved. The Microchip logo, name, PIC, and PICmicro are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. In-Circuit Serial Programming (ICSP) is a trademark of Microchip Technology Inc. All product/company trademarks mentioned herein are the property of their respective companies.
DS51221A
DS51221A
Table of Contents
Chapter 1. Introduction
1.1 1.2 1.3 Overview ......................................................................................... 1 Block Diagram ................................................................................ 2 Board Layout .................................................................................. 3
DS51221A-page iii
DS51221A-page iv
1.1.1
Features
Some of the more important features available on the Analog Driver Board are listed below: Sockets for PIC16C63, PIC16C54 and PIC12C5XX RS-232 connections to PIC16C63 socket On-board SRAM for storing data LCD display module Prototyping area Sockets for serial EEPROMs for storing calibration data Socket for 4-digit LED display module
DS51221A-page 1
counter 1
SRAM
counter 2
To PC
RS-232 Transceiver
PIC16C63
PIC16C54
2 x 16 LCD Display
PIC12CXX
DS51221A-page 2
1.3.1
Processor Sockets
As shown in Table 1.1, there are three processor sockets available on the Analog Evaluation Driver Board. These sockets allow the user flexibility in choosing which processor is best for their evaluation purposes. The table below shows which processors are compatible with each socket Table 1.1: Processor Socket Compatibility Processor Socket PIC16C6X Compatible Processors PIC16C62 PIC16C62A PIC16C63 PIC16C63A PIC16C54 PIC16C54A PIC12C509 PIC12C508
PIC16C5X PIC12CXX
DS51221A-page 3
All components on the Analog Evaluation Driver Board are capable of running down to 3V.
1.3.3
Jumpers
There are five jumpers located on the Driver Board. Only one of the jumpers is populated when the board comes from the factory. The location of each jumper is shown below in Figure 1.3. Note that Jumpers JP2, JP3, and JP5 are underneath the LCD Panel.
Address counter 1 SRAM Address counter 2 PIC16C63 XTAL Power Connections/ Regulator 2 x 25-Pin Daughter Board Connector
SW1 SW2
JP5
JP2
JP3
DS51221A-page 4
Introduction
1.3.3.1 Jumper JP1
Jumper JP1 is used to connect the In-Circuit Serial Programming (ICSP) connector to the PIC12C508 microcontroller. This jumper is not populated when delivered from the factory. This jumper connects GP1 to the D1 pin on the ICSP connector. It will also short GP1 to RB6 on the PIC16C63. This jumper should only be installed when the PIC12C508 microcontroller is being used and ICSP will be utilized.
1.3.3.2
Jumper JP2
Jumper JP2 connects a 10k Ohm pull-up resistor to the SDA line. This jumper is not populated when delivered from the factory. This jumper is necessary only if any I2C peripherals are being used as these devices use a open drain output on the data pin (SDA) and require a pull-up resistor for operation. If this jumper is installed, the operation any SPI peripherals may be affected by this resistor.
1.3.3.3
Jumper JP3
Jumper JP3 enables power to the serial LED display. This jumper is not populated when delivered from the factory.
1.3.3.4
Jumper JP4
Jumper JP4 is used to connect the ICSP connector to the PIC12C508 microcontroller. This jumper is not populated when delivered from the factory. This jumper connects GP0 to the D0 pin on the ICSP connector. It will also short GP0 to RB7 on the PIC16C63.This jumper should only be installed when the PIC12C508 microcontroller is being used and ICSP will be utilized.
1.3.3.5
Jumper JP5
Jumper JP5 is used to determine which microcontroller has control of the LCD display. This jumper comes from the factory with the jumper set to the PIC16C63 setting.
54
LCD
63
(Default) This sets the LCD display to be controlled by the PIC16C63 This sets the LCD display to be controlled by the PIC16C63
54
LCD
63
DS51221A-page 5
1.3.5
LED Display
A socket is provided for a 4-digit serial LED display, although this display must be purchased and installed by the user. It is made up of two separate display devices, a 3-digit display (Lite-On LTM8522) and a single digit display (LiteOn LTS6760 or compatible). These display devices include the LED driving circuitry and require no other components. Data to the display is sent using an SPI-type of command using chip select, clock and data lines.
A F E D Digit 1 G B C
Digit 2
Digit 3
Digit 4
Data Enable
Start A B C D E F G DP
Clock
Data for Digit 1 Data for Digit 2 Data for Digit 3 Data for Digit 4
Data
DS51221A-page 6
Introduction
1.3.6 Push-Button Switches
There are three push-button switches available on the Analog Evaluation Driver Board that are connected to the PIC16C63 socket. The table below outlines the connections for each of these switches. Each push button has a pull-up resistor attached to VDD, so the pin connected to the switch will normally be at a logic high level. Table 1.2: Push-Button Switch Connections on PIC16C63 SW1 Pin Number 7 Pin Function RA5 SW2 Pin Number 13 Pin Function RC2 MCLR Pin Number 1 Pin Function MCLR
1.3.7
RS-232 Connections
The RS-232 Port is connected only to the PIC16C6X socket. Port pins RC6 (TX) and RC7 (RX) are utilized for this purpose. The UART in the PIC16C6X can be utilized to easily transfer data to and from the processor. When the control board is under PC control, the RS-232 port will be utilized to transfer data and commands between the board and the PC. An RS-232 driver device is installed on the board to provide the voltage levels required for communication with a host computer.
1.3.8
Oscillator Options
The Analog Evaluation Driver Board provides oscillator options for PIC16C63 and PIC16C54 processor sockets. The PIC12C508 socket does not have access to the oscillator options as this device has an on-board oscillator. When delivered from the factory, the Driver Board has a 20 MHz oscillator installed in the socket on the board. The board provides the ability to use a standard crystal if required. The crystal is installed in the Y3 position and the capacitors C11 and C12 will also need to be installed. Please consult the data book to obtain information on the correct values of C11 and C12 based on the crystal frequency you plan on using. Figure 1.6 shows where each of the oscillator option sockets are located.
PIC12CXX
DS51221A-page 7
CNTR2
RESET
CLK
D3 D2 D1
PIC16C63 CNTR1
RC0 D12 RESET
RC1
CLK
D2 D1
CE OE R/W A14
SRAM
8
B0-B7 D0-D7 A1 A0
DS51221A-page 8
Introduction
; ; ; ;
portb ; present data to SRAM ; make sure data lines have settled
; toggle the SRAM R/W pin to write the data bcf bsf sramrw sramrw ; clear sram read/write bit ; set sram read/write bit
; now toggle the counters to increment sram address bsf bcf cntrclk cntrclk ; set counter clock high ; set counter clock low
Figure 1.8: Code segment for Writing Data to an Address in SRAM ;***************************************************** ; read_sram_addr (read sram address) ; ; this routine reads the contents of the sram at the current ; address set by the counters ;***************************************************** read_sram_addr bsf movlw movwf bcf bcf bsf bcf nop movfw bsf call return Figure 1.9: Code Segment for Reading SRAM Address STATUS,RP0 ; B11111111; TRISB ; STATUS,RP0 ; sramcs ; sramrw ; sramoe ; ; bank1 Set all bits in portb as inputs set bank 0 set sram cs low to enable set sram read/write to read mode set sram output enable low to enable outputs
portb ; get port b data inputs into w sramcs ; set sram cs high to disable inc_sram_addr; increment the SRAM address by 1
DS51221A-page 9
1 2
A0
A1 3 A2 4 Vss
CS
SO 3 WP 4 VSS
DS51221A-page 10
Introduction
NOTES:
DS51221A-page 11
DS51221A-page 12
DRIVER BOARD USERS GUIDE Chapter 2. Daughter Board Connections 2.1 Connecting a Daughter Board
The daughter board is connected to the Driver Board with a 50-pin header connector is shown in Figure 2.1. The male connector is on the Driver Board side.
Driver Board
Daughter Board
Figure 2.1: Connecting Daughter Board to Driver Board The daughter board pin connections are shown in Figure 2.2.
49 47 45 43 41 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9
50 48 46 44 42 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8
D G N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N AG D N D +5 V +5 V +5 V +9 V D
ND
5 6
3 4
1 2
DS51221A-page 13
DS51221A-page 14
DRIVER BOARD USERS GUIDE Appendix A. Driver Board Schematic and Diagrams A.1 Introduction
This appendix contains the schematic and layouts for the driver board.
DS51221A-page 15
A.2
DS51221A-page 16
+5 TP8 J4 1 2 SCL/SCK C3 Power LED (GREEN) SDA/SDI 3 4 5 6 7 8 9 SW2 SW1 No pullup on MCLR SW3 12 13 R2 MCLR 14 15 16 17 18 19 20 21 22 The Wedge 0.1uF U5 24 8 7 6 5 VDD VSS GP5/OSC1/CLKIN GP0 GP4/OSC2 GP1 GP3/MCLR/VPP GP2/TOCK1 PIC12C508 C6 GP0 SDO GP1 SCL/SCK +5 25 1 SDA/SDI 2 GP4 3 GP3 4 23 GND 470 0.1uF GND J3 CLKIN GP3 JP4 1 1 JP1 ICSP MUST CLOSE JUMPERS WHEN PROGRAMMING 12C508/509 WITH ICSP ICSP 2 2 GP0 GP1 ICSP A B C SPI / I2C BUS (ALL 3) 54RA1 63RC3 SCL/SCK 54RA2 63RC4 SDA/SDI 54RA3 63RC5 SDO GP2 GP5 GP1 VPP VDD GND D0 D1 D2 MCLR J6 MCLR +5 GND RB7 RB6 Connections 1 2 3 4 5 6 SCL/SCK 54RA0 OSC1 OSC2 C18 TP7 DGND TP2 DGND TP9 SW1/TRG SDO SDA/SDI SCL/SCK 11 10 Y1 R1 XTAL-PDIP 4.7K R8 ADCS 63 ADCS 54 SW2 ADCS 09 R4 R3 470 470 C19 0.1uF TP1 +5V POR 2 Vin 10K +5 +5 Reset 1 R6 MCLR +5 Note: GP3 is input only. TP3 TP4 TP5 SCL/SCK SDA/SDI SDO TP6 +5V C20 0.1uF 4.7K SW1 22pF CLKIN 22pF C23 15 pF 470 C11 VDD OUT 4 3 C12 R7 SDO 1 +5v 1 2 NC GND XTAL-SOCKET .1uF Y3 +5 1 CHOKE +5 OSC2 2 OSC1 L1 +5A +5
U1 LM7805
+9V
Vin
1 +
D1 C2 .1uF
C1
.1uF
GND
+ U10
C9 1uF
+9V Supply
J1
+5
2 3 GND
C16 0.1uF
+5
J5
R12
10K
SDA/SDI 1 2 SDO 3 MCLR 4 5 6 RB0 7 RB1 8 RB2 9 RB3 RA2 RA3 TOCKI MCLR/VPP VSS RB0 RB1 RB2 RB3 RB7 RB6 RB5 RB4 RA1 RA0 OSC1/CLKIN OSC2/CLKOUT VDD RB7 RB6 RB5 RB4
18 17 16 15 14 13 12 11 10
330
14 13 12 11 10 9 8 7 6 5 4 3 2 1
LCDD3 LCDD2 LCDD1 LCDD0 LCDD3 LCDD2 LCDD1 LCDD0 LCD_E LCD_RW LCD_RS
SDO WGY_CS1 63RA0 WGY_CS2 +5A +5A SCL/SCK SDA/SDI WGY_CS3 AGND
LCD HEADER
+5
MCLR 63RA0 63RA1 63RA2 63RA3 63RA4 63RA5 +5 RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 CLKIN
+9V +9V SCL/SCK +5A SDA/SDI +5A SDO +5A 63RA0 AGND 54RA0 AGND GP0 AGND RB0 AGND RB1 AGND RB2 AGND RB3 AGND RB4 AGND RB5 AGND RB6 AGND RB7 AGND 63RA1 AGND 63RA2 AGND 63RA3 AGND 63RA4 AGND 63RA5 AGND 63RC0 AGND 63RC1 GND GND GND GND +5 +5 +5 SR25 HEADER50
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
C21 0.1uF
1 2 3 4 5 6 7 8 OSC1 9 OSC2 10 63RC0 11 63RC1 12 63RC2 13 SCL/SCK 14 MCLR/VPP RA0 RA1 RA2 RA3 RA4/TOCK1 RA5/SS VSS OSC1/CLKIN OSC1/CLKOUT RC0 RC1 RC2 RC3/SCK/SCL 63RC7 63RC6 SDO SDA/SDI +5 C15 PIC16C63 RB7 RB6 RB5 RB4 RB3 RB2 RB1 INT/RB0 VDD VSS RC7/RX RC6/TX RC5/SDO RC4/SDI/SDA
0.1uF U2
1 2 3 4 5 6 7 8 9 10 11 12 13 14
VDD R/W A13 A8 A9 A11 OE A10 CE I/08 I/07 I/06 I/05 I/04 +5 R9 LCD/LED ENABLE 1 10.1k JP5 LCD/LED_E_JUMPER GP4 +5 24LC01 RB3 3 63RA5 SDA/SDI SCL/SCK
28 27 26 25 24 23 22 21 20 19 18 17 16 15
63RA3 A13 A8 A9 A11 63RA2 A10 63RC2 RB7 RB6 RB5 RB4 RB3
28 27 26 25 24 23 22 21 20 19 18 17 16 15
SWITCHES (63 ONLY) 63RA4 SW1 TRIGGER!! 63RC2 SW2 CHIP SELECTS (ADCS NOT connected on Motherboard) LEDCS LCD/LED_E_JUMPER RB0 EECS 63RA0 54RA0 GP0 ADCS TRIGGER!! WGY_CS1 63RA4 WGY_CS2 63RA5 WGY_CS3 63RA1 LCD DISPLAY (63 AND 54 ONLY) LCDD0 RB4 LCDD1 RB5 LCDD2 RB6 LCDD3 RB7 LCD_E LCD/LED_E_JUMPER LCD_RW RB2 LCD_RS RB1 SHARED PORT PINS 63 B and 54 B are tied together SRAM / Counter connections 63RC2 63RA2 63RA3 63RC1 63RC0 B0-7
+5
C7
0.1uF C4
VCC GND T1out R1in R1out T1in T2in R2out MAX232A 01.uF
16 15 14 13 12 RX 11 TX 10 9
1 6 2 7 3 8 4 9 5 To RS-232 Port R5
A14 A13
1 2 3 4 5 6 7 8 LB25 LB26 LB27 LB28 LB29 LB30 LB32 LB31 C22 0.1 +5 +5 LB29 LB28 63RC1 C10 0.1uF LB27 LB32 LTS-6X60 C13 0.1uF C14 0.1uF 1 2 3 4 5 E D COM C DP U9 G F COM A B LB31 LB30 10 9 8 7 6 LB25 LB26 1 2 3 4 JP3 JUMPER +5 +5 LTM8522HR U8
D12 D6 D5 D7 D4 D3 D2 VSS
16 15 14 13 12 11 10 9
A12
10 +5
1 2 3 4 5 6 7 8 9 VSS VLED VLED B25 B26 B27 B28 B29 B30 BRT VDD CLK DATA CS B34 B33 B32 B31
18 17 16 15 14 13 12 11 10
63RC0
+5
+5
R11 10K
A10 A9 A7 A8
A11 A5 A4 A6 A3 A2 A1
JP2
1 2 3 4 5 6 7 8
D12 D6 D5 D7 D4 D3 D2 VSS
16 15 14 13 12 11 10 9
A0
1
SDA/SDI
DS51221A-page 17
DS51221A-page 18
Driver Board Schematic and Diagrams A.5 Driver Board Bottom View
DS51221A-page 19
AMERICAS (continued)
Toronto
Microchip Technology Inc. 5925 Airport Road, Suite 200 Mississauga, Ontario L4V 1W1, Canada Tel: 905-405-6279 Fax: 905-405-6253
ASIA/PACIFIC (continued)
Singapore
Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore 188980 Tel: 65-334-8870 Fax: 65-334-8850
ASIA/PACIFIC
Beijing
Microchip Technology, Beijing Unit 915, 6 Chaoyangmen Bei Dajie Dong Erhuan Road, Dongcheng District New China Hong Kong Manhattan Building Beijing 100027 PRC Tel: 86-10-85282100 Fax: 86-10-85282104
Taiwan, R.O.C
Microchip Technology Taiwan 10F-1C 207 Tung Hua North Road Taipei, Taiwan, ROC Tel: 886-2-2717-7175 Fax: 886-2-2545-0139
Atlanta
Microchip Technology Inc. 500 Sugar Mill Road, Suite 200B Atlanta, GA 30350 Tel: 770-640-0034 Fax: 770-640-0307
Boston
Microchip Technology Inc. 5 Mount Royal Avenue Marlborough, MA 01752 Tel: 508-480-9990 Fax: 508-480-8575
EUROPE
Denmark
Microchip Technology Denmark ApS Regus Business Centre Lautrup hoj 1-3 Ballerup DK-2750 Denmark Tel: 45 4420 9895 Fax: 45 4420 9910
Hong Kong
Microchip Asia Pacific Unit 2101, Tower 2 Metroplaza 223 Hing Fong Road Kwai Fong, N.T., Hong Kong Tel: 852-2-401-1200 Fax: 852-2-401-3431
Chicago
Microchip Technology Inc. 333 Pierce Road, Suite 180 Itasca, IL 60143 Tel: 630-285-0071 Fax: 630-285-0075
France
Arizona Microchip Technology SARL Parc dActivite du Moulin de Massy 43 Rue du Saule Trapu Batiment A - ler Etage 91300 Massy, France Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79
India
Microchip Technology Inc. India Liaison Office No. 6, Legacy, Convent Road Bangalore 560 025, India Tel: 91-80-229-0061 Fax: 91-80-229-0062
Dallas
Microchip Technology Inc. 4570 Westgrove Drive, Suite 160 Addison, TX 75248 Tel: 972-818-7423 Fax: 972-818-2924
Japan
Microchip Technology Intl. Inc. Benex S-1 6F 3-18-20, Shinyokohama Kohoku-Ku, Yokohama-shi Kanagawa 222-0033 Japan Tel: 81-45-471- 6166 Fax: 81-45-471-6122
Germany
Arizona Microchip Technology GmbH Gustav-Heinemann-Ring 125 D-81739 Mnchen, Germany Tel: 49-89-627-144 0 Fax: 49-89-627-144-44
Dayton
Microchip Technology Inc. Two Prestige Place, Suite 150 Miamisburg, OH 45342 Tel: 937-291-1654 Fax: 937-291-9175
Italy
Arizona Microchip Technology SRL Centro Direzionale Colleoni Palazzo Taurus 1 V. Le Colleoni 1 20041 Agrate Brianza Milan, Italy Tel: 39-039-65791-1 Fax: 39-039-6899883
Detroit
Microchip Technology Inc. Tri-Atria Office Building 32255 Northwestern Highway, Suite 190 Farmington Hills, MI 48334 Tel: 248-538-2250 Fax: 248-538-2260
Korea
Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea Tel: 82-2-554-7200 Fax: 82-2-558-5934
Los Angeles
Microchip Technology Inc. 18201 Von Karman, Suite 1090 Irvine, CA 92612 Tel: 949-263-1888 Fax: 949-263-1338
United Kingdom
Arizona Microchip Technology Ltd. 505 Eskdale Road Winnersh Triangle Wokingham Berkshire, England RG41 5TU Tel: 44 118 921 5858 Fax: 44-118 921-5835
01/21/00
Shanghai
Microchip Technology Unit B701, Far East International Plaza, No. 317, Xianxia Road Shanghai, 200051 P.R.C Tel: 86-21-6275-5700 Fax: 86-21-6275-5060
New York
Microchip Technology Inc. 150 Motor Parkway, Suite 202 Hauppauge, NY 11788 Tel: 631-273-5305 Fax: 631-273-5335
San Jose
Microchip Technology Inc. 2107 North First Street, Suite 590 San Jose, CA 95131 Tel: 408-436-7950 Fax: 408-436-7955
Microchip received QS-9000 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona in July 1999. The Companys quality system processes and procedures are QS-9000 compliant for its PICmicro 8-bit MCUs, KEELOQ code hopping devices, Serial EEPROMs and microperipheral products. In addition, Microchips quality system for the design and manufacture of development systems is ISO 9001 certified.
All rights reserved. 2000 Microchip Technology Incorporated. Printed in the USA. 2/00
Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchips products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, except as maybe explicitly expressed herein, under any intellectual property rights. The Microchip logo and name are registered trademarks of Microchip Technology Inc. in the U.S.A. and other countries. All rights reserved. All other trademarks mentioned herein are the property of their respective companies.
DS51221A-page 20