DM163012 Microchip Technology, DM163012 Datasheet

BOARD DEMO PICDEM FOR 16C781/782

DM163012

Manufacturer Part Number
DM163012
Description
BOARD DEMO PICDEM FOR 16C781/782
Manufacturer
Microchip Technology
Datasheet

Specifications of DM163012

Supported Devices
PIC16C781/782
Interface Type
Serial
Processor To Be Evaluated
PIC16C781/782
For Use With
PIC16C781/782
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
M
PICDEM™ MSC1
USER’S GUIDE
 2001 Microchip Technology Inc.
DS41178A

Related parts for DM163012

DM163012 Summary of contents

Page 1

... Microchip Technology Inc. M PICDEM™ MSC1 USER’S GUIDE DS41178A ...

Page 2

... Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2001, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system ...

Page 3

... Starting Communications with the Evaluation Tool ........................ 9 Chapter 3. Tutorial/Demo 3.1 Digital-to-Analog (DAC) Module Configuration ............................. 23 Appendix A. PICDEM™ MSC1 Schematics A.1 Introduction ................................................................................... 35 A.2 Highlights ...................................................................................... 35 A.3 Schematics ................................................................................... 36 Index ......................................................................................................... 39 Worldwide Sales and Service................................................................. 40  2001 Microchip Technology Inc. PICDEM™ MSC1 USER’S GUIDE Table of Contents DS41178A-page iii ...

Page 4

... PICDEM™ MSC1 USER’S GUIDE NOTES: DS41178A-iv  2001 Microchip Technology Inc. ...

Page 5

... Chapter 3: Tutorial/Demo - Provides an example of how you can con- • Appendix A: Schematics – Provides the schematics and board layout • PICDEM™ MSC1 Worldwide Sales and Service – Lists Microchip  2001 Microchip Technology Inc. PICDEM™ MSC1 USER’S GUIDE Preface is and how to install it. PICDEM™ ...

Page 6

... This manual explains the general details and operation of the MCU family architecture and peripheral modules designed to complement the device data sheets. DS41178A-page 2 ® IDE User’s Guide (DS51025) ™ ™ User’s Guide with MPLINK ™ & MPLIB (DS33014) ® Microcontroller ®  2001 Microchip Technology Inc. ...

Page 7

... See the Microchip web page at http://www.microchip.com for other Microchip list servers. The Development Systems list names are: • Compilers • Emulators • Programmers • MPLAB • Otools (other tools)  2001 Microchip Technology Inc. ® ® Windows Manuals ® ® Internet Explorer ...

Page 8

... Plus, this line provides information on how customers can receive any currently available upgrade kits. The Hotline Numbers are: 1-800-755-2345 for U.S. and most of Canada, and 1-480-792-7302 for the rest of the world. DS41178A-page 4  2001 Microchip Technology Inc. ...

Page 9

... Assorted jumpers 1.3.2 Required Items The items required are: • PC running Windows 95 or newer operating system • • 9-pin RS-232 Cable  2001 Microchip Technology Inc. PICDEM™ MSC1 USER’S GUIDE installed Monitor Firmware, Example Arbitrary Waveform Power Supply DC DS41178A-page 5 ...

Page 10

... Figure 1.1. This completes the hardware installa- tion. Note: DS41178A-page 6 RS-232 connector RS-232 cable 9 V Power Connector DC Power Supply DC The AV LED and the V LED should be lit, indicating the Ana log and Digital Power Supplies are operating. Power Supply Serial Port  2001 Microchip Technology Inc. ...

Page 11

... Load and view the contents of the Special Purpose Registers needed to • Operate a dynamic conversion loop for scoping the Output of the DAC • Save the configuration file that you have created and insert it into your  2001 Microchip Technology Inc. Overview and Installation → ...

Page 12

... PICDEM™ MSC1 User’s Guide NOTES: DS41178A-page 8  2001 Microchip Technology Inc. ...

Page 13

... PICDEM MSC1 program icon on your desktop. The GUI Control Panel displays, as shown in Figure 2.1. 2.1.2 Using the GUI Control Panel Features Global to All Peripherals Figure 2.1: PICDEM™ MSC1 Control Panel  2001 Microchip Technology Inc. PICDEM™ MSC1 User’s Guide → Programs → PICDEM MSC1, or ...

Page 14

... Select the Communications Port that matches the one you are using for the serial communications with the Evaluation Board, as shown in Figure 2.3. DS41178A-page 10 Figure 2.2: Communications Setup Figure 2.3: Communications Port Selection Menu → Communications Setup  2001 Microchip Technology Inc. ...

Page 15

... Analog-to-Digital Converter (ADC) • Digital-to-Analog Converter (DAC) • Comparators and Operational Amplifier • Programmable Switch Mode Controller (PSMC)  2001 Microchip Technology Inc. → Enable Eval Board to begin communi- Figure 2.4: Enable Evaluation Board The MCLR function in Port A and the Dgtl Out: RB4 and DGtl In: RB5 functions are shown in gray when the GUI software is initially communicating with the Evaluation Board ...

Page 16

... If focus (i.e., clicking outside the box) is moved outside of the edit box before the <Enter> key is pressed, the box is restored to its original con- DS41178A-page 12 Figure 2.5: Data Font Selection  2001 Microchip Technology Inc. ...

Page 17

... Save - allows you to capture and save the GUI information and configu- • Save As... - same as Save, but allows you to change the name of the • Generate Code... - Creates an Initialization assembly code file that cor- • Exit - Closes and terminates the program.  2001 Microchip Technology Inc. and V DD REF ...

Page 18

... I/O functions are fully described in Section 3.0 of the PIC16C781/782 Data Sheet (DS41171). Use drop-down menu to configure Port bit functions. Register values are Read Only. Double-click on register name to read value from PICDEM MSC1 board. Figure 2.7: Input/Output Functions DS41178A-page 14 Input/Output  2001 Microchip Technology Inc. ...

Page 19

... Note 1: When the Read ADC Continuous Mode is checked, ADC readings are automatically updated about 10 times per second. Figure 2.8: Analog-to-Digital Converter Peripheral (ADC) Functions  2001 Microchip Technology Inc. Analog-to-Digital Converter (ADC) Read ADC Continuous Mode checkbox single ADC read button ...

Page 20

... DAC Register. DAC functions are fully described in Section 10.0 of the PIC16C781/782 Data Sheet (DS41171). Change DAC Output by moving slider or by entering desired value in Output text box Figure 2.9: Digital-to-Analog (DAC) Peripheral Functions DS41178A-page 16 Digital-to-Analog Converter (DAC)  2001 Microchip Technology Inc. ...

Page 21

... The preview window displays the waveform in an unsmoothed format that represents the expected DAC output. Figures 2.10 and 2.11 show examples of utility generated sine and triangle waveforms respectively.  2001 Microchip Technology Inc. Basic Functions DS41178A-page 17 ...

Page 22

... Timer Counts must be between 2 and 255 Figure 2.10: Sine Wave Example ( max) Output of DAC waveform will resemble this stepped pattern on a scope Figure 2.11: Triangle Waveform Example DS41178A-page 18 Frequency Divider for Timer0/WDT Frequency Divider for Timer0/WDT  2001 Microchip Technology Inc. ...

Page 23

... The Operational Amplifier (OPA) Module is fully described in Section 11.0 of the PIC16C781/782 Data Sheet (DS41171). Enabling the Op Amp automatically configures the GUI I/O pin functions. Figure 2.12: Comparators/Op Amp Peripheral Functions  2001 Microchip Technology Inc. Comparators/Op Amp option for both comparators. An external voltage refer- DAC ...

Page 24

... The Programmable Switch Mode Controller (PSMC) is fully described in Section 13.0 of the PIC16C781/782 Data Sheet (DS41171). Enabling the PSMC automatically configures the GUI I/O pin functions Figure 2.13: PSMC Peripheral Functions DS41178A-page 20 Programmable Switch Mode Controller (PSMC)  2001 Microchip Technology Inc. ...

Page 25

... Timer0 can operate as either a timer or a counter. The Timer0 Module is described in Section 5.0 of the PIC16C781/782 Data Sheet (DS41171). The Timer1 module is fully described in Section 6.0 of the PIC16C781/782 Data Sheet (DS41171). Internal External Figure 2.14: Timers / Peripheral Functions  2001 Microchip Technology Inc. Timers Basic Functions DS41178A-page 21 ...

Page 26

... The Configuration Word Setup Tool Area in the GUI is active only when the communications with the Evaluation Board have been turned off. The Configuration Word does not affect the PICDEM MSC1 board configuration. The Configuration Word is used at the beginning of Code files.  2001 Microchip Technology Inc. ...

Page 27

... Select the Pull-down menu Options munications between the GUI Control Panel and the PICDEM™ MSC1 . 3. Select the Input/Output tab on the GUI Control Panel, as shown in Figure 3.1.  2001 Microchip Technology Inc. PICDEM™ MSC1 User’s Guide Enabling the DAC Module → ...

Page 28

... Select the DAC tab on the Evaluation Tool Control Panel. The Control Panel displays the DAC controls, as shown in Figure 3.3. Note the DAC output is shown enabled. DS41178A-page 24 Figure 3.1: Selecting the Input/Output Tab Figure 3.2: Enabling the V DAC option and DAC Output  2001 Microchip Technology Inc. ...

Page 29

... The DAC register holds the digital value to be converted to analog output. Note: The TRISB and the ANSEL registers are the primary controls for the configu- ration of PORTB pins.  2001 Microchip Technology Inc. and TRISB<1>=1) DACON0 register shows all zeros before the DAC is enabled and configured. ...

Page 30

... Enable the DAC module by clicking the DAC ON radio button. The Control Panel changes to appear as shown in Figure 3.3. DS41178A-page 26 Figure 3.4: DAC Warning  2001 Microchip Technology Inc. ...

Page 31

... Figure 3.5: Enabling the DAC Module and Output 7. Select the Timer tab on the Evaluation Board Control Panel. The Timer0 and Timer1 controls display as shown in Figure 3.4. For this example, we will use the internal clock function, F Timer0.  2001 Microchip Technology Inc. Tutorial/Demo DACON0 shows (in red) ...

Page 32

... OSC Bit 5 of the OPTION_REG is set to a zero, indicating the Internal instruction cycle clock (F /4) has been selected. OSC Using the Arbitrary Waveform Feature Note Option_Reg changes value when clock source changes  2001 Microchip Technology Inc. ...

Page 33

... Select the Sine waveform button. The following waveform representing two periods of a sine wave is displayed, as shown in Figure 3.6: 11. Select the GO button. The following message appears, as shown in Figure 3.7:  2001 Microchip Technology Inc. Figure 3.7: Arbitrary Waveform Dialog Box Figure 3.8: Sine Waveform Selected Tutorial/Demo ...

Page 34

... Counts are automatically computed as a function of Timer0 fre- quency, number of points, period (or frequency), and prescaler value. You can decrease the Timer Count by increasing the pre- scale ratio. Figure 3.10: Setting the Prescaler Set Prescale to 1:4 to change Line Count to 250  2001 Microchip Technology Inc. ...

Page 35

... If you want a Configuration Word different from the PICDEM MSC1 configura- tion, you will need to turn off communications between the Evaluation Board and the GUI:  2001 Microchip Technology Inc. The Prescale values are grayed out when the timing loop is active. While the timing loop is active, you cannot change parameters. To change any parameters, you must stop the loop by clicking the STOP button or the EXIT button ...

Page 36

... A File Dialog displays, asking you to choose a folder or location for storing the *.inc file that will be generated. The generated file will look similar to the one shown in Figure 3.12. DS41178A-page 32 → Enable Eval Board to uncheck this Figure 3.13: Generate Code Option  2001 Microchip Technology Inc. ...

Page 37

... Insert interrupt service routine here Initialize ; Insert user code here  2001 Microchip Technology Inc. 0x3FFF org 0x000 goto Initialize org 0x004 BANKSEL PORTA movlw 0x20 movwf PORTA movlw 0xF0 movwf PORTB movlw 0x00 movwf T1CON movlw 0x00 movwf ADCON0 ...

Page 38

... PICDEM™ MSC1 User’s Guide NOTES: DS41178A-page 34  2001 Microchip Technology Inc. ...

Page 39

... This appendix contains schematics associated with the PICDEM™ MSC1. A.2 Highlights Topics covered in this appendix: • Evaluation Board Schematic • Parts Placement • Evaluation Board Hardware • Evaluation Board Firmware.  2001 Microchip Technology Inc. PICDEM™ MSC1 User’s Guide DS41178A-page 35 ...

Page 40

... R11 C1 mode Figure A.1: PICDEM™ MSC1 Schematic DS41178A-page 1µf GND 1µf 1µ 2PHDR C14 33pF C13 33pF RC R6 C10 .1µ C11 1µF 10µF COM COM 47µF C12 .1µF D1 3.3K R5 Red D2 3.3K R7 Red  2001 Microchip Technology Inc. ...

Page 41

... PICDEM™ MSC1 HARDWARE The supplied Evaluation Board consists of: • A PIC16C782 with the MONITOR firmware • Dual linear 5 volt DC supplies • An RS-232 interface • A generous prototyping area (see Figure A.2). Note:  2001 Microchip Technology Inc. PICDEM™ MSC1 Schematics V Jumper AV LED DD ...

Page 42

... A Break can be sent from the Hyperterminal by typing <CTRL><BREAK> together. DS41178A-page 38 jumpers connect the on-board linear regulators to the PIC16C782 cir- The A and V jumpers must be in place as shown when the VDD DD internal supply is the primary power source. and DD  2001 Microchip Technology Inc. ...

Page 43

... PICDEM™ MSC1 Hardware .......................... 37 Port Selection ................................................. 10 Programmable Switch Mode Controller (PSMC) ........................................................... 20 R Recommended Reading ................................... 2 Required Items ................................................. 5  2001 Microchip Technology Inc. PICDEM™ MSC1 USER’S GUIDE Index S Sample Initialization Assembly Code .............. 33 Schematics ..................................................... 36 Serial Communications with the PICDEM™ MSC1 Evaluation Board ............... 11 Setting the Prescaler ...

Page 44

... Korea Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea 135-882 Tel: 82-2-554-7200 Fax: 82-2-558-5934 Singapore Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore, 188980 Tel: 65-334-8870 Fax: 65-334-8850 Taiwan Microchip Technology Taiwan 11F-3, No. 207 ...

Related keywords