Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 2nd May 2008, 12:27 AM   (permalink)
Default Swordfish SE Question

I just got my Junebug kit finished and am trying to get started with the sample programs (particularly Blink) using Swordfish. When trying to complile and program, after going through the programming process, I get a message box that says I have to reset the microcontroller. I know it is probably something simple, but I can't figure out how to do this. Can anyone help me out? Thanks!
lclark is offline  
Reply With Quote
Old 2nd May 2008, 01:20 AM   (permalink)
Default

Are you using the Swordfish IDE?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply With Quote
Old 2nd May 2008, 01:28 AM   (permalink)
Default

If you are using Swordfish's IDE then you'll need the PK2CMD.EXE (download from Microchip)
From the Swordfish IDE
View/Program and Compile Options/Programmer
Create a new entry Junebug and enter
Code:
/PPIC$target-device$ /F$long-hex-filename$ /M /R /H2
This will program allow Swordfish to work directly with the Junebug (It also runs after compile automatically)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 2nd May 2008 at 01:30 AM.
blueroomelectronics is online now  
Reply With Quote
Old 2nd May 2008, 01:36 AM   (permalink)
Default

Thanks for the quick reply. I'll try it as soon as I get home.
lclark is offline  
Reply With Quote
Old 2nd May 2008, 01:39 AM   (permalink)
Default

Try this one too.
http://www.electro-tech-online.com/micro-controllers/38313-junebug-ir-remote-protocol-viewer.html?highlight=Junebug

I can create a Swordfish BASIC version if you want. It's a very simple program.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply With Quote
Old 2nd May 2008, 01:43 AM   (permalink)
Default

Seems that this link is broken
__________________
Steve
______________________
info@mister-e.org
www.mister-e.org
mister_e is offline  
Reply With Quote
Old 2nd May 2008, 01:44 AM   (permalink)
Default

Hmm, then I'll just repost it. It was small.
The new PICkit2 2.50 software includes a very useful logic analyzer tool. Here's a simple program that will let you use the LA tool to view / analyze many IR remote signals (36KHz - 40KHz)

Code:
;*** Junebug IR Bridge, uses PICkit2 Logic Analyzer mode Ch1
;*** DIP-4 (TX) should be on, Trigger Analyzer on Ch1 "/"
    list    p=18F1320        
    include    <p18f1320.inc>
    CONFIG    OSC=INTIO2,WDT=OFF,LVP=OFF
    org    0h
    movlw    72h
    movwf    OSCCON        ; 8MHz clock
    setf    ADCON1        ; set all I/O to digital
    bcf    INTCON2,RBPU    ; enable PORTB input pullups
    movlw    b'11111101'
    movwf    TRISB        ; RB0 in, RB1 out
loop    btfss    PORTB,0
    bsf    LATB,1    
    btfsc    PORTB,0
    bcf    LATB,1
    bra    loop        ; loop forever
    END



Sony 12bit SIRC power command from a Sony RVM-V202 remote control
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply With Quote
Old 2nd May 2008, 01:50 AM   (permalink)
Default

I agree, PICKIT 2 (that JuneBug clone ) is really nice. ~40$ and you have all those nice features and more to come. I wish they could add some kind of protocol analyzer feature... but this would kill their PICKIT Serial Analyzer sales... if there's any...
__________________
Steve
______________________
info@mister-e.org
www.mister-e.org
mister_e is offline  
Reply With Quote
Old 2nd May 2008, 04:09 AM   (permalink)
Default

Thanks Bill. I downloaded and installed PICKIT2 but have no idea how to even input the program...I'm a total noob. I'll have to get my nose in the manuals and get to reading.
lclark is offline  
Reply With Quote
Old 2nd May 2008, 05:22 AM   (permalink)
Default

I put together a video tutorial a while back for beginners and PIC programming, even goes into using SF and PICKit2 software and programming your PIC
  • From start to end - how to get an LED to blink!
  • Basic hardware requirements
  • Concept of breadboards
  • How to use PICKit 2 and Swordfish software
  • How to drive datasheets to extract pinouts etc

http://www.digital-diy.net/Tutorials/Tutorials.aspx



There's a new version with a few updated bits n pieces (eg, you can just use a normal 0.1uF ceramic disc instead of a tantalum cap on the voltage reg)
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Reply With Quote
Old 2nd May 2008, 02:13 PM   (permalink)
Default

MPLAB is for creating / editing / debugging your firmware, it's an all in one development environment. It also includes a software simulator and a stopwatch. MPASM and many PIC compilers can be seamlessly integrated with MPLAB's IDE.

PICkit2 software is for reading / writing .HEX files, it also contains many utilities for your PICkit2 / Junebug. Diagnostics, naming your programmer, UART tool, LA tool, one button programming, EEPROM (SPI, I2C, Microwire) programming. It's an excellent complimentary tool to MPLAB.

PK2CMD is the command line programming tool. Swordfish can use this to program the target PIC from within its IDE.

The PICkit2 & Junebug are very flexible tools, you can even load custom firmware on them such as a FT232 emulator with the built in bootloader.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply With Quote
Old 2nd May 2008, 03:06 PM   (permalink)
Default

Thank you very much to both of you! I'm diving into the tutorials and watching videos. I think they will be a great help in my learning process. I'll be trying some things out this weekend...pretty exciting stuff!
Thanks again!
lclark is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Capacitor Charge/Discharge question ThermalRunaway General Electronics Chat 25 12th August 2008 04:48 PM
Basic Transmission question CamNuge General Electronics Chat 2 8th March 2006 10:08 PM
High speed data logging question cubdh23 Micro Controllers 3 19th August 2004 11:54 AM
Data Logging question with high speed!!!! cubdh23 General Electronics Chat 4 16th August 2004 06:33 PM
PBX question waqar Electronic Projects Design/Ideas/Reviews 0 30th March 2003 06:21 PM



All times are GMT. The time now is 06:41 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.