• 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.

blueroomelectronics

Well-Known Member
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.
 

be80be

Well-Known Member
You'll be running them deer away now. Get swordfish basic you'll like it.
 

MrDEB

Well-Known Member
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
 

Mike_2545

Super Moderator
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?
 

Pommie

Well-Known Member
Most Helpful Member
Mike,

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

Mike.
 

Mike_2545

Super Moderator
I don't have MPLAB.
I went with the Junebug and swordfish.
This whole thing is very confusing.
 

blueroomelectronics

Well-Known Member
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>
 

Sceadwian

Banned
So install them?
 

Mike_2545

Super Moderator
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
 

Mike_2545

Super Moderator
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
 

Mike_2545

Super Moderator
I fixed the second problem by spelling "write" correctly

Still have the invalid operation
 

Pommie

Well-Known Member
Most Helpful Member
The 0 in INTIO2 is the letter O not zero and you spelt write wrong.

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

Mike.
 

be80be

Well-Known Member
Mike2524 I have always had to do config like this
Code:
Clock = 8
Config OSC = INTIO2
Config MCLRE = OFF
 

Mike_2545

Super Moderator
Thanks you two.
I caught the typo and the 0&O look very similar.

OK I did the f10 thing...now what?
 

Mike_2545

Super Moderator
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:

Pommie

Well-Known Member
Most Helpful Member
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.
 

be80be

Well-Known Member
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

EE World Online Articles

Loading
Top