Appendix b. rs-232 communication protocol, B.1 introduction, B.2 overview – Arizona Picdem 17 User Manual

Page 87: B.3 detailed description, Introduction, Overview, Detailed description, Picdem™ 17 demonstration board user’s guide

Advertising
background image

2001 Microchip Technology Inc.

DS39024B-page 81

PICDEM™ 17 DEMONSTRATION

BOARD USER’S GUIDE

12

Appendix B. RS-232 Communication Protocol

B.1

INTRODUCTION

This appendix describes the protocol between the PIC17C756A
microcontroller and the Host PC.

B.2

OVERVIEW

The PICDEM 17 Monitor program and associated firmware in the
PIC17C756A communicate via a RS-232 link between the serial port on the
PC and the USART2 module on the PICmicro

®

MCU. The format is 9600

baud, no parity, 8 data bits, and 1 stop bit. The protocol itself is plain ASCII
text, which means that any terminal program can be used to communicate
with the firmware. The Monitor program was developed as a convenience to
the user. When using a terminal program, the *H command will display all the
available commands to the user. Descriptions of the operation of the
diagnostics are given in Chapter 2.

B.3

DETAILED DESCRIPTION

The following are all the commands and associated descriptions:

• *A

Halt Operation

• *DA

A/D Diagnostic

• *DC

Capture Diagnostic

• *DF

Flash Diagnostic

• *DI

I

2

C Diagnostic

• *DL

LCD Diagnostic

• *DP

PWM Diagnostic

• *DS

Switch Diagnostic

• *DU2

USART2 Diagnostic

• *E

Erase FLASH

• *F

Download File

• *H

Print Help

• *J

Run Program

• *RDbxx

Read Data Mem

• *Rpyyyy

Read Prog Mem

• *WDbxxdd

Write Data Mem

• *WPyyyydddd

Write Prog Mem

Advertising