Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <18F4550.h>
- #device ADC=16
- #FUSES NOWDT //No Watch Dog Timer
- #FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
- #FUSES NOBROWNOUT //No brownout reset
- #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
- #FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
- #use delay(clock=48000000,crystal=4000000)
- void main()
- {
- set_tris_d(0b00000000); // RD on LEDs.
- while(true) // infinito.
- {
- output_d(0XFF); // Acende todos LEDs portD
- delay_ms(1000); // delay 2 secs
- output_d(0); // Apaga todos LEDs portD
- delay_ms(1000); // delay 2 secs
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement