-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommands.h
47 lines (43 loc) · 1.6 KB
/
Commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (C) 2017 Johan Bergkvist
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef COMMANDS_H
#define COMMANDS_H
//
// These are the commands used between the PC and the programmer when
// programming PIC16F devices.
//
#define COMMAND_READ_BYTES_16 0x20
#define COMMAND_PROGRAM_BYTES_16 0x21
#define COMMAND_PROGRAM_CONFIG_16 0x22
#define COMMAND_ERASE_16 0x23
#define COMMAND_VDD_ON_16 0x24
#define COMMAND_VPP_ON_16 0x25
#define COMMAND_VPP_VDD_OFF_16 0x26
//
// These are the commands used between the PC and the programmer when
// programming PIC18F and PIC16F devices.
//
#define COMMAND_READ_BYTES 0x00
#define COMMAND_PROGRAM_BYTES 0x01
#define COMMAND_PROGRAM_CONFIG 0x02
#define COMMAND_ERASE 0x03
#define COMMAND_VDD_ON 0x04
#define COMMAND_VPP_ON 0x05
#define COMMAND_VPP_VDD_OFF 0x06
//
// These are the commands used between the PC and the programmer when
// programming PIC32MX devices.
//
#define COMMAND_CHECK_DEVICE 0x10
#define COMMAND_CHIP_ERASE 0x11
#define COMMAND_ENTER_SERIAL_EXECUTION_MODE 0x12
#define COMMAND_EXIT_PROGRAMMING_MODE 0x13
#define COMMAND_WRITE_WORDS 0x14
#define COMMAND_READ_WORDS 0x15
#define COMMAND_SEND_WORDS 0x16
#define COMMAND_PROGRAM_WORDS 0x17
#endif