Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <16F628A.h>
- #device ADC=16
- #FUSES NOWDT //No Watch Dog Timer
- #FUSES NOMCLR //Master Clear pin used for I/O
- #FUSES NOBROWNOUT //No brownout reset
- #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
- #use delay(internal=4000000)
- #use FIXED_IO( A_outputs=PIN_A7)
- #use FIXED_IO( B_outputs=PIN_B7,PIN_B6,PIN_B5,PIN_B4,PIN_B3,PIN_B2,PIN_B1,PIN_B0 )
- #define power PIN_A0
- #define pressostato PIN_A1
- #define chave1 PIN_A2
- #define chave2 PIN_A3
- #define chave3 PIN_A4
- #define chave4 PIN_A5
- #define porta PIN_A6
- #define LED PIN_A7
- #define motor1 PIN_B0
- #define motor2 PIN_B1
- #define bomba PIN_B2
- #define at_freio PIN_B3
- #define valvula1 PIN_B5 //PIN_B4
- #define valvula2 PIN_B6 //PIN_B5
- #define motorchave PIN_B4 //PIN_B6
- #define buzzer PIN_B7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement