Want description of General term.

Discussion in 'Embedded Systems and Microcontrollers' started by RRITESH KAKKAR, Apr 1, 2015.

  1. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    hello guys,
    I want to know these term application meaning:

    1. In circuit Debuggers
    2. LOW Voltage Programming there is 13V i dont understand the meaning the pic work in 5V is 13v needed to program flash or EEPROM??
    3. Fail-Safe Clock Monito
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    An in circuit debugger will debug your code in circuit: in the actual hardware as it is actually running. Get one!

    Typically one needs to raise the Vpp programming pin to a high value to enter the programming mode. Low voltage programming does not need 13V (one of many values for Vpp during programming) but does use an extra pin.

    A "Fail-Safe Clock Monito" (monitor?) only has meaning in the specific context where it is defined. But in some sense it issues some sort of warning when a clock signal is lost. How or what constitutes "lost" depends on that sticky "specific context where it is defined".
     
  3. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hello,
    i have pic kit 2 it has pic18 i think and two BJT as voltage double may be.
    I don't understand the programming voltage theory i mean can we program pic16f887 at 5V i am in doubt.

    one more how set 8Mhz internal oscillator in PIC16f887


    Code (C):
    1. #include <htc.h>
    2. __CONFIG(LVP_OFF & BOREN_OFF & PWRTE_ON & WDTE_ON & FOSC_HS);
    3. //IRCF=0b111;
    4.  
    5.  
    6. main (){
    7. TRISC=0B00000000;
    8. PORTC=0X00;
    9. TRISB=0B00000000;
    10. PORTB=0X00;
    11. while(1){
    12. PORTB=0Xff;
    13. PORTC=0b10101010;
    14.  
    15.  
    16. }
    17. }
    18.  
     
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    The PICkit 2 has a very fine manual. I suggest you read it for the specifics on how it works. The PIC16F877 will work with any programmer excepting the orgional PICkit 1.

    You use the internal oscillator as described in Section 4.1 of the device data sheet. You need to set IRFC and SCS to use the internal oscillator. Note the "Fail Safe Clock Monito" has no effect when using the internal oscillator.
     
  5. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hello,
    It is PIC16F887 NOT PIC16F877
    anyway,I have PIC16F877a little bit experience working on it.

    Thanks

    The code i posted was showing error i dnt have time to debug other micro.

    Build C:\Users\abc\Documents\mplab\led.C for device 16F887
    Using driver C:\Program Files (x86)\HI-TECH Software\PICC\9.83\bin\picc.exe

    Make: The target "C:\Users\abc\Documents\mplab\led.p1" is out of date.
    Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 C:\Users\abc\Documents\mplab\led.C -q --chip=16F887 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
    Warning [374] C:\Users\abc\Documents\mplab\led.C; 3.7 missing basic type; int assumed
    Error [984] C:\Users\abc\Documents\mplab\led.C; 3.7 type redeclared
    Error [1098] C:\Users\abc\Documents\mplab\led.C; 3.7 conflicting declarations for variable "IRCF0" (C:\Program Files (x86)\HI-TECH Software\PICC\9.83\include\pic16f887.h:938)
    Warning [374] C:\Users\abc\Documents\mplab\led.C; 4.7 missing basic type; int assumed
    Error [984] C:\Users\abc\Documents\mplab\led.C; 4.7 type redeclared
    Error [1098] C:\Users\abc\Documents\mplab\led.C; 4.7 conflicting declarations for variable "IRCF1" (C:\Program Files (x86)\HI-TECH Software\PICC\9.83\include\pic16f887.h:939)
    Warning [374] C:\Users\abc\Documents\mplab\led.C; 5.7 missing basic type; int assumed
    Error [984] C:\Users\abc\Documents\mplab\led.C; 5.7 type redeclared
    Error [1098] C:\Users\abc\Documents\mplab\led.C; 5.7 conflicting declarations for variable "IRCF2" (C:\Program Files (x86)\HI-TECH Software\PICC\9.83\include\pic16f887.h:940)

    ********** Build failed! **********
     
    Last edited: Apr 2, 2015
  6. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    We are happy your PIC has you amused.
     
  7. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hello,

    Can you please clear the doubt of 13V programming the micro??
    What that mean in technical term?
     
  8. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
  9. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hello,
    There was no such explanation of these term.
    13V programming the micro
    Can't we do in 5V ?
     
  10. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    Perhaps you should search for the term they do use: VPP

    And do note that VPP is specfied as between 10 and 12VDC for these devices. I don't know where you got 13V.
    See section 3.1.
     
  11. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    hello,
    wiki say this , not clear to me High volatge use 12V and low volatge 5V

    1. ICSP programming is performed using two pins, clock (PGC) and data (PGD), while a high voltage (12V) is present on the Vpp/MCLR pin. Low voltage programming (5V or 3.3V) dispenses with the high voltage, but reserves exclusive use of an I/O pin.
     
  12. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    There are two different programming methods with different conditions.
     
  13. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Bootloading IS 3RD.
    Please tell me more about it how they work.
     
  14. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    988
    Do you ever bother to search or do you think it is easier for you for others to take time to answer questions that are so easily found?

    Very first hit in a search
    http://hades.mech.northwestern.edu/index.php/USB_bootloading
     
Loading...