MrDEB
Well-Known Member
been trying to get this chip to blink an Led but it isn't right. The blink is tooo slow.
downloaded the latest version of SetDigitalIO.bas (newest one I found) and still the clock is running way to slow.
downloaded the latest version of SetDigitalIO.bas (newest one I found) and still the clock is running way to slow.
code=basic
DEVICE = 18F43k20
CLOCK = 8
CONFIG MCLRE = OFF
CONFIG fOSC = INTIO67
CONFIG boren = off
INCLUDE "SetDigitalIO.bas"
INCLUDE "Utils.bas"
DIM MST_LED AS portE.1
setalldigital
OUTPUT (MST_LED)
WHILE true
MST_LED = 1 //portE.1
DELAYMS(500)
TOGGLE (MST_LED)
DELAYMS(500)
WEND
[/code QUOTE]
The K series of chips are a pain.