Advertisement

Quick Links

dsPICDEM™ 1.1 Plus
Development Board
User's Guide
© 2006 Microchip Technology Inc.
DS70099D

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the dsPICDEM 1.1 Plus and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Microchip Technology dsPICDEM 1.1 Plus

  • Page 1 1.1 Plus Development Board User’s Guide © 2006 Microchip Technology Inc. DS70099D...
  • Page 2 Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies.
  • Page 3: Table Of Contents

    4.6 Programming the Chip ................. 51 4.7 Debugging the Code ..................55 4.8 Additional Code Examples ................59 Chapter 5. dsPICDEM™ 1.1 Development Hardware 5.1 dsPICDEM™ 1.1 Plus Development Board Hardware Overview ....61 © 2006 Microchip Technology Inc. DS70099D-page iii...
  • Page 4 B.3 Commands ....................76 B.4 General Commands ..................78 B.5 Character commands ................... 79 B.6 Pixel commands ................... 81 B.7 Column commands ..................82 B.8 Examples ..................... 83 Index ..........................85 Worldwide Sales and Service ..................88 © 2006 Microchip Technology Inc. DS70099D-page iv...
  • Page 5: Preface

    In-Circuit Debugger 2 (ICD 2) using dsPIC30F devices. • Chapter 3: Demonstration Program Operation – This chapter presents a detailed description of the operational functionality of the sample code, which is preprogrammed into the dsPIC30F device. © 2006 Microchip Technology Inc. DS70099D-page 1...
  • Page 6 • Index – This section provides cross-reference listing of terms, features and sections of this document. • Worldwide Sales and Service – A listing of Microchip sales and service locations and telephone numbers worldwide. © 2006 Microchip Technology Inc. DS70099D-page 2...
  • Page 7 Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1} character: { | } arguments; an OR selection Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... © 2006 Microchip Technology Inc. DS70099D-page 3...
  • Page 8 ® MPLAB ASM30, MPLAB LINK30 and Utilities User’s Guide (DS51317) This document details Microchip Technology’s language tools for dsPIC DSC devices based on GNU technology. The language tools discussed are: • MPLAB ASM30 Assembler • MPLAB LINK30 Linker • MPLAB LIB30 Archiver/Librarian •...
  • Page 9 Consult this document for more information pertaining to the installation and features of the MPLAB Integrated Development Environment (IDE) Software. To obtain any of these documents, contact the nearest Microchip sales location (see back page) or visit the Microchip web site at: www.microchip.com. © 2006 Microchip Technology Inc. DS70099D-page 5...
  • Page 10 • Programmers – The latest information on Microchip programmers. These include ® ® the MPLAB PM3 and PRO MATE II device programmers and the PICSTART ™ Plus and PICkit 1 development programmers. © 2006 Microchip Technology Inc. DS70099D-page 6...
  • Page 11 Board with dsPIC33F and PIC24H/F devices (see Chapter 4. “Using dsPIC33F and PIC24H/24F Devices”). Revision C (September 2005) • Last Release of this Document. • Previous releases contained Advance Information that was updated in Revision C. © 2006 Microchip Technology Inc. DS70099D-page 7...
  • Page 12 1.1 Plus Development Board User’s Guide NOTES: © 2006 Microchip Technology Inc. DS70099D-page 8...
  • Page 13: Chapter 1. Introduction

    • Preprogrammed dsPIC30F6014A Plug-in Module (Figure 1-2) • 9V DC Power Supply • RS-232 Interface Cable • dsPICDEM™ 1.1 Plus Development Board Kit CD containing demonstration programs FIGURE 1-1: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD © 2006 Microchip Technology Inc. DS70099D-page 9...
  • Page 14: Dspicdemâ„¢ 1.1 Plus Development Board Features

    • Pad location for 80-pin TQFP dsPIC DSC device Serial Communication Channels • Two RS-232 communication channels • 6-pin terminal block and configuration jumper for RS-485 and RS-422 communication on UART1 from the dsPIC DSC device • Single CAN communication channel © 2006 Microchip Technology Inc. DS70099D-page 10...
  • Page 15: Supported Plug-In Modules

    • 2 x 50 prototyping header for user hardware expansion (header not installed) • Prototype area for user hardware SUPPORTED PLUG-IN MODULES The dsPICDEM™ 1.1 Plus Development Board supports these Plug-In Modules: • dsPIC30F6014A 80L Plug-In Module (MA300014) • dsPIC33FJ256GP710 100-to-80L Plug-In Module (MA330012) © 2006 Microchip Technology Inc. DS70099D-page 11...
  • Page 16: Running The Dspicdemâ„¢ 1.1 Plus Demonstration Program

    Switches SW2-SW4 select one of these three choices. Each choice offers a submenu, which provides for additional options using switches SW1-SW4. Refer to Chapter 3. “dsPIC30F Demonstration Program Operation” for full details on the demonstration code operation. © 2006 Microchip Technology Inc. DS70099D-page 12...
  • Page 17: Chapter 2. Using Dspic30F Devices

    There are four steps to this tutorial: 1. Create a project in MPLAB IDE. 2. Assemble and link the code. 3. Program the chip with the MPLAB ICD 2. 4. Debug the code with the MPLAB ICD 2. © 2006 Microchip Technology Inc. DS70099D-page 13...
  • Page 18: Creating The Project

    3. From the Project menu, select Project Wizard. 4. From the Welcome screen, click Next> to display the Project Wizard Step One dialog (see Figure 2-1). FIGURE 2-1: PROJECT WIZARD, STEP 1, SELECT A DEVICE © 2006 Microchip Technology Inc. DS70099D-page 14...
  • Page 19 C:\Program Files\Microchip\MPLAB ASM30 Suite \bin\pic30-id.exe 5. Click Next> to continue. The Project Wizard Step Three dialog displays (see Figure 2-3). Note: The tool locations for your environment may be different from those shown in this tutorial. © 2006 Microchip Technology Inc. DS70099D-page 15...
  • Page 20 1. In the Project Name text box, type MyProject. 2. Click Browse... and navigate to C:\Tutorial to place your project in the Tutorial folder. 3. Click Next> to continue. The Project Wizard Step Four dialog displays (see Figure 2-4). © 2006 Microchip Technology Inc. DS70099D-page 16...
  • Page 21 After the project wizard completes, the MPLAB IDE project window shows the Tut6014A.s file in the Source Files folder and the p30f6014A.gld file in the Linker Scripts folder (see Figure 2-5). ® FIGURE 2-5: MPLAB IDE PROJECT WINDOW © 2006 Microchip Technology Inc. DS70099D-page 17...
  • Page 22 MyProject.mcp is the project file. Double click the Tut6014A.s file in the project window to open the file. MPLAB IDE should now look similar to Figure 2-6. ® FIGURE 2-6: MPLAB IDE WORKSPACE WINDOWS © 2006 Microchip Technology Inc. DS70099D-page 18...
  • Page 23: Building The Code

    To build the code, select Build Options>Project from the Project> menu. The Build Options dialog displays, as shown in Figure 2-7. FIGURE 2-7: BUILD OPTIONS Browse to the location of the assembler Include folder. © 2006 Microchip Technology Inc. DS70099D-page 19...
  • Page 24 MPLAB ICD 2. 4. Click OK again to save these changes. The project is now ready to build. ® FIGURE 2-8: MPLAB LINK30 BUILD OPTIONS Check Link for ICD2 © 2006 Microchip Technology Inc. DS70099D-page 20...
  • Page 25: Programming The Chip

    Use the following procedures to program the dsPIC30F6014A device. 2.6.1 Set Up the Device Configuration 1. Use the Configure>Configuration Bits menu to display the configuration settings. 2. Set up the Configuration bits as shown in Figure 2-10. FIGURE 2-10: CONFIGURATION SETTINGS © 2006 Microchip Technology Inc. DS70099D-page 21...
  • Page 26 3. Connect the MPLAB ICD 2 to the dsPICDEM™ 1.1 Plus Development Board with the short RJ-11 (telephone) cable. 4. Apply power to the board. FIGURE 2-11: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD ® CONNECTED TO MPLAB ICD 2 IN-CIRCUIT DEBUGGER © 2006 Microchip Technology Inc. DS70099D-page 22...
  • Page 27 4. Select the Program tab. 5. Check Allow ICD 2 to select memories and ranges, as shown in Figure 2-13. This setting will speed up operations by programming only a small part of the total program memory. © 2006 Microchip Technology Inc. DS70099D-page 23...
  • Page 28 1.1 Plus Development Board User’s Guide FIGURE 2-13: SETTING PROGRAM MEMORY SIZE © 2006 Microchip Technology Inc. DS70099D-page 24...
  • Page 29: Debugging The Code

    Reset <F7> Single Step <F9> In addition, there are more functions available by right clicking on a line of source code. The most important of these are “Set Breakpoint” and “Run to Cursor”. © 2006 Microchip Technology Inc. DS70099D-page 25...
  • Page 30 #__SP_init, W15 #__SPLIM_init, W0 W0, SPLIM The linker also provides values for the __SP_init and __SPLIM_init constants to initialize the stack pointer (W15), since the linker determines what RAM is available for the stack. © 2006 Microchip Technology Inc. DS70099D-page 26...
  • Page 31 7. Press <F7> a few times and watch the values of TRISD and PORTD SFRs change. FIGURE 2-18: WATCH WINDOW DISPLAY Note: The value displayed for PORTD may be different on your system depending on what load is on PORTD. © 2006 Microchip Technology Inc. DS70099D-page 27...
  • Page 32 In this example, every time <F9> is pressed to run the code it sends one character to the display and stops at the breakpoint. After the first four spaces, the characters will start to appear on the LCD display. © 2006 Microchip Technology Inc. DS70099D-page 28...
  • Page 33: Chapter 3. Dspic30F Demonstration Program Operation

    Demo Main Menu, as shown in Figure 3-1. FIGURE 3-1: POWER-UP DISPLAY dsPIC30F 16-B IGITAL IGNAL ONTROLLER – S1 From this menu, pressing switch SW1 displays the menu options for the demonstration program, as shown in Figure 3-2. © 2006 Microchip Technology Inc. DS70099D-page 29...
  • Page 34 The program scans input pins AN4, AN5, AN6 and AN8 to sample and convert the values of the temperature sensor and potentiometer signals and delivers one sample of each of these signals to the LCD display. © 2006 Microchip Technology Inc. DS70099D-page 30...
  • Page 35 Figure 3-5. HyperTerminal will show a composite display of the data acquisition values at an update rate of 1.14 seconds. FIGURE 3-5: HYPERTERMINAL CONFIGURATION SETTINGS To return to the Menu Options display after running the Data Acquisition demo, press switch SW1. © 2006 Microchip Technology Inc. DS70099D-page 31...
  • Page 36 • Infinite Impulse Response (IIR) • Finite Impulse Response (FIR) Subsequently, their spectral components are estimated. The frequency estimate of the signal on pin AN3/RB3 is displayed on the first row of the DSP Operations display. © 2006 Microchip Technology Inc. DS70099D-page 32...
  • Page 37 To display peak-frequency on LCD detection Figure 3-8 shows the frequency response of the IIR filter implementation. The IIR filter is only employed for demonstrating filter operation. FIGURE 3-8: FREQUENCY RESPONSE: IIR FILTER © 2006 Microchip Technology Inc. DS70099D-page 33...
  • Page 38 DTMF TONE GENERATION CONTROLS Switch Function Moves blinking cursor to the next DTMF Tone digit Plays the DTMF tone associated with the digit selected by s2 Plays a predetermined sequence of ten DTMF tones © 2006 Microchip Technology Inc. DS70099D-page 34...
  • Page 39 • SPI 2 – Used to communicate to the 122 x 32 Addressable-Pixel LCD via the PIC18F242 LCD controller and MCP41010 digital potentiometer • 12-bit ADC – Used to convert multiple analog signals, including temperature and sine-wave signals generated by the MCP41010 digital potentiometer through a low-pass filter © 2006 Microchip Technology Inc. DS70099D-page 35...
  • Page 40: Data And Control Flow

    16 sample-convert sequences. The ADC samples channel AN3 (sine wave), AN4 (RP2), AN5 (RP3), AN6 (RP1) and AN8 (temperature sensor U9). Interrupts Peripheral interrupts are configured. Nested interrupts are enabled. © 2006 Microchip Technology Inc. DS70099D-page 36...
  • Page 41 The changes are communicated to the PIC18F242 LCD controller via the SPI 2 module. In the special case of the DTMF menu, the main routine may also kick off the DCI module operation when the user requests DTMF tone generation. © 2006 Microchip Technology Inc. DS70099D-page 37...
  • Page 42 PIC18F242 LCD controller on the expansion board at a data rate of 921.6 KHz (F /8). The LCD has a 4 row x 20-character display. All 80 characters are refreshed by the SPI 2 module. © 2006 Microchip Technology Inc. DS70099D-page 38...
  • Page 43: Dspic30F Demonstration Performance Metrics

    14.7456 and 29.4912 MIPS. Note: The demo code as supplied has specific timing parameters derived from the 7.3728 MHz crystal with the XTx4PLL mode. Changing the device time base will require modification of several time-specific parameters. © 2006 Microchip Technology Inc. DS70099D-page 39...
  • Page 44 Adding these three major timing metrics results in 44.34 mS. Therefore, this 44.34 mS cycle is repeated 22.55 times in a 1 second interval. Total MIPS required = 2.1 MIPS out of available 7.3728 MIPS. FIR filter specifications are listed in Table 3-5. © 2006 Microchip Technology Inc. DS70099D-page 40...
  • Page 45 Passband cutoff frequencies 200 Hz and 3850 Hz Stopband cutoff frequencies 100 Hz and 3990 Hz Sampling frequency 8000 Hz The filter coefficients and code were generated by the Digital Filter Design Tool. © 2006 Microchip Technology Inc. DS70099D-page 41...
  • Page 46: Board Self-Test Code Module Summary

    LCD. When pin J2-3 is connected to J5-2 and pin J2-2 is connected to J5-3, “OK” will appear on the lower right corner of the screen at power-up. © 2006 Microchip Technology Inc. DS70099D-page 42...
  • Page 47: Chapter 4. Using Dspic33F And Pic24H/24F Devices

    There are four steps to this tutorial: 1. Create a project in MPLAB IDE. 2. Compile and link the code. 3. Program the chip with the MPLAB ICD 2. 4. Debug the code with the MPLAB ICD 2. © 2006 Microchip Technology Inc. DS70099D-page 43...
  • Page 48: Creating The Project

    3. From the Project menu, select Project Wizard. 4. From the Welcome screen, click Next> to display the Project Wizard Step One dialog (see Figure 4-1). FIGURE 4-1: PROJECT WIZARD, STEP 1, SELECT A DEVICE © 2006 Microchip Technology Inc. DS70099D-page 44...
  • Page 49 2. Click Next> to continue. The Project Wizard Step Three dialog displays (see Figure 4-3). Note: The tool locations for your environment may be different from those shown in this tutorial. © 2006 Microchip Technology Inc. DS70099D-page 45...
  • Page 50 1. In the Project Name text box, type MyProject. 2. Click Browse... and navigate to C:\Tutorial to place your project in the Tutorial folder. 3. Click Next> to continue. The Project Wizard Step Four dialog displays (see Figure 4-4). © 2006 Microchip Technology Inc. DS70099D-page 46...
  • Page 51 6. When the summary screen displays, click Finish. After the project wizard completes, the MPLAB IDE project window shows the Tutorial.c file in the Source Files folder and the p33FJ256GP710.gld file in the Linker Scripts folder (see Figure 4-5). © 2006 Microchip Technology Inc. DS70099D-page 47...
  • Page 52 MyProject.mcp is the project file. Double click the Tutorial.c file in the project window to open the file. MPLAB IDE should now look similar to Figure 4-6. ® FIGURE 4-6: MPLAB IDE WORKSPACE WINDOWS © 2006 Microchip Technology Inc. DS70099D-page 48...
  • Page 53: Building The Code

    MPLAB ICD 2. 5. Click OK again to save these changes. The project is now ready to build. ® FIGURE 4-7: MPLAB LINK30 BUILD OPTIONS Check Link for ICD2 © 2006 Microchip Technology Inc. DS70099D-page 49...
  • Page 54 2. Observe the progress of the build in the Output window (Figure 4-8). 3. When BUILD SUCCEEDED displays you are ready to program the device. FIGURE 4-8: BUILD OUTPUT WINDOW Status shows BUILD SUCCEEDED © 2006 Microchip Technology Inc. DS70099D-page 50...
  • Page 55: Programming The Chip

    4. Connect the MPLAB ICD 2 to the PC with the USB cable (see Figure 4-10). 5. Connect the MPLAB ICD 2 to the dsPICDEM™ 1.1 Plus Development Board with the short RJ-11 (telephone) cable. 6. Apply power to the board. © 2006 Microchip Technology Inc. DS70099D-page 51...
  • Page 56 MPLAB IDE may need to download new firmware if this is the first time the MPLAB ICD 2 is being used with a dsPIC33F device. Allow it to do so. If any errors are shown, double click the error message to get more information. © 2006 Microchip Technology Inc. DS70099D-page 52...
  • Page 57 4. Select the Program tab. 5. Check Allow ICD 2 to select memories and ranges, as shown in Figure 4-12. This setting will speed up operations by programming only a small part of the total program memory. © 2006 Microchip Technology Inc. DS70099D-page 53...
  • Page 58 1.1 Plus Development Board User’s Guide FIGURE 4-12: SETTING PROGRAM MEMORY SIZE © 2006 Microchip Technology Inc. DS70099D-page 54...
  • Page 59: Debugging The Code

    Reset <F7> Single Step <F9> In addition, there are more functions available by right clicking on a line of source code. The most important of these are “Set Breakpoint” and “Run to Cursor”. © 2006 Microchip Technology Inc. DS70099D-page 55...
  • Page 60 0, the Reset location. The instruction at this location is goto __reset. This code is added by the linker to make the program branch to the initialization and main code located in the tutorial.c file. © 2006 Microchip Technology Inc. DS70099D-page 56...
  • Page 61 5. Click Add SFR to add the PLLFBD register to the Watch window. 6. Next, select CLKDIV from the pull-down list and click Add SFR. 7. Press <F7> a few times and watch the values of these SFRs change. FIGURE 4-17: WATCH WINDOW DISPLAY © 2006 Microchip Technology Inc. DS70099D-page 57...
  • Page 62 Refer to Section 12, “Important Notes”, in the Readme file for the MPLAB ICD 2.txt file located in the E:\MPLAB IDE\READMES directory for additional operational information. © 2006 Microchip Technology Inc. DS70099D-page 58...
  • Page 63: Additional Code Examples

    ADC is configured in 10-bit mode to sequentially scan AIN0, AIN1, AIN2, AIN3, AIN4 and AIN5 on Timer 3 interrupt. It takes six Timer3 time-out periods to scan through all the six analog inputs. © 2006 Microchip Technology Inc. DS70099D-page 59...
  • Page 64 1.1 Plus Development Board User’s Guide NOTES: © 2006 Microchip Technology Inc. DS70099D-page 60...
  • Page 65: Chapter 5. Dspicdemâ„¢ 1.1 Development Hardware

    Codec Reset Switch (Section 5.1.11) Power-on LED (Section 5.1.14) Temperature Sensor (Section 5.1.4) RS-232 Serial Ports (Section 5.1.1) Regulator (Section 5.1.13) RS-485/RS-422 Port (Section 5.1.3) Note 1: See Plug-in Module shown in Figure 5-2. © 2006 Microchip Technology Inc. DS70099D-page 61...
  • Page 66 J20. The CANH and CANL bus can be locally terminated with a 120 ohm resistor by inserting jumper, J18. The schematic of the CAN port is shown in Figure A-5: “dsPICDEM™ 1.1 Plus Devel- opment Board Schematic (Sheet 4 of 5)”. © 2006 Microchip Technology Inc. DS70099D-page 62...
  • Page 67 DSC device. The LED anodes are tied to V through a 1.2 kOhm resistor. The schematic of the LEDs is shown in Figure A-4: “dsPICDEM™ 1.1 Plus Develop- ment Board Schematic (Sheet 3 of 5)”. © 2006 Microchip Technology Inc. DS70099D-page 63...
  • Page 68 For detailed operational information, refer to the Si3000 data sheet available on www.silabs.com. For a schematic of the Si3000 circuit, see Figure A-6: “dsPICDEM™ 1.1 Plus Development Board Schematic (Sheet 5 of 5)”. © 2006 Microchip Technology Inc. DS70099D-page 64...
  • Page 69 • Through holes and pads are provided for a user-furnished watch-type crystal and two capacitors for SOSC1 and SOSC2. • Socket and pads are provided for an output pull-up resistor for user furnished oscillator to processor. • External clock connections from J1. © 2006 Microchip Technology Inc. DS70099D-page 65...
  • Page 70 45° corner of the 80-pin QFP footprint (pin 1 of Emulation Header J14). Pin-out information for the emulation header is shown in Figure A-2: “dsPICDEM™ 1.1 Plus Development Board Schematic (Sheet 1 of 5)”. © 2006 Microchip Technology Inc. DS70099D-page 66...
  • Page 71: Appendix A. Hardware Drawings And Schematics

    This Appendix provides a layout drawing of the printed circuit board followed by schematics for the dsPICDEM™ 1.1 Plus Development Board. HIGHLIGHTS • dsPICDEM™ 1.1 Plus Development Board Layout • dsPICDEM™ 1.1 Plus Development Board Schematics © 2006 Microchip Technology Inc. DS70099D-page 67...
  • Page 72 1.1 Plus Development Board User’s Guide FIGURE A-1: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD LAYOUT © 2006 Microchip Technology Inc. DS70099D-page 68...
  • Page 73 Hardware Drawings and Schematics FIGURE A-2: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD SCHEMATIC (SHEET 1 OF 5) © 2006 Microchip Technology Inc. DS70099D-page 69...
  • Page 74 1.1 Plus Development Board User’s Guide FIGURE A-3: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD SCHEMATIC (SHEET 2 OF 5) © 2006 Microchip Technology Inc. DS70099D-page 70...
  • Page 75 Hardware Drawings and Schematics FIGURE A-4: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD SCHEMATIC (SHEET 3 OF 5) © 2006 Microchip Technology Inc. DS70099D-page 71...
  • Page 76 1.1 Plus Development Board User’s Guide FIGURE A-5: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD SCHEMATIC (SHEET 4 OF 5) © 2006 Microchip Technology Inc. DS70099D-page 72...
  • Page 77 Hardware Drawings and Schematics FIGURE A-6: dsPICDEM™ 1.1 PLUS DEVELOPMENT BOARD SCHEMATIC (SHEET 5 OF 5) © 2006 Microchip Technology Inc. DS70099D-page 73...
  • Page 78 1.1 Plus Development Board User’s Guide NOTES: © 2006 Microchip Technology Inc. DS70099D-page 74...
  • Page 79: Appendix B. Lcd Controller Specification

    DSC device could overflow the controller’s buffer under normal usage. Thus, implementing flow control on the dsPIC DSC device in all but the most unusual circumstances would be an unnecessary complication. © 2006 Microchip Technology Inc. DS70099D-page 75...
  • Page 80: Commands

    The LCD accommodates four character rows (0-3) and 20 character columns (0-19). Unless otherwise specified, incrementing ChrPosC beyond column 19 will wrap to the next row (i.e., ChrPosC = 0 and ChrPosR + 1). If ChrPosR exceeds 3, it will wrap to row 0. © 2006 Microchip Technology Inc. DS70099D-page 76...
  • Page 81 - [7 6 5 4 3 2 1 0] Command dependent data - [7 6 5 4 3 2 1 0] Command dependent data - [7 6 5 4 3 2 1 0] Command dependent data © 2006 Microchip Technology Inc. DS70099D-page 77...
  • Page 82: General Commands

    (e.g., the top character row would be rolled to the bottom row of the display surface if ScrollY = 8 but its location in the data array is still at 0). © 2006 Microchip Technology Inc. DS70099D-page 78...
  • Page 83: Character Commands

    WrtChrInc Command The WrtChrInc command sets ChrPos to (ChrPosC,ChrPosR), writes an ASCII character to ChrPos, and then increments ChrPos. Field Form Value Opcode 0xE7 Data ASCII character ChrPosC Column 0-19 ChrPosR Row 0-3 © 2006 Microchip Technology Inc. DS70099D-page 79...
  • Page 84 Field Form Value Opcode 0xAD Blink Time (0-7) x 0.125 seconds © 2006 Microchip Technology Inc. DS70099D-page 80...
  • Page 85: Pixel Commands

    The PixLine command draws a straight line from the current PixPos to the specified location and leaves PixPos set to the new location. Field Form Value Opcode 0xDA PixPosX Column 0-121 PixPosY Line 0-31 © 2006 Microchip Technology Inc. DS70099D-page 81...
  • Page 86: Column Commands

    Column Data Data B.7.5 WrtColNextXOR Command The WrtColNextXOR command XORs column data with existing data and writes the result to the current ColPos, then increments ColPos. Field Form Value Opcode 0xBF Column Data Data © 2006 Microchip Technology Inc. DS70099D-page 82...
  • Page 87: Examples

    // Write pixel at top of display at column 19, increment column 0xBC, 0xFF // Write vertical line at column 20, increment column 0xBC, 0x01 // Write pixel at top of display at column 21, increment column © 2006 Microchip Technology Inc. DS70099D-page 83...
  • Page 88 1.1 Plus Development Board User’s Guide NOTES: © 2006 Microchip Technology Inc. DS70099D-page 84...
  • Page 89: Index

    DTMF Tone Generation ........34 Plug-in Module ..........62 Summary ............29 Power Supply ............ 65 Demonstration Programs ......... 12 Power-on Indicator..........65 Power-on LED........... 61 Prototyping Area ......... 61 Push Button Switches ......... 61 © 2006 Microchip Technology Inc. DS70099D-page 85...
  • Page 90 Regulator ............61 Voice Band Codec Features ........11 Oscillator Options ............. 65 Oscillator X2 ............. 61 Warranty Registration..........4 Oscillator X3 ............. 61 Watch Window ........... 27 Output Window........18 WWW Address ............6 © 2006 Microchip Technology Inc. DS70099D-page 86...
  • Page 91 Index NOTES: © 2006 Microchip Technology Inc. DS70099D-page 87...
  • Page 92: Worldwide Sales And Service

    China - Wuhan Thailand - Bangkok Tel: 408-961-6444 Tel: 86-27-5980-5300 Tel: 66-2-694-1351 Fax: 408-961-6445 Fax: 86-27-5980-5118 Fax: 66-2-694-1350 Toronto China - Xian Mississauga, Ontario, Tel: 86-29-8833-7250 Canada Fax: 86-29-8833-7256 Tel: 905-673-0699 Fax: 905-673-6509 08/29/06 © 2006 Microchip Technology Inc. DS70099D-page 88...
  • Page 93 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip DM300024...

Table of Contents