$PROGRAMMER

$PROGRAMMER

Top  Previous  Next

Action

Will set the programmer from the source code.

 

Syntax

$PROGRAMMER = number

 

Remarks

Number

A numeric constant that identifies the programmer.

 

The $PROGRAMMER directive will set the programmer just before it starts programming. When you press F4 to program a chip, the selected programmer will be made active. This is convenient when you have different project open and use different programmers.

But it can also lead to frustration as you might think that you have the 'STK200' selected, and the directive will set it to USB-ISP.

 

The following values can be used :

 

Value

Programmer

0

AVR-ISP programmer(old AN 910)

1

STK200/STK300

2

PG302

3

External programmer

4

Sample Electronics

5

Eddie Mc Mullen

6

KITSRUS K122

7

STK500

8

Universal MCS Interface

9

STK500 extended

10

Lawicel Bootloader

11

MCS USB

12

USB-ISP I

13

MCS Bootloader

14

Proggy

15

FLIP (Atmel)

16

USBprog Programmer/ AVR ISP mkII (Atmel)

17

Kamprog for AVR

18

MyAVR MKII/AVR910

19

USBASP

20

JTAG MKII

21

STK600

22

ARDUINO (using stk500v1 protocol)

23

ARDUINO V2 (using stk500v2 protocol)

24

MINI-MAX/AVR-C (BIPOM)

25

mySmart USB light STK500 mode

 

 

See also

$PROG

 

 

ASM

NONE

 

 

Example

$REGFILE