PR26, PIC18F2550 and FUSE

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PR26, PIC18F2550 and FUSE

Postby Iro » Sat Oct 05, 2013 5:41 pm

Hello,
I must programm the pic with an external programmer K150
I need to configure the fuse with my programmer.
But I have some differecnces that i can't match between the programmer and the source code.
Could you help me ? Thank you

CODE: SELECT_ALL_CODE
       #pragma config PLLDIV   = 5         // (20 MHz crystal on PICDEM FS USB board)
        #pragma config CPUDIV   = OSC1_PLL2  
       #pragma config USBDIV   = 2         // Clock source from 96MHz PLL/2
        #pragma config FOSC     = HSPLL_HS
        #pragma config FCMEN    = OFF
        #pragma config IESO     = OFF
        #pragma config PWRT     = OFF
        #pragma config BOR      = ON
        #pragma config BORV     = 3
        #pragma config VREGEN   = ON      //USB Voltage Regulator
        #pragma config WDT      = OFF
        #pragma config WDTPS    = 32768
        #pragma config MCLRE    = ON
        #pragma config LPT1OSC  = OFF
        #pragma config PBADEN   = OFF
//      #pragma config CCP2MX   = ON
        #pragma config STVREN   = ON
        #pragma config LVP      = OFF
//      #pragma config ICPRT    = OFF       // Dedicated In-Circuit Debug/Programming
        #pragma config XINST    = OFF       // Extended Instruction Set
        #pragma config CP0      = OFF
        #pragma config CP1      = OFF
//      #pragma config CP2      = OFF
//      #pragma config CP3      = OFF
        #pragma config CPB      = OFF
//      #pragma config CPD      = OFF
        #pragma config WRT0     = OFF
        #pragma config WRT1     = OFF
//      #pragma config WRT2     = OFF
//      #pragma config WRT3     = OFF
        #pragma config WRTB     = OFF       // Boot Block Write Protection
        #pragma config WRTC     = OFF
//      #pragma config WRTD     = OFF
        #pragma config EBTR0    = OFF
        #pragma config EBTR1    = OFF
//      #pragma config EBTR2    = OFF
//      #pragma config EBTR3    = OFF
        #pragma config EBTRB    = OFF


Image

:)
Iro
Greenhorn
 
Posts: 3
Joined: Sat Oct 05, 2013 5:05 pm

Re: PR26, PIC18F2550 and FUSE

Postby sich » Thu Oct 10, 2013 12:10 pm

What are the differences? Please list down the items.
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Re: PR26, PIC18F2550 and FUSE

Postby ober » Wed Oct 16, 2013 9:19 am

If you put enough effort to study the label between code and drop down menu, you will get the relationship easily.

Example PLLDIV = 5 is pointing to PLLDIV column that showing OSC/10 (40MHz) currently. You should choose OSC/5 instead.

Of course the other drop down too.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: PR26, PIC18F2550 and FUSE

Postby Iro » Tue Nov 26, 2013 12:54 am

ober WROTE:If you put enough effort to study the label between code and drop down menu, you will get the relationship easily.

It was not so easy because I already tried. But some had no relation, even with the mplab documentation.
Whatever , here are the relation between them.

Image

The fuse with no protection for the PIC
Image

Thank you, it's work great :)
Iro
Greenhorn
 
Posts: 3
Joined: Sat Oct 05, 2013 5:05 pm

Re: PR26, PIC18F2550 and FUSE

Postby ober » Thu Nov 28, 2013 12:00 pm

Thanks for sharing the result.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 3 guests