And here the LEDs blink in other way:
Code:'**************************************************************** '* Name : P16F690.INC * '* Author : [ Osceola ] * '* Notice : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] * '* : All Rights Reserved * '* Date : 25/08/2009 * '* Version : 1.0 * '* Notes : 16F690 DEMO * '* : * '**************************************************************** '16F690 DEMO ' DEFINE OSC 4 OSCCON=%01100000 @ device pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off TRISC = %00101010 '0 will make the pins an output, 1 will make them inputs 'VARS LED1 VAR PORTC.0 LED2 VAR PORTC.1 LED3 Var PORTC.2 LED4 VAR PORTC.3 START: HIGH LED1 LOW LED2 HIGH LED3 LOW LED4 PAUSE 300 LOW LED1 HIGH LED2 LOW LED3 HIGH LED4 PAUSE 300 PORTC = %00000111 PAUSE 300 HIGH LED1 LOW LED2 HIGH LED3 LOW LED4 PAUSE 300 LOW LED1 HIGH LED2 LOW LED3 HIGH LED4 PAUSE 300 PORTC = %11100000 PAUSE 300 GOTO START




Bookmarks