background image

Preface

©

 2006 Microchip Technology Inc.

DS51571B-page 3

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:

DOCUMENTATION CONVENTIONS

Description

Represents

Examples

Arial font:

Italic characters

Referenced books

MPLAB

®

 IDE User’s Guide

Emphasized text

...is the 

only

 compiler...

Initial caps

A window

the Output window

A dialog

the Settings dialog

A menu selection

select Enable Programmer

Quotes

A field name in a window or 
dialog

“Save project before build”

Underlined, italic text with 
right angle bracket

A menu path

File>Save

Bold characters

A dialog button

Click

 OK

A tab

Click the 

Power

 tab

N‘Rnnnn

A number in verilog format, 
where N is the total number of 
digits, R is the radix and n is a 
digit.

4‘b0010, 2‘hF1

Text in angle brackets < >

A key on the keyboard

Press <Enter>, <F1>

Courier New font:

Plain Courier New

Sample source code

#define START

Filenames

autoexec.bat

File paths

c:\mcc18\h

Keywords

_asm, _endasm, static

Command-line options

-Opa+, -Opa-

Bit values

0, 1

Constants

0xFF, ‘A’

Italic Courier New

A variable argument

file

.o

, where 

file

 can be 

any valid filename

Square brackets [ ]

Optional arguments

mcc18 [options] 

file

 

[options]

Curly brackets and pipe 
character: { | }

Choice of mutually exclusive 
arguments; an OR selection

errorlevel {0|1}

Ellipses...

Replaces repeated text

var_name [, 
var_name...]

Represents code supplied by 
user

void main (void)
{ ...
}

Summary of Contents for MCP212X

Page 1: ...2006 Microchip Technology Inc DS51571B MCP212X Developer s Daughter Board User s Guide...

Page 2: ...is a service mark of Microchip Technology Incorporated in the U S A All other trademarks mentioned herein are property of their respective companies 2006 Microchip Technology Incorporated Printed in t...

Page 3: ...Operation 9 2 1 Introduction 9 2 2 Features 10 2 3 Getting Started 11 2 4 Making a Demo System 16 2 5 MCP212X Developer s Daughter Board Description 18 Appendix A Schematic and Layouts 21 A 1 Introdu...

Page 4: ...ology Inc Appendix E Using the MCP212X Developer s Daughter Board with the PICDEM FS USB Demo Board 37 E 1 Demonstration with the PICDEM FS USB Demo Board 37 Appendix F Configuring the HyperTerminal P...

Page 5: ...story NOTICE TO CUSTOMERS All documentation becomes dated and this manual is no exception Microchip tools and documentation are constantly evolving to meet customer needs so some actual dialogs and or...

Page 6: ...ppendix B Bill Of Materials BOM Lists the parts used to build the MCP212X Developer s Daughter Board Appendix C Board Testing Discusses the testing of the MCP212X Developer s Daughter Board in several...

Page 7: ...ialog button Click OK A tab Click the Power tab N Rnnnn A number in verilog format where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle brackets A key on t...

Page 8: ...rd for IR Sniffing This technique can assist in the debugging of an IrDA standard system The following documents may be useful depending on which PICDEM demo board you are using with the MCP212X Devel...

Page 9: ...oduct selector and ordering guides latest Microchip press releases listing of seminars and events listings of Microchip sales offices distributors and factory representatives CUSTOMER SUPPORT Users of...

Page 10: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 6 2006 Microchip Technology Inc NOTES...

Page 11: ...CP2122 TX and RX signals can either be connected jumpered directly to the RS 232 line driver or to the PICmicro MCU s RX and TX signals The PICmicro MCU could process that data and then send it out of...

Page 12: ...MCP212X Developer s Daughter Board Kit includes The MCP212X Developer s Daughter Board with MCP2122 installed A MCP2120 sample device MCP212X Developer s Daughter Board User s Guide Electronic versio...

Page 13: ...ected to your system When the MCP212X Developer s Daughter Board is used in conjunction with one of the low cost PICDEM Demo Boards it demonstrates the implementation of an embedded system with an IrD...

Page 14: ...nnector Jumpers which can be used by the PICDEM demo board firmware program to determine the mode of operation 8 pin DIP socket for the installation of the MCP2122 14 pin DIP socket for the installati...

Page 15: ...Header HD1 7 Jumpers to route the TX RX and 16XCLK signals 8 Jumpers to select the baud rate and mode 9 Footprint for two different optional optical transceiver circuits Vishay TFDU 4100 and Agilent H...

Page 16: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 12 2006 Microchip Technology Inc FIGURE 2 1 MCP212X DEVELOPER S DAUGHTER BOARD COMPONENT FLOOR PLAN...

Page 17: ...ons between the MCP2120 s RX TX and 16XCLK signals as well as the header s RX TX and 16XCLK signals FIGURE 2 2 JMP1 JP6 JMP2 AND JMP3 JP7 CONFIGURATIONS 16XCLK Source JMP1 JP6 RX RX to H1 RC7 RXD 16XC...

Page 18: ...RA0 signal JP2 is connected to the header s RA1 signal JP3 is connected to the header s RC0 signal and JP4 is connected to the header s RC1 signal These signals are also connected to the MCP2120 s BAU...

Page 19: ...gnal Connected to VDD JP3 Hardware control of Header RC0 signal and MCP2120 BAUD2 signal S Signal Connected to VSS O Signal Connected to VDD JP4 Hardware control of Header RC1 signal and MCP2120 MODE...

Page 20: ...n be used to demonstrate the MCP212X Developer s Daughter Board System Setup The system setup requires a PC with two serial communication ports UARTs and HyperTerminal the system application program T...

Page 21: ...yte that is received is echoed in the opposite case lowercase uppercase and uppercase lowercase The PICDEM FS USB Demo Board only supports Echo mode The source code for these programs are available fo...

Page 22: ...CP2122 Data Sheet Infrared Encoder Decoder DS21894 MCP2120 Data Sheet Infrared Encoder Decoder DS21618 AN946 Interfacing the MCP2122 to the Host Controller DS00946 2 5 2 1 MCP2122 OPERATION The MCP212...

Page 23: ...2 7 the MCP2120 RESET input is connected to the RESET output of the Host Controller The EN input can be either hard wired or controlled by the Host Controller Pin Name Pin Number PDIP Pin Type Buffer...

Page 24: ...HSDL 3000 Jumpers are used to allow all three implementations to be installed but with only one connected to the MCP2120 TXIR and RXIR pins 2 5 4 Signal Header To allow easy access to many of the sys...

Page 25: ...ION This appendix contains the following schematics and layouts for the MCP212X Developer s Daughter Board Board Schematic Headers and Jumpers Board Schematic Circuitry Board Component Layer Board Top...

Page 26: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 22 2006 Microchip Technology Inc A 3 BOARD SCHEMATIC PAGE 1 M PICDEM 2 PICtail Daughter Board PICtail Daughter Board...

Page 27: ...hematic and Layouts 2006 Microchip Technology Inc DS51571B page 23 A 4 BOARD SCHEMATIC PAGE 2 M 6 TXIR 3 OSC2 9 BAUD1 12 TX 7 MODE 1 VDD 4 R E SE T 5 RXIR 8 BAUD2 10 BAUD0 11 RX 14 VSS 13 EN 2 OSC1 CL...

Page 28: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 24 2006 Microchip Technology Inc A 5 BOARD LAYOUT COMPONENT LAYER...

Page 29: ...Schematic and Layouts 2006 Microchip Technology Inc DS51571B page 25 A 6 BOARD LAYOUT TOP LAYER...

Page 30: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 26 2006 Microchip Technology Inc A 7 BOARD LAYOUT BOTTOM LAYER...

Page 31: ...X14SG 1 H2 2x10 Male connector Header Jameco Valuepro 7000 2X10SG 1 HD1 1x14 Male connector Header Jameco Valuepro 7000 1x14SG 3 JMP1 JMP2 JMP3 1x3 Jumper Stakes Male Jameco Valuepro 7000 1x3SG 7 JP1...

Page 32: ...um SMT 0 C8 4 7 F 16V SMT 0 C9 0 1 F SMT Panasonic ECG ECJ 2VB1C104K 0 JP1A JP1B JP1C JP2A JP2B JP2C 1x2 Jumper Stakes Male Jameco Valuepro 7000 1x2SG 0 R8 6 8 SMT 0 R9 14 SMT 0 R10 47 SMT 0 R11 0 SMT...

Page 33: ...nd RXD signals Header 1 16XCLK signal Header 2 TX2 and RX2 signals JP4 JP6 JP7 C 2 WHAT IS NOT TESTED The following portions of the board are NOT tested MCP2120 and crystal circuitry TFDU 4100 and cir...

Page 34: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 30 2006 Microchip Technology Inc NOTES...

Page 35: ...D 1 SYSTEM BLOCK DIAGRAM The firmware for these demos is available on the Microchip web site as well as on the AIPD Evaluation Board CD ROM The filename is 00063 HPC asm This code must be programmed i...

Page 36: ...18 Note 1 Shaded values indicate a error that is larger than should be used 2 The following shows the PICDEM Demo Board device frequencies PICDEM HPC Explorer Demo Board has a 10 MHz crystal installed...

Page 37: ...o Board s DB 9 connector and then to the PC The PICDEM HPC Explorer Demo Board is used to determine the communication baud rate 9600 via the JP3 JP2 and JP1 jumper states Given this state the PICmicro...

Page 38: ...Unit Apply power to the unit via the 9V power supply On the System 2 Unit The green power LED D will turn on 7 On the System 2 Unit Connect the PC serial port cable that is connected to COM2 8 On the...

Page 39: ...to the PC while the System 2 unit is not connected though it still needs to be powered The PICDEM HPC Explorer Demo Board is used to determine the communication baud rate 9600 via the JP3 JP2 and JP1...

Page 40: ...ived Alpha character changing the case uppercase to lowercase and lowercase to uppercase 6 On the System 2 Unit Apply power to the unit via the 9V power supply On the System 2 Unit The green power LED...

Page 41: ...DM163025 This system operates in a stand alone mode and will echo the characters it receives changing the case of the received alpha character Figure E 1 shows a block diagram of the demonstration sys...

Page 42: ...d values indicate a error that is larger then should be used 2 The following shows the PICDEM Demo Board device frequencies PICDEM HPC Explorer Demo Board has a 10 MHz crystal installed 4xPLL 40 MHz P...

Page 43: ...needs to be powered The PICDEM FS USB Demo Board is used to determine the communication baud rate 9600 via the JP3 JP2 and JP1 jumper states Given this state the PICmicro MCU can then supply the 16XC...

Page 44: ...e 6 On the System 2 Apply power to the unit via the 9V power supply On the System 2 The green power LED D will turn on 7 On the System 1 Unit Depress and release Switch 2 S2 MCLR 8 On the System 2 Dep...

Page 45: ...settings of the HyperTerminal program in the Windows operating system You should save each configuration of the HyperTerminal program in order to easily distinguish which HyperTerminal program window...

Page 46: ...nal PROGRAM PROPERTIES CONNECT TO WINDOW This will open up the Port Settings window The port settings should be configured as shown in Figure F 3 After configuring the port settings select OK The Figu...

Page 47: ...minal PROGRAM PROPERTIES SETTINGS WINDOW Ensure that your settings match the settings shown Select the OK button The window in Figure F 4 will again be shown Select the Input Translation button This w...

Page 48: ...MCP212X Developer s Daughter Board User s Guide DS51571B page 44 2006 Microchip Technology Inc FIGURE F 6 HyperTerminal PROGRAM INPUT TRANSLATION WINDOW...

Page 49: ...Configuring the HyperTerminal Program 2006 Microchip Technology Inc DS51571B page 45 NOTES...

Page 50: ...21 5407 5066 China Shenyang Tel 86 24 2334 2829 Fax 86 24 2334 2393 China Shenzhen Tel 86 755 8203 2660 Fax 86 755 8203 1760 China Shunde Tel 86 757 2839 5507 Fax 86 757 2839 5571 China Wuhan Tel 86 2...

Page 51: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip MCP212XEV DB...

Reviews: