HELP!! device upgrade for bpickit2

Status
Not open for further replies.
that code I posted is totally wrong. I do not have an adc input voltage
back to the drawing board.
 
here is my TEST code for installing all 35 leds as I solder them on the board tomorrow morning. Hopefully this will work? it should.
Code:
{
*****************************************************************************
*  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
 
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?
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 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.
 
The beginning part of your test program in post #24 should look like this:
Code:
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"

You don't need any other 'include' statements.
"intosc.bas" should always be included first, and I corrected the '#option' for setdigitalio.bas to get setalldigital called for you.
 
will make recommended changes.
need to find out what happened to my order for the pk easy suite. Never got an email w/ url
 
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.
Yeah, they do it manually so it might take a day or two (mine took 24hrs roughly).
 
If you use a standalone socket/board to program the PICs (ie not doing in circuit programming), under tools, tick "Fast programming", makes a big difference to speed.

Dis-regard the Pickit 3 not found message in the image, I didn't have it connected.
 
thanks but all my projects are smd.
I do have a test board that I can try this out.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…