Subversion Repositories svnkaklik

Rev

Rev 410 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 410 Rev 659
1
#include <16F88.h>
1
#include <16F88.h>
2
//#device ICD=TRUE
2
//#device ICD=TRUE
3
#device adc=8
3
#device adc=8
4
 
4
 
5
#FUSES NOWDT                 	//No Watch Dog Timer
5
#FUSES NOWDT                 	//No Watch Dog Timer
6
#FUSES RC                     //Resistor/Capacitor Osc with CLKOUT
6
#FUSES RC                     //Resistor/Capacitor Osc with CLKOUT
7
#FUSES NOPUT                 	//No Power Up Timer
7
#FUSES NOPUT                 	//No Power Up Timer
8
#FUSES MCLR                  	//Master Clear pin enabled
8
#FUSES MCLR                  	//Master Clear pin enabled
9
#FUSES NOBROWNOUT            	//No brownout reset
9
#FUSES NOBROWNOUT            	//No brownout reset
10
#FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
10
#FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
11
#FUSES NOCPD                 	//No EE protection
11
#FUSES NOCPD                 	//No EE protection
12
#FUSES NOWRT                 	//Program memory not write protected
12
#FUSES NOWRT                 	//Program memory not write protected
13
//#FUSES DEBUG                 	//Debug mode for use with ICD
13
//#FUSES DEBUG                 	//Debug mode for use with ICD
14
#FUSES NOPROTECT             	//Code not protected from reading
14
#FUSES NOPROTECT             	//Code not protected from reading
15
#FUSES FCMEN                 	//Fail-safe clock monitor enabled
15
#FUSES FCMEN                 	//Fail-safe clock monitor enabled
16
#FUSES IESO                  	//Internal External Switch Over mode enabled
16
#FUSES IESO                  	//Internal External Switch Over mode enabled
17
 
17
 
18
#use delay(clock=4000000)
18
#use delay(clock=4000000)
19
#define MOTORA   PIN_B0
19
#define MOTORA   PIN_B0
20
#define MOTORB   PIN_B1
20
#define MOTORB   PIN_B1
21
#define MOTORC   PIN_B2
21
#define MOTORC   PIN_B2
22
#define MOTORD   PIN_B3
22
#define MOTORD   PIN_B3
23
 
23