![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| | |
| |
| | (permalink) |
| 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:When the system powers down by itself (sleep?) it forgets about the JuneBug USB connection. Unplug/replug of the USB cable fixes it. | |
| |
| | (permalink) | |
| Quote:
Mike. | ||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
Last edited by eng1; 23rd November 2007 at 05:29 PM. | ||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| Good catch eng1. | |
| |
| | (permalink) |
| 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: /-------\ / __ \ /-----------\ /-------\ / __ \ /-----------\ | |
| |
| | (permalink) |
| 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. --- | |
| |
| | (permalink) |
| 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) | |
| |
| | (permalink) |
| 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 );
}
} 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. | |
| |
| | (permalink) | |
| Quote:
- 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. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |