Thanks for being patience,at the end I did it!But with this code one led stay on,and wit other code I will post one led is blinking.whats next?
Code:
'****************************************************************
'* Name : P16F690.INC *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 24/08/2009 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
'16F690 DEMO
'
DEFINE OSC 8 'Comment the 4Mhz and uncomment these for 8Mhz
OSCCON=%01110000
DEFINE OSC 4 'This is the default setting
OSCCON=%01100000
@ device pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off
TRISC = %00000000 '0 will make the pins an output, 1 will make them inputs
START:
PORTC = %00000001
PAUSE 250
PORTC = %00000010
GOTO START
Bookmarks