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 17th November 2007, 03:08 AM   (permalink)
Default

Quote:
I am using U2 (6 pin DIP as a Switch because of its template
Shouldn't the 3 switches in U2 be wired to 3 separate IO pins?
8 pin DIP switches (4 switches) are more common also.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline   Reply With Quote
Old 17th November 2007, 03:10 AM   (permalink)
Default

Nope, I want them to be bussed together, just because I said, so ok?

Oh wait, you got a problem with that buddy? Come on bring it on! Lets go!

I found that 3 DIP Switches are cheaper than a 4 dip switch. It will still look good.
Krumlink is offline   Reply With Quote
Old 17th November 2007, 03:30 AM   (permalink)
Default

If you want bussed switches then a DP3T switch will do, more expensive than a dip though but nice for switching the MCLR stuff / project stuff. Cheaper yet would be a far more common DPDT switch on just RB6, RB7. Avoid using MLCR for anything but a reset / ICD connection, if you're desperate for that extra I/O line then use a larger PIC.

PS I've updated the Junebug Assembly Instructions on my site, some troubleshooting tips and corrected schematic & BOM plus the blinky LED program.

Keep working with your programming Krumlink, you'll get the hang of it soon enough and then you can transplant a computerized brain into one of your robots.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 17th November 2007, 03:38 AM   (permalink)
Default

I am using the mclr pin as a reset, by shorting it to ground. It should be here by next week. Bill if you want these boards for something, PM me and we can set up a deal

I will let you know how this one works.
Krumlink is offline   Reply With Quote
Old 17th November 2007, 04:13 AM   (permalink)
Default

Well I was working on a side project that has a small breadboard, a 40pin PIC (a few choices), 20MHz crystal (deselectable), USB optional, keypad / LCD using up ports D & E
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 17th November 2007, 04:18 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
PS I've updated the Junebug Assembly Instructions on my site, some troubleshooting tips and corrected schematic & BOM plus the blinky LED program.
Hey Bill. I had to laugh when I looked at the new pdf title on the first page. There is no such word as "labratory"!

The word you're looking for is "laboratory".
http://dictionary.reference.com/browse/laboratory

You spelled it right just below the first picture, in the Introduction.
futz is online now   Reply With Quote
Old 17th November 2007, 04:32 AM   (permalink)
Default

Opps LOL. I'm still scratching my head on the introduction...

Looking at Krumlinks code makes me want to learn C18. Can you combine #pragma statements?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 17th November 2007 at 04:38 AM.
blueroomelectronics is offline   Reply With Quote
Old 17th November 2007, 04:46 AM   (permalink)
Default

Quote:
Originally Posted by Krumlink
Nope, I want them to be bussed together, just because I said, so ok?Oh wait, you got a problem with that buddy? Come on bring it on! Lets go!
I'd just hate to see the little switches lost without a trace. All bussed together like that. Without individual freedom. It's... It's just so ..... UnAmerican.... Your ARE American right?

Quote:
Looking at Krumlinks code makes me want to learn C18. Can you combine #pragma statements?
Yes, I've also been "inspired by Krumlink" and yes, you can combine them in a way:
#pragma config WDT = OFF, OSC = INTIO67, LVP = OFF
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline   Reply With Quote
Old 17th November 2007, 04:50 AM   (permalink)
Default

Quote:
Originally Posted by kchriste
I'd just hate to see the little switches lost without a trace. All bussed together like that. Without individual freedom. It's... It's just so ..... UnAmerican.... Your ARE American right?


Yes, I've also been "inspired by Krumlink" and yes, you can combine them in a way:
#pragma config WDT = OFF, OSC = INTIO67, LVP = OFF
My Junebug is a dictatorship, so it has no freedom!
Krumlink is offline   Reply With Quote
Old 17th November 2007, 05:06 AM   (permalink)
Default

I just noticed you're using a three position switch for reset. IMHO just don't add one, the Junebug / Inchworm can both control MCLR. And for standalone; the PIC will reset on powerup.
If you're worried about lockup then learn about the WDT.

Edit here's a simple single sided PCB layout, try to avoid right-angles on traces if you can and lay it out on a grid. This grid is 0.5"
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 17th November 2007 at 05:29 AM.
blueroomelectronics is offline   Reply With Quote
Old 17th November 2007, 06:28 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
Well I was working on a side project that has a small breadboard, a 40pin PIC (a few choices), 20MHz crystal (deselectable), USB optional, keypad / LCD using up ports D & E
What type of LCD? 4 or 8 pin interface? What type of keypad? If it would help I could show you how I use 12 pins for a 44780 type LCD using the 4 pin interface mode, PWM contrast control, 16 key keypad, and piezo speaker for switch press beep.

Mike
Mike, K8LH is offline   Reply With Quote
Old 17th November 2007, 01:42 PM   (permalink)
Default

It was 4 bit, the trick was to only use port D & E (11bits) for both a 4x4 keypad & an LCD. 7 for the LCD + 4 for the keypad (using 4bits from the LCD too)
Of course I'd like to see your design Mike, that's a lot of stuff for only 12pins.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 17th November 2007, 02:06 PM   (permalink)
Default

Bill,

Forgive me. I thought you were using up 16 pins but if you're doin' all that with 11 pins then there's no new tricks I can share -- you're already a 'Master'... I'll attach the diagram anyway for anyone who'd care to take a look.

Regards, Mike
Attached Images
File Type: png K8LH LCD-18 v1.PNG (50.5 KB, 56 views)
Mike, K8LH is offline   Reply With Quote
Old 17th November 2007, 03:12 PM   (permalink)
Default

The RS pin as an input is pretty neat and you Mike are the master of streching I/O.

I did have the LCD RW pin supported, I could put a jumper for a buzzer there...

Edit: would a 4x4 keypad or a 3x4 with 4 LEDs be more interesting?

Edit2: The Junebug / PK2 have a very handy UART mode... So goodbye serial port, it will have a USB connector.

Something along these lines.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 17th November 2007 at 03:21 PM.
blueroomelectronics is offline   Reply With Quote
Old 19th November 2007, 01:19 AM   (permalink)
3v0
Default Updated JuneBug Parts List

I have given up on Octoparts for making a parts list. You can find the current list in spread sheet form at http://spreadsheets.google.com/pub?k...iD6BR8Q3aL5jVQ Parts numbers are shown for Digikey, Mouser, Newark, and a few from Jameco. We could expand that if anyone has about 50% or more of the numbers for another vendor. I understand that what I have is mostly US based suppliers. You can help change that if you are up to it. Still looking for numbers for FB1, VR1, and VR2.
3v0 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


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



All times are GMT. The time now is 11:57 AM.


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