main.c


1
#include "cf_card.h"
2
3
/* Set configuration bits for use with ICD2 / PICDEM2 PLUS Demo Board:
4
 *  - set HS oscillator
5
 *  - disable watchdog timer
6
 *  - disable low voltage programming
7
 */
8
#pragma romdata CONFIG
9
_CONFIG_DECL(_CONFIG1H_DEFAULT & _OSC_HS_1H,\
10
             _CONFIG2L_DEFAULT,\
11
             _CONFIG2H_DEFAULT & _WDT_OFF_2H,\
12
             _CONFIG3H_DEFAULT,\
13
             _CONFIG4L_DEFAULT & _LVP_OFF_4L,\
14
             _CONFIG5L_DEFAULT,\
15
             _CONFIG5H_DEFAULT,\
16
             _CONFIG6L_DEFAULT,\
17
             _CONFIG6H_DEFAULT,\
18
             _CONFIG7L_DEFAULT,\
19
             _CONFIG7H_DEFAULT);
20
#pragma romdata
21
22
23
void main(void)
24
{
25
   unsigned char buffer[120];
26
27
   InitPIC();
28
   InitCF();
29
   Test();
30
   
31
   return;
32
}