Works for me
but like HenrikOlsson said make sure you have 12f675 selected
16f628 is the default on mine
Code:
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : grounded *
'* Notice : Copyright (c) 2009 Copyright *
'* : All Rights Reserved *
'* Date : 9/15/2009 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
rem device 12F675
CMCON = 7 'SETS DIGITAL MODE
TRISIO = %00111100 'MAKES GPIO.2,3,4,AND 5 AN INPUT
DEFINE OSCCAL_1K 1 'PRESERVES OSCILLATOR CALIBRATION
J VAR BYTE 'DEFINE VARIABLE J
low GPIO.0
END
" be nice it's people like me that make people like you look smart"
yes I read the datasheet, of the 300 pages I understood 10
Bookmarks