With this code one led is blinking.By the way,I had no succes compiling with MPASM,I use PM for both.
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
'VARS
LED1 VAR PORTC.0
LED2 VAR PORTC.1
START:
HIGH LED1
LOW LED2
PAUSE 250
LOW LED1
HIGH LED2
PAUSE 250
GOTO START
I have now a breadboard,rezistors,leds and PIC16F628.Can we go on with it?
THANK YOU!!!
Bookmarks