Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

none configuration word in the hex file PIC16F887

Status
Not open for further replies.

Wajiduddaim

Junior Member level 1
Junior Member level 1
Joined
May 12, 2011
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
darbar-e-Sadria
Visit site
Activity points
1,464
Hi
i m new and basic user

using PIC16F887, and i m facing the problem before writing it, the message appears

"Warning some configuration words not in hex file, Please Set it after the loading"

what dose its mean?
but its working fine in " Proteus ISIS 7 Professional "

my code is

Code:
unsigned char temp_value = 0;
unsigned char old_value = 0;

sbit LED at RA1_bit;


void main()
{
  ANSEL  = 0x01;              // Configure AN0 pin as analog
  TRISA  = 0xFD;              // one pic for putput
  ANSELH = 0;                 // Configure other AN pins as digital I/O
  UART1_Init(9600);              // Initialize UART module at 9600 bps
  Delay_ms(100);                 // Wait for UART module to stabilize

while (1)
      {                    // Endless loop
         Delay_ms(500);                 // Wait aprox 50% duty cycle, jst blink LED
         LED = !LED  ;
         temp_value = ADC_Read(0);   // Get 10-bit results of AD conversion
         if(old_value != temp_value)
           {
             old_value = temp_value;
             UART1_Write(temp_value);       //   and send data via UART
           }
      }


the pin 13 and 14 for crystal ???

if i use external crystal 11.0592MHz, can i connect it with directly with Micro-controller at pic 13 and 14, i mean without Initializing in code because these pins are also I/O pins
PIC16F887-pinout[1].jpg

i m using " mikroC PRO for PIC V1.65 "
 

Hi
i m new and basic user

using PIC16F887, and i m facing the problem before writing it, the message appears

"Warning some configuration words not in hex file, Please Set it after the loading"

what dose its mean?
but its working fine in " Proteus ISIS 7 Professional "

my code is

Code:
unsigned char temp_value = 0;
unsigned char old_value = 0;

sbit LED at RA1_bit;


void main()
{
  ANSEL  = 0x01;              // Configure AN0 pin as analog
  TRISA  = 0xFD;              // one pic for putput
  ANSELH = 0;                 // Configure other AN pins as digital I/O
  UART1_Init(9600);              // Initialize UART module at 9600 bps
  Delay_ms(100);                 // Wait for UART module to stabilize

while (1)
      {                    // Endless loop
         Delay_ms(500);                 // Wait aprox 50% duty cycle, jst blink LED
         LED = !LED  ;
         temp_value = ADC_Read(0);   // Get 10-bit results of AD conversion
         if(old_value != temp_value)
           {
             old_value = temp_value;
             UART1_Write(temp_value);       //   and send data via UART
           }
      }


the pin 13 and 14 for crystal ???

if i use external crystal 11.0592MHz, can i connect it with directly with Micro-controller at pic 13 and 14, i mean without Initializing in code because these pins are also I/O pins
View attachment 89679

i m using " mikroC PRO for PIC V1.65 "


=================================================================

- - - Updated - - -

Hi
i m new and basic user

using PIC16F887, and i m facing the problem before writing it, the message appears

"Warning some configuration words not in hex file, Please Set it after the loading"

what dose its mean?
but its working fine in " Proteus ISIS 7 Professional "

my code is

Code:
unsigned char temp_value = 0;
unsigned char old_value = 0;

sbit LED at RA1_bit;


void main()
{
  ANSEL  = 0x01;              // Configure AN0 pin as analog
  TRISA  = 0xFD;              // one pic for putput
  ANSELH = 0;                 // Configure other AN pins as digital I/O
  UART1_Init(9600);              // Initialize UART module at 9600 bps
  Delay_ms(100);                 // Wait for UART module to stabilize

while (1)
      {                    // Endless loop
         Delay_ms(500);                 // Wait aprox 50% duty cycle, jst blink LED
         LED = !LED  ;
         temp_value = ADC_Read(0);   // Get 10-bit results of AD conversion
         if(old_value != temp_value)
           {
             old_value = temp_value;
             UART1_Write(temp_value);       //   and send data via UART
           }
      }


the pin 13 and 14 for crystal ???

if i use external crystal 11.0592MHz, can i connect it with directly with Micro-controller at pic 13 and 14, i mean without Initializing in code because these pins are also I/O pins
View attachment 89679

i m using " mikroC PRO for PIC V1.65 "


=================================================================
 

=================================================================

- - - Updated - - -

Hi
i m new and basic user

using PIC16F887, and i m facing the problem before writing it, the message appears

"Warning some configuration words not in hex file, Please Set it after the loading"

what dose its mean?
but its working fine in " Proteus ISIS 7 Professional "

my code is

Code:
unsigned char temp_value = 0;
unsigned char old_value = 0;

sbit LED at RA1_bit;


void main()
{
  ANSEL  = 0x01;              // Configure AN0 pin as analog
  TRISA  = 0xFD;              // one pic for putput
  ANSELH = 0;                 // Configure other AN pins as digital I/O
  UART1_Init(9600);              // Initialize UART module at 9600 bps
  Delay_ms(100);                 // Wait for UART module to stabilize

while (1)
      {                    // Endless loop
         Delay_ms(500);                 // Wait aprox 50% duty cycle, jst blink LED
         LED = !LED  ;
         temp_value = ADC_Read(0);   // Get 10-bit results of AD conversion
         if(old_value != temp_value)
           {
             old_value = temp_value;
             UART1_Write(temp_value);       //   and send data via UART
           }
      }


the pin 13 and 14 for crystal ???

if i use external crystal 11.0592MHz, can i connect it with directly with Micro-controller at pic 13 and 14, i mean without Initializing in code because these pins are also I/O pins
View attachment 89679

i m using " mikroC PRO for PIC V1.65 "


=================================================================

Pic can also be run on internal clock then these two pins may be used as IO, you need to program HS fuse for using crystal, as I am also beginner hence some questions I can't answer, but I think you need to program fuse bits to get rid of configuration word message.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top