Wajiduddaim
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
- 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
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
i m using " mikroC PRO for PIC V1.65 "
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
i m using " mikroC PRO for PIC V1.65 "