Datasheet

Table Of Contents
PICkit™ SERIAL ANALYZER
USERS GUIDE
© 2009 Microchip Technology Inc. DS51647C-page 89
Chapter 11. PICkit™ Serial Analyzer Firmware
11.1 INTRODUCTION
This chapter explains the internal operations of the PICkit™ Serial Analyzer firmware.
The source code is available on the PICkit Serial Analyzer CD-ROM at
D:\PICkit Serial Analyzer\Firmware
.
11.2 HIGHLIGHTS
This chapter discusses:
•Exec
•Comm
•I
2
CM Communications
•I
2
Communications
SPI/Microwire Communications
USART Communications
LIN Communications
11.3 OVERVIEW
Internally, the PICkit™ Serial Analyzer operates two firmware state controllers running
in parallel – Exec (executive) and Comm (communication). The Exec controller is
responsible for overall PICkit™ Serial Analyzer configuration, moving data to/from the
host (via USB) and moving data to/from the Comm controller (via RAM buffers). The
Comm controller supervises serial communication with the target device. This includes
both configuring the necessary communication hardware and executing a sequential
‘script’ defining a serial ‘transaction’.
FIGURE 11-1: ARCHITECTURE
I
2
C™
SPI
USART
Comm
Control
CBUF2
(output/data)
CBUF1
(script/data)
CBUF
(scratch)
Status
Control
Exec
EP0-OUT
EP0-IN
EP1-IN
EP1-OUT
ARCHITECTURE
USB
Circular
Buffers
H
O
S
T
D
E
V
I
C
E