PICkit? Serial Analyzer User’s Guide
Macro commands are entered according to the sequence of events as defined by the
I 2 C bus protocol. Studying the example scripts is a good way to learn the sequence of
events. The example scripts can also be modified and saved under a different name.
CAUTION
The choice of macro commands is very flexible. Therefore, the correctness of the
script has to be verified by the user. The PICkit Serial Analyzer program does not
verify the correctness of the script.
A complete listing of the available macro commands is given in Table 4-2. The macro
command abbreviation will be displayed in the Transactions Window. The Transactions
window keeps a running log of the commands and data sent to and from the target
device.
FIGURE 4-9:
TABLE 4-2:
I 2 C? SCRIPT BUILDER – CREATING A SCRIPT
I 2 C? SCRIPT MACRO COMMAND
DS51647A-page 34
Macro Command
I2CINIT
I2CSTART
I2CSTOP
I2CRESTART
I2CWRTBYT
I2CRDBYT
I2CRDBLK
I2CBITRATE
I2CRESET
I2CRDBYTNLB
I2CRDBLKNLB
I2CAUX1RST
Command
Abbreviation
[I_]
[S_]
[P_]
[RS]
[W_]
[R_]
[RB]
[BR]
[RE]
[RN]
[RBN]
[A1RST]
Description
I 2 C? Initialization
I 2 C? Start
I 2 C? Stop
I 2 C? Restart
I 2 C? Write Bytes. Next byte is the byte count,
followed by the data.
I 2 C? Read Bytes. Next byte is the byte count.
I 2 C? Read Block
Set I 2 C? Bit Rate - min:0 = 35k, max:127 = 100k.
Next byte is the bit rate.
Reset MSSP module
Read bytes - NACK last byte. Next byte is the byte
count
Read block - NACK last byte
Reset AUX1
? 2007 Microchip Technology Inc.
相关PDF资料
DV164131 KIT STARTER PICKIT 3
DV164132 KIT EVAL F1 FOR PIC12F1/PIC16F1
DV243003 KIT STARTER FOR SRL MEM PRODUCTS
DVA1001 ADAPTER FOR PIC16F716 18DIP
DVA1004 DEVICE ADAPTER 8/14/20DIP
E3R-D12GP-P RELAY RCVR PLUG-IN DIMMER
E3R-R12-3HOTP RCVR 3WIRE RELAY 120V
E3R-R12GP RCVR PLUG-IN RELAY
相关代理商/技术参数
DV164126 功能描述:开发板和工具包 - PIC / DSPIC USB Kit w/ PICkit LowPinCount RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV164130 功能描述:电路内置调试器 PICkit 3 Starter Kit RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC16F1829 用于:PIC16F1829 核心:PIC 接口类型: 工作电源电压:
DV164131 功能描述:电路内置调试器 PICkit 3 Debug Exprs RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164131 制造商:Microchip Technology Inc 功能描述:PICKIT 3 DEBUG EXPRESS
DV164131-XLP 制造商:Microchip Technology Inc 功能描述:KIT DEV PICKIT 3-XLP/NANOWAT
DV164132 功能描述:开发板和工具包 - PIC / DSPIC F1 Evaluation Kit RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV164132 制造商:Microchip Technology Inc 功能描述:PIC12F1xxx/PIC16F1xxx F1 Evaluation Kit
DV164133 功能描述:电源管理IC开发工具 Energy Harvesting Development Tool RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V