158 |
jicha |
1 |
#include <16F876A.h> |
|
|
2 |
#device adc=8 |
|
|
3 |
|
|
|
4 |
#FUSES NOWDT //No Watch Dog Timer |
|
|
5 |
#FUSES XT //Crystal osc <= 4mhz |
|
|
6 |
#FUSES NOPUT //No Power Up Timer |
|
|
7 |
#FUSES NOPROTECT //Code not protected from reading |
|
|
8 |
#FUSES NODEBUG //No Debug mode for ICD |
|
|
9 |
#FUSES BROWNOUT //Reset when brownout detected |
|
|
10 |
#FUSES LVP //Low Voltage Programming on B3(PIC16) or B5(PIC18) |
|
|
11 |
#FUSES NOCPD //No EE protection |
|
|
12 |
#FUSES NOWRT //Program memory not write protected |
|
|
13 |
|
|
|
14 |
#use delay(clock=4000000) |
|
|
15 |
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) |
|
|
16 |
|