DV164122 Microchip Technology, DV164122 Datasheet

ANALYZER SRL PICKIT W/DEMO BOARD

DV164122

Manufacturer Part Number
DV164122
Description
ANALYZER SRL PICKIT W/DEMO BOARD
Manufacturer
Microchip Technology
Series
PICkit™r
Type
MCUr
Datasheets

Specifications of DV164122

Contents
PICkit™ Serial Analyzer, 28-pin Demo Board, USB Cable, and Software with Documentation CD
Processor To Be Evaluated
PIC16F886
Interface Type
USB
Silicon Manufacturer
Microchip
Kit Application Type
Interface
Application Sub Type
USB
Silicon Family Name
PIC16F
Kit Contents
PICkit Serial Analyzer, Demo Board, USB Cable, Software
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC16F886
For Use With
PKSERIAL-SPI1 - BOARD DEMO PICKIT SERIAL SPIPKSERIAL-I2C1 - BOARD DEMO PICKIT SERIAL I2C
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
Q3260228

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DV164122
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DV164122
Manufacturer:
MICROCHIP
Quantity:
12 000
PICkit
Serial Analyzer
USER’S GUIDE
© 2007 Microchip Technology Inc.
DS51647B

Related parts for DV164122

DV164122 Summary of contents

Page 1

... PICkit © 2007 Microchip Technology Inc. ™ Serial Analyzer USER’S GUIDE DS51647B ...

Page 2

... Select Mode, Smart Serial, SmartTel, Total 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

... Configuration Wizard .................................................................... 18 3.6 Main Window ................................................................................ 21 3.7 Serial Communications Modes ..................................................... 25 2 Chapter 4. I C™ Master Communications © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER Table of Contents 2 C™ Demonstration Program ........... 11 2 C™ Source Code and Firmware .......................... 15 USER’S GUIDE DS51647B-page iii ...

Page 4

... Communications: Basic Operations ..............................................47 Chapter 7. SPI and Microwire Master Communications 7.1 Introduction ...................................................................................49 7.2 Highlights ......................................................................................49 7.3 PICkit™ Serial Analyzer Pin Assignments ....................................49 7.4 Selecting Communications Mode ..................................................49 7.5 Configurating SPI Communications Mode ....................................50 7.6 Communications: Basic Operations ..............................................52 DS51647B-page Communications Mode ........................................28 © 2007 Microchip Technology Inc. ...

Page 5

... Script Execute ............................................................................... 81 Chapter 10. User Defined Templates 10.1 Introduction ................................................................................... 83 10.2 Highlights ...................................................................................... 83 10.3 Creating and Using Templates ..................................................... 84 10.4 My Templates ............................................................................... 85 10.5 GRAPHING DATA ........................................................................ 86 Chapter 11. PICkit™ Serial Analyzer Firmware © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER Table of Contents USER’S GUIDE DS51647B-page v ...

Page 6

... Appendix B. 28-Pin Demo Board I B.1 Introduction .................................................................................135 B.2 Highlights ....................................................................................135 B.3 Hardware .....................................................................................135 B.4 Firmware .....................................................................................135 2 B Communications ...................................................................136 B.6 Slave Devices .............................................................................137 B.7 Functions .....................................................................................140 Worldwide Sales and Service ............................................................... 143 DS51647B-page vi 2 C™ Demonstration Firmware ... 135 © 2007 Microchip Technology Inc. ...

Page 7

... Chapter 6: USART Asynchronous Communications • Chapter 7: USART Master Synchronous Communications • Chapter 8: User Defined Templates • Chapter 9: PICkit™ Serial Analyzer Firmware • Chapter 10: PICkit™ Serial Analyzer DLL © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER Preface NOTICE TO CUSTOMERS 2 C™ ...

Page 8

... Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... } © 2007 Microchip Technology Inc. Examples ® IDE User’s Guide ...

Page 9

... IDE – The latest information on Microchip MPLAB IDE, the Windows Integrated Development Environment for development systems tools. This list is focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager © 2007 Microchip Technology Inc. ® C18 and MPLAB C30 C compilers; MPASM™ ...

Page 10

... Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (January 2007) • Initial release of this document. DS51647B-page 4 ® II device programmers and the PICSTART © 2007 Microchip Technology Inc. ® ...

Page 11

... Analyzer connects to the PC using a USB cable. Finally, the PICkit™ Serial Analyzer interfaces to the target device using a 6-pin header. Figure 1-1 illustrates the PICkit™ Serial Analyzer embedded serial communications development system. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER 2 C serial protocol. ® ...

Page 12

... PICkit™ SERIAL ANALYZER DEVELOPMENT SYSTEM PC PICkit™ Serial Analyzer ® PICkit™ SERIAL ANALYZER – Lanyard Connection 5 – Pin 1 Marker 4 – USB Port Connection 6 – Communications Connector Target Device 2 I C™ SPI USART ® Windows compatible computer 3 4 © 2007 Microchip Technology Inc. ...

Page 13

... Pin assignments are shown in Figure 1-3. FIGURE 1-3: Note: The 6-pin header (0.100" spacing) accepts 0.025" square pins. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER PIN ASSIGNMENTS Pin 1 Indicator Pin Description 2 I C™ ...

Page 14

... Analyzer Firmware”. The latest version of the PICkit™ Serial Analyzer firmware can be downloaded from the Microchip Technology web site. The firmware is updated by selecting PICkit Serial Analyzer > Download PICkit Serial Analyzer Firmware from the menu bar. An open file window will open. Select the *.hex file to be uploaded to the PICkit™ Serial Analyzer and click on the Open button ...

Page 15

... Connect the PICkit Serial Analyzer to the PC using the supplied USB cable. There are no USB drivers to install. The green Power indicator should light indicating that the PICkit Serial Analyzer is powered. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER 2 C serial protocol. The PICkit™ Serial Analyzer will real-time clock and Serial EEPROM ...

Page 16

... Click on the Next button and accept the default settings for I mode. For more information about using the I Master Communications.” DS51647B-page 10 CONNECTING PICkit™ SERIAL TO THE 28-PIN DEMO BOARD 2 C Master mode, see Chapter 4. “ Master 2 C™ © 2007 Microchip Technology Inc. ...

Page 17

... Update RTC button. Or the user can click on the Set RTC to System Time button to set the real-time clock to the date and time of the computer. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER MAIN WINDOW 2 C™ DEMONSTRATION PROGRAM 2 C demonstration by clicking on Demo Boards > ...

Page 18

... EEPROM. DS51647B-page 12 2 28-PIN DEMO I C™ – RTC 2 C EEPROM device such as a 24LC02. The commands are © 2007 Microchip Technology Inc. ...

Page 19

... PIC microcontroller. Rotate potentiometer RP1 and the display changes almost instantaneously. The demonstration program will constantly poll the 28-Pin Demo Board and display the contents of the ADC. FIGURE 2-5: © 2007 Microchip Technology Inc. 2 28-PIN DEMO I C™ – EEPROM 2 28-PIN DEMO I C™ ...

Page 20

... C window and the Basic Operations window cannot C™ BASIC OPERATIONS MEMORY LOCATIONS 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 2 C Master window is opened, Contents Configuration 1 Configuration 2 Seconds Minutes Hours Days Weekdays Months Years © 2007 Microchip Technology Inc. ...

Page 21

... DEMO I C™ SOURCE CODE AND FIRMWARE The demo program source code and *.hex file can be found on the PICkit Serial CD-ROM at D:\28-pin Demo Board\Firmware\. © 2007 Microchip Technology Inc. RTC TRANSACTIONS DEMO WORD ADDRESS CONTENTS Memory Contents … ...

Page 22

... NOTES: DS51647B-page 16 © 2007 Microchip Technology Inc. ...

Page 23

... You can start the program by • Clicking on the desktop icon, or • Navigating to Start>All Programs>Microchip>PICkit Serial Analyzer After a few moments, the program will start and display the main window as shown in Figure 3-1. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER USER’S GUIDE ® .NET ...

Page 24

... Configuration Wizard for that communications mode. The Configuration Wizard Welcome window is shown in Figure 3-2. You may choose to continue by clicking on the Next button or canceling the wizard by clicking on the Cancel button. DS51647B-page 18 PICkit™ SERIAL ANALYZER MAIN WINDOW Master Slave Master © 2007 Microchip Technology Inc. ...

Page 25

... Wizard Page shown in Figure 3-4, allows you to select the bus speed. A more comprehensive list of bus speeds can be chosen from the Configuration Window by selecting PICkit Serial Analyzer > Configure Communications Mode from the menu bar. FIGURE 3-4: © 2007 Microchip Technology Inc. CONFIGURATION WIZARD – WELCOME CONFIGURATION WIZARD – PAGE Master Communication’ ...

Page 26

... USB port will turn off. The target may be powered externally if more power is required. FIGURE 3-6: DS51647B-page 20 CONFIGURATION WIZARD – PAGE CAUTION , the user to verify the DC CAUTION CONFIGURATION WIZARD – PAGE combined DC © 2007 Microchip Technology Inc. ...

Page 27

... Script Builder – Displays the Script Builder window - Script Execute – Displays the Script Execute window 2 • Slave Profile – Displays the I Slave mode) © 2007 Microchip Technology Inc. CONFIGURATION WIZARD – YOU’RE DONE! MENU BAR 2 C Slave Profile Generator (Enabled only ...

Page 28

... Select Communications Mode) • Download PICkit Serial Analyzer Firmware – Displays the Firmware Download window. Firmware updates are available from the Microchip Technology web site. • Run Configuration Wizard – Displays the Configuration Wizard • Perform System Reset – Closes and then reinitializes USB communications to the PICkit Serial Analyzer • ...

Page 29

... Figure 3-11. The status information that is displayed depends on the selected communications 2 mode (I C, SPI, USART, etc.). The following chapters give more detailed explanation of the status window for the particular serial communications mode. © 2007 Microchip Technology Inc. TOOL BAR DS51647B-page 23 ...

Page 30

... From the menu bar on the Transaction window, the contents can be saved (File>Save *.txt or *.rtf file. The file can later be retrieved (File>Open) and displayed in the Transactions window. DS51647B-page 24 STATUS COLUMN (BASIC VIEW) STATUS COLUMN (ADVANCED VIEW) © 2007 Microchip Technology Inc. ...

Page 31

... RESET TIME – Resets the PICkit Serial clock – applicable only if Time Markers are enabled on the Configuration page. 3.7 SERIAL COMMUNICATIONS MODES Detailed information about the entering of data and commands for specific serial communications modes are given in the following chapters. © 2007 Microchip Technology Inc. TRANSACTIONS WINDOW DS51647B-page 25 ...

Page 32

... NOTES: DS51647B-page 26 © 2007 Microchip Technology Inc. ...

Page 33

... C Master Communications tutorial is available on the Microchip Technology web site. Click on the links: Support -> Getting Started -> PIC MCU Tutorials -> Master Mode • Several application notes are available on the Microchip Technology web site. Click on links: Design -> App Notes -> Function: Communicat ions -> I 4.2 HIGHLIGHTS This chapter discusses: • ...

Page 34

... The USB port current limit is set to 100 mA. If the target plus PICkit Serial Analyzer exceeds this current limit, the USB port will turn off. The target may be powered externally if more power is required. DS51647B-page C™ CONFIGURE COMMUNICATIONS MODE – BASIC VIEW CAUTION , the user to verify the DC CAUTION user selectable DC © 2007 Microchip Technology Inc. ...

Page 35

... Disable LED2 Default – Disable default LED2 behavior (LED2 = Yellow ‘Target’ LED) • Disable LED1 Default – Disable default LED1 behavior (LED1 = Red ‘Busy’ LED) • Enable Switch Test – Enable low level switch test: © 2007 Microchip Technology Inc C™ Master Communications 2 C bus bit rate using the drop down box ...

Page 36

... Start bit (S_) • Slave Address[W] – Enter the slave address of the device to communicate with. The write bit should be set to indicate a read operation. • Byte Count – Enter the number of bytes to receive • Stop bit (P_) DS51647B-page Specification © 2007 Microchip Technology Inc. ...

Page 37

... Clear Script – Clears the Script Detail column • Del User Scripts – Deletes scripts from the User Scripts column. • Show Array – Displays a spreadsheet-like table in which large amounts of data © 2007 Microchip Technology Inc C™ Master Communications ...

Page 38

... More information about creating a custom script is discussed in Section 4.7.5 “Creating A Script”. DS51647B-page C™ SCRIPT BUILDER – SCRIPT COMMANDS Script Commands 2 I C™ SCRIPT BUILDER – EXAMPLE SCRIPTS Example Scripts © 2007 Microchip Technology Inc. ...

Page 39

... To load a user script from the User Scripts column into the Script Detail column, the user can double click or right click and select from the local menu. User Scripts can be deleted by right clicking and selecting Delete Script from the local menu. FIGURE 4-8: © 2007 Microchip Technology Inc C™ Master Communications 2 I C™ ...

Page 40

... I C™ Start 2 [P_] I C™ Stop 2 [RS] I C™ Restart 2 [W_] I C™ Write Bytes. Next byte is the byte count, followed by the data. 2 [R_] I C™ Read Bytes. Next byte is the byte count. Description © 2007 Microchip Technology Inc. ...

Page 41

... Script Builder, they can be assigned to buttons in the Script Execute window. This makes a convenient window to execute multiple scripts either individually or iteratively. Script executing will be logged in the Transactions window. The Script Execute window is opened by selecting Communications > Script > Script Execute from the menu bar. FIGURE 4-10: © 2007 Microchip Technology Inc C™ Master Communications 2 I C™ ...

Page 42

... Iteration button in the left column. The number of iterations are entered in the Iterations box and the delay in millisecond in the Delay box. A summary of the iterations is displayed in the left column. The macro is executed when the Iteration button is clicked. FIGURE 4-11: DS51647B-page Scripts column. To assign C™ SCRIPT EXECUTE – EXAMPLE © 2007 Microchip Technology Inc. ...

Page 43

... C Master Communications tutorial is available on the Microchip Technology web site. Click on the links: Support -> Getting Started -> PIC MCU Tutorials ->I Master Mode • Several application notes are available on the Microchip Technology web site. Click on links: Design -> App Notes -> Function: Communications -> I 5.2 ...

Page 44

... PICkit Serial will power my device – Select the check box if the PICkit Serial will power the target device. The target can be powered voltage. DS51647B-page C™ SLAVE CONFIGURE COMMUNICATIONS MODE – BASIC VIEW Slave or a user selectable variable © 2007 Microchip Technology Inc. ...

Page 45

... Addr RX – Enable event marker – Slave address received • Data RX – Enable event marker – Data received • Data TX – Enable event marker – Data transmitted • Ack RX – Enable event marker – Ack byte received © 2007 Microchip Technology Inc C™ Slave Communications ...

Page 46

... SLAVE ADDRESS / MASK 2 • Sets the I C slave address to which the PICkit Serial Analyzer will respond Note: The Address Mask is not currently implemented due to hardware limitations left in the software for possible future use. DS51647B-page status byte 2 C Stop © 2007 Microchip Technology Inc. ...

Page 47

... Data will display the data between the slave read address and the slave write address. PICkit Serial Slave Address set the slave address here you wish the software to respond to, then press the Apply button. A confirmation message should appear on the Transactions window. © 2007 Microchip Technology Inc C™ Slave Communications I 2 C™ ...

Page 48

... Enable Read – Determines whether or not the register is read accessible. • Enable Write – Determines whether or not the register is write accessible. DS51647B-page SLAVE PROFILE GENERATOR 2 CS Basic Operations page the menu item Communications > C™ SLAVE PROFILE GENERATOR 2 C slave device from either 2 C © 2007 Microchip Technology Inc. ...

Page 49

... If you attempt to write too large of a profile to the PICkit Serial Analyzer, an error message will be sent to the Transactions window telling you your profile length. © 2007 Microchip Technology Inc C™ Slave Communications 2 C Slave Profile file (* ...

Page 50

... The LIN Communications mode is selected from the Configuration Wizard or menu bar. Configuration Wizard – Select PICkit Serial Analyzer > Run Configuration Wizard from the menu bar Menu Bar – Select PICkit Serial Analyzer > Select Communications Mode > LIN © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER PIN ASSIGNMENTS Label ...

Page 51

... When transmitting frames, the software will wait a maximum of Script Timeout ms to receive a script complete tag before issuing an error. If your LIN hardware is slow to respond, you may need to increase the Script Timeout to avoid errors. © 2007 Microchip Technology Inc. LIN CONFIGURE COMMUNICATIONS MODE – BASIC VIEW DS51647B-page 45 ...

Page 52

... Chip Select Hi – Sets LIN Adapter Chip Select Hi • Receive Enable – Enables f/w to receive data • Auto Baud Detect/Set – Enables Auto Baud detections and setting DS51647B-page 46 LIN CONFIGURE COMMUNICATIONS MODE – ADVANCED VIEW © 2007 Microchip Technology Inc. ...

Page 53

... Checksum Type: Toggles between Classic, Enhanced or no checksum. Commands: Reset Frame Buffer forces a manual reset of the working frame in the DLL. Reset Timestamp forces the next frame to be received to start at time 0.0 seconds. © 2007 Microchip Technology Inc. LIN BASIC OPERATIONS DS51647B-page 47 ...

Page 54

... The Clear button will clear the contents of the MasterID and the data textboxes. Note: The “x” indicates the value is a hexadecimal number. Clicking on “x” will toggle “d” indicating that the value is a decimal number. DS51647B-page 48 © 2007 Microchip Technology Inc. ...

Page 55

... Communications window or by creating Script Commands assumed that the user is familiar with the SPI protocol. For more information see: An SPI tutorial is available on the Microchip Technology web site. Click on the links: Support -> Getting Started -> PIC MCU Tutorials -> SPI - PICmicro Serial Peripheral Interface Several application notes are available on the Microchip Technology web site. Click on links: Design -> ...

Page 56

... The USB port current limit is set to 100 mA. If the target plus PICkit Serial Analyzer exceeds this current limit, the USB port will turn off. The target may be powered externally if more power is required. DS51647B-page 50 SPI CONFIGURE COMMUNICATIONS MODE – BASIC VIEW CAUTION , the user to verify the DC CAUTION or a user selectable DC © 2007 Microchip Technology Inc. ...

Page 57

... Clock Polarity – SPI transaction configuration: Clock Polarity • Auto Output Disable – Disables output during input. Allows the SDI lines and the SDO lines to be shorted for 3-wire communication. © 2007 Microchip Technology Inc. SPI CONFIGURE COMMUNICATIONS MODE – ADVANCED VIEW ...

Page 58

... The “x” indicates the value is a hexadecimal number. Clicking on “x” will toggle “d” indicating that the value is a decimal number. The commands will be logged in the Transactions window. A listing of the command abbreviations is given in Table 7-2. FIGURE 7-3: DS51647B-page 52 SPI BASIC OPERATIONS © 2007 Microchip Technology Inc. ...

Page 59

... Execute button will send the Write command (0x02), the memory address (0x00), followed by three bytes of data: 0xAA, 0xBB, and 0xCC. The command will be logged in the Transactions window. © 2007 Microchip Technology Inc. SPI BASIC OPERATIONS SEEPROM EXAMPLE – WREN COMMAND ...

Page 60

... Builder window is opened by selecting Communications > Script > Script Builder from the menu bar. The Script Builder is shown in Figure 7-8. The Script Builder window is divided into four columns as shown in Figures 7-9 through 7-12. DS51647B-page 54 SEEPROM EXAMPLE – WRITE BYTES SEEPROM EXAMPLE – READ BYTES © 2007 Microchip Technology Inc. ...

Page 61

... Show Array – Displays a spreadsheet-like table in which large amounts of data may be entered. This data can be included in the script by right clicking in a Script Detail cell and choosing “Insert Array”. FIGURE 7-9: © 2007 Microchip Technology Inc. SPI SCRIPT BUILDER SPI SCRIPT BUILDER – SCRIPT COMMANDS Script Commands ...

Page 62

... Note: The “x” indicates the value is a hexadecimal number. Clicking on “x” will toggle “d” indicating that the value is a decimal number. DS51647B-page 56 SPI SCRIPT BUILDER – EXAMPLE SCRIPTS Example Scripts © 2007 Microchip Technology Inc. ...

Page 63

... User Scripts can be deleted by right clicking and selecting Delete Script from the local menu. FIGURE 7-12: © 2007 Microchip Technology Inc. SPI SCRIPT BUILDER – SCRIPT DETAIL Script Detail SPI SCRIPT BUILDER – USER SCRIPTS ...

Page 64

... Output data. Next byte is the byte count, followed by the data. [DIO] Simultaneous data in and out. Next byte is byte count, followed by the data. [SI] Set SDO pin to Input (tri-state) [SO] Set SDO pin to Output [I_] Initialize SPI controller [CSON] Assert CS (active-low) Description © 2007 Microchip Technology Inc. ...

Page 65

... Iteration button in the left column. The number of iterations are entered in the Iterations box and the delay in millisecond in the Delay box. A summary of the iterations is displayed in the left column. The macro is executed when the Iteration button is clicked. © 2007 Microchip Technology Inc. SPI SCRIPT MACRO COMMAND (CONTINUED) [CSOF] De-assert CS (active-low) ...

Page 66

... FIGURE 7-15: DS51647B-page 60 SPI SCRIPT EXECUTE – EXAMPLE © 2007 Microchip Technology Inc. ...

Page 67

... NOTES: © 2007 Microchip Technology Inc. DS51647B-page 61 ...

Page 68

... DS51647B-page 62 © 2007 Microchip Technology Inc. ...

Page 69

... A USART Asynchronous Communications tutorial is available on the Microchip Technology web site. Click on the links: Support -> Getting Started -> PIC MCU Tutorials -> USART - Using in Asynchronous Mode • Several application notes are available on the Microchip Technology web site. Click on links: Design -> App Notes -> Function: Communication -> USART 8.2 ...

Page 70

... The target can be powered variable voltage. Even though the voltage can be set as low required operating voltage of the target device. DS51647B-page 64 USART ASYNCHRONOUS CONFIGURE COMMUNICATIONS MODE – BASIC VIEW CAUTION , the user to verify the user selectable DC © 2007 Microchip Technology Inc. ...

Page 71

... Disable LED2 Default – Disable default LED2 behavior (LED2 = Yellow ‘Target’ LED) • Disable LED1 Default – Disable default LED1 behavior (LED1 = Red ‘Busy’ LED) • Enable Switch Test – Enable low level switch test: © 2007 Microchip Technology Inc. CAUTION USART ASYNCHROUNOUS CONFIGURE COMMUNICATIONS MODE – ADVANCED VIEW ...

Page 72

... The Script Builder window is opened by selecting Communications > Script > Script Builder from the menu bar. The Script Builder is shown in Figure 8-4. The Script Builder window is divided into four columns as shown in Figures 8-5 through 8-8. DS51647B-page 66 USART ASYNCHRONOUS BASIC OPERATIONS © 2007 Microchip Technology Inc. ...

Page 73

... Show Array – Displays a spreadsheet-like table in which large amounts of data may be entered. This data can be included in the script by right clicking in a Script Detail cell and choosing “Insert Array”. FIGURE 8-5: © 2007 Microchip Technology Inc. USART ASYNCHRONOUS SCRIPT BUILDER USART ASYNCHRONOUS SCRIPT BUILDER – SCRIPT COMMANDS ...

Page 74

... Note: The “x” indicates the value is a hexidecimal number. Clicking on “x” will toggle “d” indicating that the value is a decimal number. DS51647B-page 68 USART ASYNCHRONOUS SCRIPT BUILDER – EXAMPLE SCRIPTS Example Scripts © 2007 Microchip Technology Inc. ...

Page 75

... Scripts are created by placing the cursor into the Script Detail column and right clicking. A local menu will be displayed as shown in Figure 8-9. Select from the choice of commands or script macro commands. © 2007 Microchip Technology Inc. USART ASYNCHRONOUS SCRIPT BUILDER – SCRIPT DETAIL Script Detail USART ASYNCHRONOUS SCRIPT BUILDER – ...

Page 76

... Send Break, then data byte. Next byte is the data byte. [BD] Set BAUD Rate. Next byte is BAUD (LSB) followed by BAUD (MSB). [9S] Set 9-bit Data mode [9R] Reset 9-bit Data mode (sets 8-bit) [CS] Set CLOCK POLARITY bit Description © 2007 Microchip Technology Inc. ...

Page 77

... Assignable Buttons in the right column. The script will be executed once each time the button is clicked. The Assignable Buttons can be cleared by clicking on the Clear Buttons button. © 2007 Microchip Technology Inc. USART SCRIPT MACRO COMMANDS (CONTINUED) [CR] Reset CLOCK POLARITY bit ...

Page 78

... Iteration button in the left column. The number of iterations is entered in the Iterations box and the delay in milliseconds in the Delay box. A summary of the iterations is displayed in the left column. The macro is executed when the Iteration button is clicked. FIGURE 8-11: DS51647B-page 72 USART ASYNCHRONOUS SCRIPT EXECUTE – EXAMPLE © 2007 Microchip Technology Inc. ...

Page 79

... Configuration Wizard – Select PICkit Serial Analyzer > Run Configuration Wizard from the menu bar Menu Bar – Select PICkit Serial Analyzer > Select Communications Mode > USART Synchronous Master © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER USART SYNCHRONOUS MASTER PIN ASSIGNMENTS Label ...

Page 80

... USB port will turn off. The target may be powered externally if more power is required. USART BAUD Enter the desired USART symbol rate (Baud) in the text box. DS51647B-page 74 USART SYNCHRONOUS MASTER CONFIGURE COMMUNICATIONS MODE – BASIC VIEW CAUTION , the user to verify the DC CAUTION or a user selectable DC © 2007 Microchip Technology Inc. ...

Page 81

... AUX1 Direction – AUX1 communication line – direction: 1: input, 0: output • AUX2 Direction – AUX2 communication line – direction: 1: input, 0: output • Clock Polarity – Checked means the polarity is inverted, unchecked means it is not © 2007 Microchip Technology Inc. USART SYNCHRONOUS MASTER CONFIGURE COMMUNICATIONS MODE – ADVANCED VIEW DS51647B-page 75 ...

Page 82

... The Script Builder window is opened by selecting Communications > Script > Script Builder from the menu bar. The Script Builder is shown in Figure 9-4. The Script Builder window is divided into four columns as shown in Figures 9-5 through 9-8. DS51647B-page 76 USART SYNCHRONOUS MASTER BASIC OPERATIONS © 2007 Microchip Technology Inc. ...

Page 83

... This data can be included in the script by right clicking in a Script Detail cell and choosing “Insert Array”. FIGURE 9-5: Script Commands © 2007 Microchip Technology Inc. USART SYNCHRONOUS MASTER SCRIPT BUILDER USART SYNCHRONOUS MASTER SCRIPT BUILDER – SCRIPT COMMANDS ...

Page 84

... Note: The “x” indicates the value is a hexadecimal number. Clicking on “x” will toggle “d” indicating that the value is a decimal number. DS51647B-page 78 USART SYNCHRONOUS MASTER SCRIPT BUILDER – EXAMPLE SCRIPTS Example Scripts © 2007 Microchip Technology Inc. ...

Page 85

... Scripts are created by placing the cursor into the Script Detail column and right clicking. A local menu will be displayed as shown in Figure 9-9. Select from the choice of commands or script macro commands. © 2007 Microchip Technology Inc. USART SYNCHRONOUS MASTER SCRIPT BUILDER – SCRIPT DETAIL Script Detail USART SYNCHRONOUS MASTER SCRIPT BUILDER – ...

Page 86

... Send Break, then data byte. Next byte is the data byte. [BD] Set BAUD Rate. Next byte is BAUD (LSB) followed by BAUD (MSB). [9S] Set 9-bit Data mode [9R] Reset 9-bit Data mode (sets 8-bit) [CS] Set CLOCK POLARITY bit [CR] Reset CLOCK POLARITY bit Description © 2007 Microchip Technology Inc. ...

Page 87

... Assignable Buttons in the right column. The script will be executed once each time the button is clicked. The Assignable Buttons can be cleared by clicking on the Clear Buttons button. © 2007 Microchip Technology Inc. USART SCRIPT MACRO COMMANDS (CONTINUED) [I_] Initialize USART controller [RE] Reset USART controller ...

Page 88

... Iteration button in the left column. The number of iterations is entered in the Iterations box and the delay in millisecond in the Delay box. A summary of the iterations is dis- played in the left column. The macro is executed when the Iteration button is clicked. FIGURE 9-11: DS51647B-page 82 USART ASYNCHRONOUS SCRIPT EXECUTE – EXAMPLE © 2007 Microchip Technology Inc. ...

Page 89

... DC. 10.2 HIGHLIGHTS This chapter discusses: • Creating and Using Templates • My Templates • Graphing Data © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER CONVERSION FORMULA . The slope is the constant value used to convert between the DC SLOPE EXAMPLE USER’S GUIDE ...

Page 90

... Dec) • Format – Binary, Decimal, Hexadecimal, or BCD (Binary Coded Decimal) • Dec. pts – Select number of decimal points in the displayed value (this option is only available if the format is set to Dec) DS51647B-page 84 THE USER DEFINED TEMPLATE © 2007 Microchip Technology Inc. ...

Page 91

... PICkit Serial Analyzer in that you create and run the template on the same form. This allows for a great deal of run time flexibility. For example, you can change any of the Inputs from section 10.3 while you are running the scripts in a loop. © 2007 Microchip Technology Inc. SELECTING MY TEMPLATES DS51647B-page 85 ...

Page 92

... You may also graph any of the data being displayed in real time; simply press the Graph button for the corresponding parameter. The graph may be resized as desired. See Figure 10-3. The style button on the bottom of the graph toggles the view between an area, line, column, or point plot. FIGURE 10-3: DS51647B-page 86 GRAPHING DATA © 2007 Microchip Technology Inc. ...

Page 93

... FIGURE 11-1: USB EP0-OUT H O EP0- EP1-OUT EP1-IN © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER ARCHITECTURE ARCHITECTURE CONTROL EXEC STATUS CIRCULAR BUFFERS CBUF (scratch) CBUF1 ...

Page 94

... EXEC command TAG(s) – interpreted by EXEC EXEC data TAG(s) – generated by EXEC COMM command TAG)(s) – interpreted by COMM COMM data TAG(s) – generated by COMM CONTROL BLOCK EXEC section Generic COMM section Protocol specific communication section Definition Definition © 2007 Microchip Technology Inc. ...

Page 95

... TAG byte 0x01 signifies that the following byte is one of the commands listed in Table 11-5. © 2007 Microchip Technology Inc. STATUS BLOCK EXEC section Generic COMM section Protocol specific communication section EXEC COMMAND (ECMD) TAG BYTES LEN ...

Page 96

... CBUF2 flush count threshold [e.g., CBUF2 > N bytes then flush] CBUF2 flush interval [res: 409 μs, min: 409 μs, max: 7:0 104 msec] a value of ‘0’ defaults to ‘1’, (i.e., the minimum) 7:0 7:0 7:0 Description Description © 2007 Microchip Technology Inc. ...

Page 97

... EXEC data TAG bytes identify data streams sent from the EXEC block back to the host software. TABLE 11-9: TAG/EDATA 0x80 0x81 0x82 0x83 0x84 0x85 0x86 © 2007 Microchip Technology Inc. LED CONFIGURATION Mode M = CFG[7: CFG[ On Off On Off 10 initial state On Off 11 ...

Page 98

... Restore control block failed – defaults used 6 7 Composite error 7:0 EXEC status flags 0 SWITCH test active 1 SWITCH state i.e. 0: depressed, 1: released 7:0 7:0 Description 0 TAG 1 Configuration byte Data: from CBUF3 0 TAG 1 Data: arbitrary packet ID# Description © 2007 Microchip Technology Inc. ...

Page 99

... TABLE 11-11: COMM SCRIPT COMMAND TAG BYTES TAG/CCMD 0x00 – 0x0F 0x10 0x12 0x13 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E © 2007 Microchip Technology Inc. LEN Name 16 RESERVED Reserved 3 Wait-1 Wait for time interval 2 LED1 Configure LED1 2 LED2 Configure LED2 3 ...

Page 100

... Byte count (N) 2 Data Data 0 TAG 1 Loop number 0 TAG 1 Time LSB 2 Time MSB [res: 409 usec, max: 26.8 sec] 0 TAG 0 TAG 1 Loop count (LSB) 2 Loop count (MSB) 0 TAG 0 TAG 0 TAG 0 TAG 0 TAG 1 STATUS_BLOCK[04] 0 TAG 0 TAG 1 MARKER © 2007 Microchip Technology Inc. ...

Page 101

... TABLE 11-13: COMM SCRIPT CONTROL BLOCK Byte © 2007 Microchip Technology Inc. Bit Description COMM: GENERAL 7:0 COMM mode: 00: IDLE 2 01 02: SPI-M 04: USART-A 05: USART- 0A: LIN 0B: MWIRE-M 7:0 COMM control bits Enable event markers – global Enable event markers – time stamp ...

Page 102

... Executing MACRO – infinite loop 3 Executing WAIT instruction “End-of-Script” TAG encountered 7:0 COMM mode 7:0 VSRC Measurement (0-255) 7:0 7:0 7:0 7 protocol. See the MODE Pin specification for proto bus only. It will Description — SDA SCL — © 2007 Microchip Technology Inc. ...

Page 103

... TABLE 11-16: I Byte © 2007 Microchip Technology Inc CONTROL BLOCK Bit Description 2 COMM 7:0 Bit flags event marker enable: Start bit event marker enable: Stop bit event marker enable: Restart bit event marker enable: ack/nack event marker enable: ack/nack rx 6 n/a ...

Page 104

... SDA Line Voltage (255 = 5V) 7:0 SCL Line Voltage (255 = 5V) 7:0 BIT RATE CODE currently in use 2 C read data as well as ‘event marker’ TAGs that mark the 2 C transaction (e.g., TAG: 0x81 indicates a “Start” bit trans bus. The return © 2007 Microchip Technology Inc. ...

Page 105

... TABLE 11-18: I TAG/CCMD 0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8A 0x90 0x91 0x92 0x93 0x94 © 2007 Microchip Technology Inc ‘CMD’ TAG BYTES LEN Name CM_INIT CM_START CM_STOP CM_RESTART 2 N+2 I CM_WRITE_BYTES CM_READ_BYTES CM_READ_BLOCK CM_BIT_RATE CM_RESET CM_READ_BYTES_NLB ...

Page 106

... C transaction looks like this on the bus: wait AUX1 == 1 0 TAG AUX2 TAG AUX2 TAG AUX2 direction: OUTPUT 0 TAG AUX2 direction: INPUT 0 TAG wait AUX2 == 0 0 TAG wait AUX2 == 1 0 TAG 2 C slave address (with 2 C © 2007 Microchip Technology Inc. ...

Page 107

... TAG/ LEN CDATA 0x80 1 0x81 1 0x82 1 0x83 1 0x84 1 0x85 1 0x86 1 0x87 2 0x88 2 0x89 2 0x8A 2 © 2007 Microchip Technology Inc ‘DATA’ TAG BYTES Name 2 I CM_EVENT_START_TX Start bit event CM_EVENT_STOP_TX Stop bit event CM_EVENT_RESTART_TX Restart bit event CM_EVENT_ACK_TX ACK bit event 0 2 ...

Page 108

... In AUTO mode the PKSA operates autonomously as defined by a ‘soft’ “SLAVE PROFILE” table stored in PKSA RAM (described below). At any time the host can read and/or update the table contents as needed. © 2007 Microchip Technology Inc. ...

Page 109

... The INTERACTIVE mode provides the greatest flexibility but at the expense of trans- action latencies. The host monitors I ers. Should a transaction require ‘read’ data (to return to the I is suspended (by holding the clock line low) until the host supplies data via the standard ‘script’ buffer. © 2007 Microchip Technology Inc. B EXEC CONTROL STATUS ...

Page 110

... DS51647B-page 104 EXEC CONTROL STATUS B CBUF1 A CBUF2 CBUF3 A - event data transactions via the EVENT MARKERS. Should the I COMM read data SCK line low and alert the © 2007 Microchip Technology Inc. ...

Page 111

... The register contents can be written or read by the HOST. To insure data integrity of multi-byte registers, the contents are accessed only ‘between’ I may cause a slight delay in executing the request or in servicing the next/pending I2C transactions. © 2007 Microchip Technology Inc. EXEC CONTROL STATUS ...

Page 112

... C transaction is permitted to access one or more bytes anywhere within the block. TABLE 11-25: TABLE-TAG: END TABLE-TAG: END: 0x80 DS51647B-page 106 DESCRIPTION SLAVE ADDRESS REGISTER DEFINITION END OF SLAVE PROFILE ‘memory block’ of sequential locations beginning with register # disable READ disable WRITE 2 C slave addresses © 2007 Microchip Technology Inc. ...

Page 113

... TABLE TAG SLAVE ADDR DATA: SLAVE ADDR DATA: (RESERVED) DATA: (RESERVED) DATA: TABLE-TAG: REGISTER DEF DATA: REGISTER ID DATA: BYTE COUNT DATA: DATA: DATA: DATA: TABLE-TAG: END © 2007 Microchip Technology Inc. 0x20 0x16 0x00 0x00 0x41 0x21 0x02 0x34 0x12 0x40 0x22 ...

Page 114

... REG WRITE 1= event marker enable: status error 1= event marker enable: START (reserved – not implemented) 1= event marker enable: STOP 1= event marker enable: DATA RQ MODE 0 read data (bytes 1 thru N) MODE 0 read data (byte 0) SLAVE ADDRESS SLAVE ADDRESS MASK © 2007 Microchip Technology Inc. ...

Page 115

... TABLE 11-28: BYTE 7:0 15 7:0 16 7:0 17 7:0 18 7:0 19 7:0 © 2007 Microchip Technology Inc. BIT DESCRIPTION COMM: I bit flags: error status Slave profile malformed (mode 2) SSPOV WCOL composite error bit flags: info status SCK line state ( SDA line state ( DS51647B-page 109 ...

Page 116

... DESCRIPTION 2 initialize I C controller 0 TAG send/provide ‘read’ bytes 0 TAG 1 byte count (N) 2 data N+1 data write/load register definition 0 TAG 1 Slave address 2 Register ID 3 Byte count(N) 4 Data N+3 Data read/return register definition 0 TAG 1 Slave Address 2 Register ID © 2007 Microchip Technology Inc. ...

Page 117

... N+3 © 2007 Microchip Technology Inc. NAME I2CS_EVENT_ADDR ADDRESS byte received 0 SDATA-TAG 1 data (address) I2CS_EVENT_DATA_RX DATA byte received (Master write) 0 SDATA-TAG 1 data I2CS_EVENT_DATA_TX DATA byte sent (Master read) 0 SDATA-TAG 1 data I2CS_EVENT_ACK_RX ...

Page 118

... DAOD (disable auto output disable on data input) 4 n/a 5 n/a 6 n/a 7 CSPOL (Chip Select Polarity), 0=LO TRUE, 1=HI TRUE 7:0 7:0 7:0 7:0 7:0 BIT RATE: Pre-scale code 7:0 BIT RATE: Scaling code Description SDI SCK SDO (1) © 2007 Microchip Technology Inc. ...

Page 119

... TABLE 11-33: BIT RATE CODES Pre-Scale F OSC 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz TABLE 11-34: SPI STATUS BLOCK Byte © 2007 Microchip Technology Inc. Pre-Scale Scale Code Value Code 0x00 8 0x00 0x00 8 0xFF 0x01 32 0x00 0x01 32 0xFF 0x02 128 0x00 0x02 ...

Page 120

... TAG 0 byte count (N) 1 TAG 0 byte count ( data data TAG 0 byte count ( data data TAG 0 TAG 0 TAG 0 (1) TAG 0 (1) TAG 0 Description BYTE transmit TAG 0 data 1 BYTE transmit TAG 0 data 1 Status error TAG 0 error byte 1 © 2007 Microchip Technology Inc. ...

Page 121

... Synchronous mode. Select the baud rate according to the BRG table. TABLE 11-37: CONNECTOR PINOUT IN USART ASYNCHRONOUS MODE Pin TABLE 11-38: CONNECTOR PINOUT IN USART SYNCHRONOUS MODE Pin © 2007 Microchip Technology Inc. Description — — RX Description Clock + — — Data DS51647B-page 115 ...

Page 122

... BRG (BAUD) default (LSB) 7:0 BRG (BAUD) default (MSB) BAUD = F /(4*(BRG + 1)) OSC BRG 16666 4166 1041 520 259 173 86 42 ACTUAL ERR 300.0 0.00% 1199.9 -0.01% 4798.5 -0.03% 9596.9 -0.03% 19230.8 0.16% 28735.6 -0.22% 57471.3 -0.22% 116279.1 0.94% © 2007 Microchip Technology Inc. ...

Page 123

... TABLE 11-41: USART STATUS BLOCK Byte © 2007 Microchip Technology Inc. Bit Description COMM: USART 7:0 Bit flags: error status 0 FERR – framing error 1 OERR – overrun error 2 INIT error (bad “mode”) 3 n/a 4 n/a 5 n/a 6 n/a 7 Composite error 7:0 7:0 ...

Page 124

... BAUD value (MSB) (Reference section set “CLOCK POLARITY” bit TAG 0 reset “CLOCK POLARITY” bit TAG 0 AUX1: 0 TAG 0 AUX1: 1 TAG 0 AUX1 direction: OUTPUT TAG 0 AUX1 direction: INPUT TAG 0 wait AUX1 == 0 TAG 0 wait AUX1 == 1 TAG 0 AUX2: 0 TAG 0 © 2007 Microchip Technology Inc. ...

Page 125

... PKSA MASTER module. The ‘event marker’ TAG(s) are used to report bus activity in its variety of forms but must be enabled, individually, using CONTROL_BLOCK configuration bits as seen below. © 2007 Microchip Technology Inc. 1 USART_AUX2_SET 1 ...

Page 126

... TX 1= event marker enable: break RX 1= event marker enable: auto baud n/a n/a 1= event marker enable: status error n/a n/a n/a n/a BAUD rate (BRG code) default (LSB) BAUD rate (BRG code) default (MSB) © 2007 Microchip Technology Inc. ...

Page 127

... To configure the PKSA to perform as LIN bus MONITOR, the HOST must write the CONTROL_BLOCK to specify: 1. LIN adapter ‘chip select’ line state 2. set ‘receive enable’ configuration bit to allow the PKSA to receive RX data and © 2007 Microchip Technology Inc. DESCRIPTION COMM: LIN bit flags: error FERR – ...

Page 128

... BREAK & SYNC N+1 LIN_BAUD_SET set BAUD rate DESCRIPTION TAG TAG Byte count = N Data Data TAG TAG Byte count = N Data (SYNC character) Data TAG Byte count = N Data Data TAG BAUD code (LSB) BAUD code (MSB) © 2007 Microchip Technology Inc. ...

Page 129

... At ‘B’ the PKSA expected a STOP bit – the USART interrupts the PKSA (RCIF – receive interrupt flag) and sets FERR (framing error). The PKSA interprets (1) DATA=0 and (2) FERR (framing error) as having received a BREAK; therefore, the FERR is automati- © 2007 Microchip Technology Inc. NAME LIN_EVENT_BYTE_RX ...

Page 130

... HOST. The EVENT MARKER sequence would be BREAK_RX and AUTOBAUD followed by BAUD_L, BAUD_H. If AUTOBAUD was not enabled, the EVENT MARKER sequence would be BREAK_RX then BYTE_RX followed by 0x55. FIGURE 11-5: A DS51647B-page 124 WARNING RCIF (1) WAIT-BRK BREAK RCIF (2) SYNC © 2007 Microchip Technology Inc. ...

Page 131

... Microchip Technology Inc. CODE ACTUAL 49999 100.0 24999 200.0 16666 300.0 12499 400.0 9999 500.0 8332 600.0 7142 700.0 6249 800.0 5555 899 ...

Page 132

... NOTES: DS51647B-page 126 © 2007 Microchip Technology Inc. ...

Page 133

... Example projects (written in Visual Basic .NET Express – a free download from Microsoft) and detailed documentation for each protocol are available for download from the PICkit Serial Website. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER USER’S GUIDE DS51647B-page 127 ...

Page 134

... DS51647B-page 128 © 2007 Microchip Technology Inc. ...

Page 135

... Then select the check box next to “Microsoft Windows Update” and click Next. Windows will automatically install the appropriate driver. Do not use Microchip’s MPLAB © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER ® ...

Page 136

... Microsoft Windows Question Can I run on Windows Answer No. These operating systems either do not support USB or have drivers that are not compatible. DS51647B-page 130 ® 95/98/NT ® 95/98/NT? © 2007 Microchip Technology Inc. ...

Page 137

... Appendix A. PICkit Serial Analyzer Schematics A.1 INTRODUCTION This appendix contains the PICkit Serial Management hardware diagrams. FIGURE A-1: PICkit™ SERIAL ANAYLZER SCHEMATIC (SHEET © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER USER’S GUIDE DS51647B-page 131 ...

Page 138

... FIGURE A-2: PICkit™ SERIAL ANALYZER SCHEMATIC (SHEET DS51647B-page 132 © 2007 Microchip Technology Inc. ...

Page 139

... FIGURE A-3: SILKSCREEN FIGURE A-4: TOP COPPER FIGURE A-5: BOTTOM COPPER © 2007 Microchip Technology Inc. DS51647B-page 133 ...

Page 140

... NOTES: DS51647B-page 134 © 2007 Microchip Technology Inc. ...

Page 141

... Reset. Each Interrupt Service Routine is called sequentially and continuously from the MAIN Idle loop. Interrupt Service Routine is provided for the I other modules are serviced in turn from the MAIN ‘Idle loop’. © 2007 Microchip Technology Inc. PICkit™ SERIAL ANALYZER USER’S 2 C™ ...

Page 142

... C™ Demo responds to three I DEVICE SLAVE ADDRESSES NAME RTC Device emulation: Real-Time Clock EEPROM Device emulation: EEPROM EXEC Supervisory features 2 C protocols described below. Each slave MASTER/SLAVE DEVICE LEGEND Slave Master 2 C slave addresses: DESCRIPTION © 2007 Microchip Technology Inc. ...

Page 143

... TABLE B-3: REG 0x00 RTC_CONFIG_1 0x01 RTC_CONFIG_2 0x02 RTC_SECONDS 0x03 RTC_MINUTES 0x04 RTC_HOURS 0x05 RTC_WEEKDAY 0x06 RTC_DAYS 0x07 RTC_MONTHS © 2007 Microchip Technology Inc. 2 C™ Demonstration Firmware 2 I C™ WRITE BYTE(S) DATA A A WORD-ADR [ C™ READ BYTE(S) WITH WORD ADDRESS DATA ...

Page 144

... C™ Demonstration emulates a serial EEPROM. Device SERIAL EEPROM OPERATION Write Operation Send Start Bit Send Control Byte w/Write Bit ACK YES (continue pseudo device provides features convenient for testing and dem C™ firmware. © 2007 Microchip Technology Inc. ...

Page 145

... EXEC_DISPLAY_RTC 0x84 EXEC_DISPLAY_PKSI 0x85 EXEC_DISPLAY_RESET 0x86 EXEC_DISPLAY_1SEC 0x87 EXEC_0x87 © 2007 Microchip Technology Inc. 2 C™ Demonstration Firmware TABLE B-4 EXECUTIVE (EXEC) WORD ADDRESSES NAME DESCRIPTION State of executive state controller bit force state controller to one of eight “entry points” specified by bits[2:0] ADC results of CHANNEL AN0 (potentiometer RP1) binary value representation of RTC “ ...

Page 146

... Off Off On Off Off Off On Off Off Off Off Off On Off On Off On Off Off TIMER1 TEST Write 0x81 to EXEC_REG_00 BUSY? YES EXEC_REG_03[bit 7] NO YES ERROR? EXEC_REG_03[bit 6] NO PASSED FAILED DS3 Off Off Off On Off Off Off © 2007 Microchip Technology Inc. ...

Page 147

... Second Blink Blink all LEDs in unison at 1-second intervals (i.e., 1 sec OFF, 1 sec ON, 1 sec OFF),...This feature uses time based on the Timer1 low-power oscillator and external 32 kHz tuning fork crystal. © 2007 Microchip Technology Inc. 2 C™ Demonstration Firmware 2 C bus has active pull-ups and ...

Page 148

... DS51647B-page 142 © 2007 Microchip Technology Inc. ...

Page 149

... China - Shunde Tel: 86-757-2839-5507 Fax: 86-757-2839-5571 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xian Tel: 86-29-8833-7250 Fax: 86-29-8833-7256 © 2007 Microchip Technology Inc. ASIA/PACIFIC India - Bangalore Tel: 91-80-4182-8400 Fax: 91-80-4182-8422 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-2566-1512 ...

Page 150

... Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08- Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820 © 2007 Microchip Technology Inc. DSTEMP DS51647A-page 144 ...

Related keywords