Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
That's ok, it's never used.I do not have an adc input voltage
{
*****************************************************************************
* Name : UNTITLED.BAS *
* Author : [select VIEW...EDITOR OPTIONS] *
* Notice : Copyright (c) 2021 [select VIEW...EDITOR OPTIONS] *
* : All Rights Reserved *
* Date : 12/27/2021 *
* Version : 1.0 *
* Notes : use for assembly and port testing *
* : *
*****************************************************************************
}
'Program Christmas Star 2021
Device = 18F43k22 ' Tell the compiler what chip we are using
Clock = 8 ' Tell the compiler what we will be setting the clock to (Mhz)
//CONFIG MCLRE = OFF
Config fOSC = INTIO67 ' Internal oscillator, IO on pins 6 and 7
#option DIGITAL_INIT = true
Include "SetDigitalIO.bas" // Include this file when we compile so that we can use keywords like 'setalldigital'
Include "utils.bas"
Include "convert.bas"
Include "intosc.bas"
Dim x As Byte
// set all the ports as outputs
TRISA=0
TRISB=0
TRISC=0
TRISD=0
While true
For x = 0 To 7
PORTA.bits(x)=1
PORTB.bits(x)=1
PORTC.bits(x)=1
PORTD.bits(x)=1
DelayMS(500)
PORTA.bits(x)=0
PORTB.bits(x)=0
PORTC.bits(x)=0
PORTD.bits(x)=0
DelayMS(500)
Next
Wend
If it's any help, I got the Pickitplus basic suite - it contains software for the Pickit 2 and the Pickit 3 (seperate programs) - it is an update of the 3.10 software Tumbleweed mentioned - it also programs much faster than the original.I looked at the link in post #13 and contemplating the pickiteasy version for pk2 & pk3.
Or maybe the pickitplus basic suite. Wonder what is the difference?
Device = 18F43K22 ' Tell the compiler what chip we are using
Clock = 8
Include "intosc.bas"
#option DIGITALIO_INIT = true // automatically call setalldigital at startup
Include "SetDigitalIO.bas"
Yeah, they do it manually so it might take a day or two (mine took 24hrs roughly).I ordered the pkplus basic as well this morning as my recent pk2 install is acting weird. It locks up etc.
Ordered at 4am this morning and yet to get an email with install url.