I am trying to compile the code for PIC16F877A for Timer0. Previously the same code was built successfully(with MPLAB v8.10) but now it is showing
on error with MPLAB v8.56 as well as on MPLAB v 8.88
Error [192] F:\practice\T0_timer.c; 7.1 undefined identifier "OPTION_REG'
and shows build failed.
actually .cof file is generated properly when i build it with no error but when i rebuild my code it shows error 192...........would you please help me out?
PHP:
my code is as follows
Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<htc.h>void main(){
OPTION_REG=0x01;
TRISB=0x00;while(1){
RBO=~RB0;
TMR0=0x05//count set to250usec with 1:4 prescaler to produce 250*4=1000usec delaywhile(!TMROIF);
TMROIF=0;}}