>>> Paul Waterfield wrote: > > At present I write my programs with MPLAB and compile them and then > transfer them to the PRO MATE programmer, whereupon all the fuses > need to be reset manually to their required values. This can get > annoying when developing. My question is is there a way of > configuring the fuses in MPLAB such that they are correct when the > compiled program is loaded into PRO MATE ? or do I have to live with > it. Paul: In our assembly listing use the __CONFIG directive like __CONFIG _CP_OFF&_WDT_OFF&_HS_OSC&_PWRTE_ON note that there are TWO underlines before config. the fuse bits are defined in the 16xxx.inc file. Have Fun, Brooke <<< Paul, You can use Brooke's technique with MPLAB or try this. It is tollerated by most of the Microchip compilers. A warning of address out of range is the worst you get. The programming reference in the data book is all you need org 0x2000 ;start of programing config space for '74 DE b'1111111000xxxx' ;where xxxx is ID info location 1 DE b'1111111000xxxx' ;where xxxx is ID info location 2 DE b'1111111000xxxx' ;where xxxx is ID info location 3 DE b'1111111000xxxx' ;where xxxx is ID info location 4 org 0x2007 DE b'0000000abbcdee' ;where a is the brown out enable (74A) ;bb is code protect (00)...all, (11)...off ;c is power up timer enable ;d is watch dog enable ;ee is oscillator select. (01) is XT ;see page 3-21 of 95/96 data book for more details on other processors. ;The 'DE' directive forces a full word into code space. Charlie Jenkins Pioneer Standard Field Applications