Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

JUNEBUG has arrived

Status
Not open for further replies.
You can program most any chip with it's like a pickit 2 with experiment board made in but it can program Icsp with the
ICD programming / debugging connector (2x5 type)
Once you learn swordfish you don't need a 16f84 you can do the same with the 18f1320 just change the code to mach the chip you are using.
 
what is icsp??

I really want to learn this stuff.
maybe the phrase "can't teacjh an old dog new tricks" comes into play??
need to look at a data sheet closer, need to figure out the pickit2 lessons than figure out swordfish.
but need to build the dang junebug
 
It's A good programmer and Bill did a very good job with it. maybe this will help you some
It's a led Bink and a led on
Code:
Device = 18F1320
Clock = 8 // tells the compiler the FOSC speed
Config OSC = INTIO2, WDT = OFF, LVP = OFF
Include "Utils.bas"
dim LED as PORTA.0
dim sink as PORTA.6
OSCCON = %01111111 // select 8MHz internal oscillator
SetAllDigital
Output (PORTA.0)        // sets pin to output
Output (PORTA.6)
 
    low(sink)       // LED is off
While true
   delayms(1000)  // wait one second
  toggle(LED)    // switch on
Wend
Code:
Device = 18F1320
Clock = 8 // tells the compiler the FOSC speed
Config OSC = INTIO2, WDT = OFF, LVP = OFF
Include "Utils.bas"
OSCCON = %01111111 // select 8MHz internal oscillator
SetAllDigital
Output (PORTA.0)        // sets pin to output
Output (PORTA.6)
 While true
   High (PORTA.0)     // turns on led 1 of junebug
   Low  (PORTA.6)     // sinks for led 1
   Wend
 
Last edited:
If you have setup the PK2CMD.exe to work with Swordfish it's F<10> (compile & program). F<9> will only compile to a .hex file. You could use PICkit2 standalone software and load the hex file that way.

I didn't realise you could use the PK2 in the Swordfish IDE. I've been using the standalone PK2 software. I'm downloading PK2CMD as I type.

Sorry for any confusion caused.

Mike.
 
where is this PK2CMD.exe

I downloaded the pickit2 8.0
have swordfish loaded up
now this PK2CMD.exe is where ?
going to try out be80be code as soon as that bug is built.
 
the pk2cmd program can be found in the pickit2 page on microchips site. Unzip it anywhere on your c drive and swordfish will search for it.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top