Want description of General term.

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
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
 

ErnieM

Joined Apr 24, 2011
8,377
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".
 

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
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


C:
#include <htc.h>
__CONFIG(LVP_OFF & BOREN_OFF & PWRTE_ON & WDTE_ON & FOSC_HS);
//IRCF=0b111;


main (){
TRISC=0B00000000;
PORTC=0X00;
TRISB=0B00000000;
PORTB=0X00;
while(1){
PORTB=0Xff;
PORTC=0b10101010;


}
}
 

ErnieM

Joined Apr 24, 2011
8,377
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.
 

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
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:

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
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.
 
Top