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
 
LinkBack Thread Tools Display Modes
Old 19th November 2007, 02:35 AM   (permalink)
Default

That's a nice parts list. I'll locate the part numbers for VRx and the ferrite bead. I did a similar list on Google spreadsheet for Mongoose.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 19th November 2007, 03:03 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
That's a nice parts list. I'll locate the part numbers for VRx and the ferrite bead. I did a similar list on Google spreadsheet for Mongoose.
Your Mongoose list inspired me to give up on Octopart, at least till they get up to speed on a few issues. I will share the list with you soon. Today I got a 2nd JuneBug working. It was a very clean/easy build.
3v0 is offline  
Old 19th November 2007, 03:05 AM   (permalink)
Default

have you seen the nifty program Futz posted for the Junebug?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 23rd November 2007, 03:33 PM   (permalink)
Default Working JuneBug on small Win98 laptop

Perhaps someone will find this useful.

I just finished setting up MPLAB to work with JuneBug on a old Win98 laptop. No network connection. It is a Toshiba, AMD-K6 with 160Mb of RAM, not sure about the processor speed. The K6 with 3D Now maxed out at 475MHz.

Why? My youngest student travels a lot. The laptop will enable her to work away from home. No big loss if it is lost or broken.

So far it works suprisingly well. With program after build, and run after program enabled, it takes 7 seconds to build, program, and start execution. In this case a simple blink the status LED type program. This is surprisingly fast for this machine. It is an indicator of just how lean the original Win98 was.

The 800x600 screen is the most annoying thing. I did not check for drivers with more resolution because the screen is hard to look at as is.
From memory:
Formated the HD
Fresh OS install, no updates
Installed a USB flash drive driver via floppy (Kingston DataTravler 128)
Used the flash drive to install the rest
7Zip for decompressing files
MPLAB V8 with C18 compiler
DGIPLUS (system file for use with PCM)
CCS PCM
SETUP_MPLAB_PLUGIN (makes PCM work with MPLAB)
When the system powers down by itself (sleep?) it forgets about the JuneBug USB connection. Unplug/replug of the USB cable fixes it.
3v0 is offline  
Old 23rd November 2007, 03:55 PM   (permalink)
Default

Quote:
Originally Posted by 3v0
With program after build, and run after program enabled, it takes 7 seconds to build, program, and start execution.
How do you get it to run after program? This just does not work with V8.0 of MPLAB.

Mike.
Pommie is online now  
Old 23rd November 2007, 04:46 PM   (permalink)
Default

Run after program does not work when using the JuneBug as a programmer.

It does work when using JuneBug as a Debugger, but it forgets the setting if you switch to programmer and back.
3v0 is offline  
Old 23rd November 2007, 05:01 PM   (permalink)
Default

Quote:
Originally Posted by 3v0
but it forgets the setting if you switch to programmer and back.
Those settings are saved into an .INI file. Check if you have a "PICKIT 2" folder in "MPLAB IDE Common\". The issue has been reported/solved on the microchip forum IIRC.

Last edited by eng1; 23rd November 2007 at 05:29 PM.
eng1 is offline  
Old 23rd November 2007, 07:18 PM   (permalink)
Default

Thanks, that fixed it for me.

Created the folder
C:\Program Files\Microchip\MPLAB IDE Common\PICKIT 2

and MPLAB created a config file for PK2 there.
3v0 is offline  
Old 23rd November 2007, 08:05 PM   (permalink)
Default

Good catch eng1.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 27th November 2007, 02:56 AM   (permalink)
Default 2N7000 marking confusion

I have a strip of Fairchild 2n7000D26Z's from Mouser.

I was looking at the little line that one often sees on top of the transistor. Some of these 2n7000's have the line on the right and others on the left. I was under the impression that this mark indicated E. Why is it not in the same place on each of the supposed to be identical transistors?

Crude ASCII , round side would be up.
Code:
  /-------\
 / __      \
/-----------\
  /-------\
 /      __ \
/-----------\
3v0 is offline  
Old 27th November 2007, 03:52 AM   (permalink)
Default

I think it is just part of the injection molding process; it is the point where the plastic is injected into the mold for the casing.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Old 27th November 2007, 04:30 AM   (permalink)
Default

Both the 2N7000 and BS250 have different layouts. The giveaway is use a meter to figure out which way the internal diode is wired. The Junebug PCB was laid out to allow for different pinouts (as long as the Gate is in the middle)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 30th November 2007, 01:08 PM   (permalink)
Default C18 Junebug 18F1320 LED sequencer demo

A C18 version of the "Junebug 18F1320 LED sequencer demo".
This is a rather slavish copy of the ASM version.

Code:
// *** C18 Junebug 18F1320 LED sequencer demo ***
// Flashes LEDs1 thru 6 from left to right forever
// DIP Switch (SW6) must have TUTOR on (SW6-1,2,3) all other switches off
//
// NOTE: Add either 18f1320i.lkr (for debug) or 18f1320.lkr (no debug) to your project.

#pragma	config OSC = INTIO2, WDT = OFF, LVP = OFF, DEBUG = ON
#include <p18f1320.h>
#define LED(x,y)  LATA=x; TRISA=y; delay()

int count; // delay loop counter

void delay(void)
{
    for (count=64; count>0; count--) {} //decrement Count and skip when zero 
}
        
void main(void)
{
     ADCON1 = 0; // make RA0 digital
     while(1)    // loop forever
     {
        LED (0b00000001, 0b10111110 ); // LED <PORTA>, <TRISA>
        LED (0b01000000, 0b10111110 );
        LED (0b01000000, 0b00111111 ); 
        LED (0b10000000, 0b00111111 ); 
        LED (0b10000000, 0b01111110 ); 
        LED (0b00000001, 0b01111110 ); 
    }
}
EDIT:

This is a more C-ish version that chases the lights from left to right to left...
Code:
// *** C18 Junebug 18F1320 LED sequencer demo2 (chaser) ***
// Flashes LEDs1 thru 6 from left to right to left forever
// DIP Switch (SW6) must have TUTOR on (SW6-1,2,3) all other switches off
//
// NOTE: Project requires a linker scrpt.
// Add either 18f1320i.lkr (for debug) or 18f1320.lkr (no debug) to your project.

#pragma	config OSC = INTIO2, WDT = OFF, LVP = OFF, DEBUG = ON
#include <p18f1320.h>
#define LED(x,y)  LATA=x; TRISA=y; delay()


int count; // delay loop counter

void delay(void)
{
    for (count=64; count>0; count--) {} //decrement Count and skip when zero 
}
 
 void ledOn(int led_)
 {
     switch(led_)
     {
         case (1):
         {
              LATA = 0b00000001;
              TRISA = 0b10111110;
              break;
         }
         case (2):       
         {
             LATA = 0b01000000;
             TRISA = 0b10111110;
             break;
         }
          case (3):
         {
             LATA = 0b01000000;
             TRISA = 0b00111111;
             break;
         }
         case (4):
         {
             LATA = 0b10000000; 
             TRISA = 0b00111111;
             break;
         }
         case (5):
         {
             LATA = 0b10000000; 
             TRISA = 0b01111110;
             break;
         }
         case (6):
         {
             LATA = 0b00000001;
             TRISA = 0b01111110; 
             break;
         }      
     }        
 }
               
void main(void)
{
     int led; 
     ADCON1 = 0; // make RA0 digital
     while(1)    // loop forever
     {
        for (led=1; led<7; led++)
        {
            ledOn(led);
            delay();   // delay could be moved to ledOn()
        }   
        for (led=5; led>1; led--)
        {
            ledOn(led);
            delay();
        }   
 
    }
}

Last edited by 3v0; 30th November 2007 at 01:58 PM.
3v0 is offline  
Old 1st December 2007, 11:29 AM   (permalink)
Default

Quote:
Originally Posted by 3v0
I have a strip of Fairchild 2n7000D26Z's from Mouser.

I was looking at the little line that one often sees on top of the transistor. Some of these 2n7000's have the line on the right and others on the left. I was under the impression that this mark indicated E. Why is it not in the same place on each of the supposed to be identical transistors?

Crude ASCII , round side would be up.
Code:
  /-------\
 / __      \
/-----------\
  /-------\
 /      __ \
/-----------\
As a prospective assembler of the JUNEBUG, Thanks to Mr Bill, but i have few doubts.

- why not use BS170 or BS107 in place of 2N7000. These are also N-channel types .
- whether 18F2525 or 18F2550 come with bootloader builtin or we have to load it. If so , how?

- even with much effort, i could not locate latest firmware for pickit2 i.e., ver2.02 ,if I am right
i was able to get 2.01 only, from microchip site.
__________________
Regards,
Sarma.

Last edited by mvs sarma; 1st December 2007 at 12:24 PM.
mvs sarma is online now  
Old 1st December 2007, 12:55 PM   (permalink)
Default

Quote:
Originally Posted by mvs sarma
As a prospective assembler of the JUNEBUG, Thanks to Mr Bill, but i have few doubts.

- why not use BS170 or BS107 in place of 2N7000. These are also N-channel types .
I will leave this one to BIll.

- whether 18F2525 or 18F2550 come with bootloader builtin or we have to load it. If so , how?
It does not come built in. You are to program it using another programer.
Easy to do if you can get the use of another programmer.

- even with much effort, i could not locate latest firmware for pickit2 i.e., ver2.02 ,if I am right
i was able to get 2.01 only, from microchip site.
It is OK to use the 2.01. MPLAB will update it for you auto-magic like.
Keep lenght checker happy
3v0 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Junebug kit ready, (PICkit2 & tutor) blueroomelectronics Micro Controllers 37 28th October 2007 03:47 AM
Assembly? Marks256 Micro Controllers 43 28th July 2006 04:45 PM
Assembly compiler Thunderchild Micro Controllers 4 12th March 2006 02:25 PM
Learning Assembly Programming Language Johnson777717 Micro Controllers 4 22nd March 2004 03:00 PM
Assembly Language Question Jeggyman General Electronics Chat 6 30th January 2004 10:54 PM



All times are GMT. The time now is 05:39 PM.


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

eXTReMe Tracker