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.
Have fun with the assembly. You don't need MPLAB (but you may later if you plan on using C18 or Asm) if you plan on using Swordfish.
 
You'll be running them deer away now. Get swordfish basic you'll like it.
 
sowardfish dosn't use mplab??

does it have a simpler way of writing code then using junebug to program the pic?
am a newbi with this pic stuff but seeing all the refereces to using them I figure I should get with the program.
Oh by the way anybody have a use for 20+ 4 pos dip switches??
I doubt I will ever use them
 
Make sure you check this site out **broken link removed**
Swordfish It's basic and it can build a hex for the 18fxxx by itself. And it not that hard to learn.
And look at this site to and you'll for get the 555 and say I should of got a pic sooner.PIC microcontrollers : chapter 7 - Examples
 
Last edited:
I just got my junebug today also. I put it together and tried running "hello world" but now I need PK2CMD.exe and Microsoft .net Framework?
 
Mike,

Can't you just select PicKit2 as the programmer (or debugger) in MPLAB?

Mike.
 
I don't have MPLAB.
I went with the Junebug and swordfish.
This whole thing is very confusing.
 
PK2CMD.EXE is on the Microchip site (development tools PICKit2)
And .net is available from Microsoft.

It's easy to integrate the Junebug into Swordfish. Smooth one button compile, program & run F<10>
 
So install them?
 
Did that, just got done with windblows updates.
I have two leds lit on the board Green & yellow
I get two errors when I run the program
 
Here is the program

Device = 18f1320
Clock = 4
Config OSC = INTI02, WDT = OFF, LVP = OFF
Include "USART.bas"
OSCCON = $62
SetBaudrate (br9600)
While true
USART.Wrtie("Hello World",13 ,10)
DelayMS(1000)
Wend
End

I get error invalid operation : INTI02
&
Error identifier not declared :write
 
I fixed the second problem by spelling "write" correctly

Still have the invalid operation
 
The 0 in INTIO2 is the letter O not zero and you spelt write wrong.

USART.Wrtie("Hello World",13 ,10)

Mike.
 
Mike2524 I have always had to do config like this
Code:
Clock = 8
Config OSC = INTIO2
Config MCLRE = OFF
 
Thanks you two.
I caught the typo and the 0&O look very similar.

OK I did the f10 thing...now what?
 
Mike2524 I have always had to do config like this
Code:
Clock = 8
Config OSC = INTIO2
Config MCLRE = OFF

Right now I have no idea what I'm doing. I'm just copying out of the blueroomelectronics literature that came with the kit.

Where do I see "hello world"?
 
Last edited:
In Swordfish you should press F9 (not F10) to compile your code.
Now switch to the PicKit2 software and select the 18F1320.
Use the "Auto import ..." button and load your hex file.
In the PK2 software select tools->Uart Tool.

You should now see Hello World.

Note, the tutor, RX & TX switches have to be on.

Mike.
 
I always use the pickit2 software to program it's newer than the PK2CMD.EXE and swordfish can't find it even when I set it manually
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top