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 5th June 2008, 11:05 AM   (permalink)
Smile Important features to have on 18F4620 Board?

Well right now as far as electronics goes, I have been working on a little 18F4620 control board, and I have figured out what ports will do what:

PORTA Motor Control, LED output for Motor controls
PORTB Sensor Interaction/LED indicators
PORTC Sensor Interface?
PORTD Dunno?
PORTE Use E0,E1 E2 (E3 is reset, want to have that seprate) as LED indicators

Problem is, that I have a lot of pins and ports to work with (take that Basic s*** 2)

So I was wondering what should I do with Port C and Port D? I was thinking of using them and bringing the pins to a LCD board (I understand the basics of LCD's now ) and I am thinking that would be a good idea.

I have each port brought out to 2x5 headers (awesome idea by 3v0 on his boards) and I could easily change the function if needed. I have a HD74480 LCD so I can easily communicate with it, and I have already programmed a LCD with my uPICFAT to display "WHAT CHU TALKIN BOUT WILLIS" on it. I have also just started with INPUT commands too, and by taking data from an input and displaying it on the LCD (button input).

So what should I do with entire PORTC and PORTD?

www.crosstheroadelectronics.com for the uPICFAT (I got mine for free, the guy who sells them is a mentor on team 217 Thunderchickens who is visiting my HS today )
Krumlink is offline   Reply With Quote
Old 5th June 2008, 12:06 PM   (permalink)
3v0
Default

The 2x5 port connector goes back a long way. They may have existed on the targets I used back in the mid 70's.

I think you are on the right track already. I would not try to use up the ports. Keep them available via the 2x5's so you can add functionality as you need it.

EDIT: On could argue that you do not need such a large chip. Given that you do not know what your final robot will look like I like the idea of the extra ports.

Last edited by 3v0; 5th June 2008 at 12:08 PM.
3v0 is offline   Reply With Quote
Old 5th June 2008, 01:00 PM   (permalink)
Default

I was going to have Ports ABCD on 2x5 headers, and have E0,E1 E2 and E3 (E3 is reset) as dedicated LED's and E3 as a reset. I will then have seperate boards that go from the port I need (say, a PORT D LCD board).
Krumlink is offline   Reply With Quote
Old 5th June 2008, 01:02 PM   (permalink)
Default

I would definitely fit an LCD as it makes debugging so much easier. Breakpoints and single stepping are great until you get time critical stuff. For the rest of the ports, I agree with 3v0, keep them free until you need them.

What language are you using?

Mike.
Pommie is offline   Reply With Quote
Old 5th June 2008, 01:17 PM   (permalink)
Default

C programming language. I am looking for the Hitatchi 74480 pinout.

got it (awesome page for it) http://www.myke.com/lcd.htm

Last edited by Krumlink; 5th June 2008 at 01:21 PM.
Krumlink is offline   Reply With Quote
Old 5th June 2008, 01:25 PM   (permalink)
Default

that might be the wrong LCD
Krumlink is offline   Reply With Quote
Old 5th June 2008, 01:35 PM   (permalink)
Default

That is the normal character based LCD data sheet. What makes you think it isn't?

Mike.
Pommie is offline   Reply With Quote
Old 5th June 2008, 01:38 PM   (permalink)
Default

I got confused a bit. I think I have a different LCD than that
Krumlink is offline   Reply With Quote
Old 5th June 2008, 01:41 PM   (permalink)
Default

There are LCD that have different connectors. Does yours have the 7*2 connector on the left hand side?

Like this,


Mike.

Last edited by Pommie; 5th June 2008 at 01:48 PM. Reason: added image
Pommie is offline   Reply With Quote
Old 5th June 2008, 01:44 PM   (permalink)
Default

OK. I have everything all figured out, and I really confused myself. I have the HD44780 LCD and how to interface with it. LOL.
Krumlink is offline   Reply With Quote
Old 5th June 2008, 01:48 PM   (permalink)
Default

Mine has the 16x1 header. It is a 16x2 LCD, and the uPICFAT does not utilize all 8 data lines, but I will have to use 2 ports to use the LCD (read write) if I wanted to use all 8.

EDIT: I have decided to utilitize all 8 data lines, taking up an entire port. I also have the option to change what module to use on it too. I then need a Read/write control, and a instruction/register select line.

Last edited by Krumlink; 5th June 2008 at 01:55 PM.
Krumlink is offline   Reply With Quote
Old 5th June 2008, 01:49 PM   (permalink)
Default

Quote:
Originally Posted by Pommie View Post
I would definitely fit an LCD as it makes debugging so much easier. Breakpoints and single stepping are great until you get time critical stuff. For the rest of the ports, I agree with 3v0, keep them free until you need them.

What language are you using?

Mike.
But that pretty much requires dedicating pins on the PCB layout that might be needed for some other project.

I'm beginning to think that using a dedicated PIC as an LCD interface which supports SPI, I2C, or Serial connection to a host device might not be a bad idea. Then all you need is 1, 2, or 3 wires from any project board to connect to the LCD (and keypad perhaps?) when you need it.

Mike

<added>

The first general purpose PIC proto' board I designed (2003) had a 28 pin footprint within a 40 pin footprint which allowed me to use either type of chip on the same board. I wish I had had the foresight to install 10 pin dual row connectors for each port (great idea)...

Attached Images
File Type: jpg Proto 28-40 board.jpg (51.1 KB, 31 views)

Last edited by Mike, K8LH; 5th June 2008 at 01:52 PM.
Mike, K8LH is offline   Reply With Quote
Old 5th June 2008, 02:02 PM   (permalink)
Default

I am making this on a radioshack perf board, because I wanted to be able to make this somewhat quickly. In the future I can make a PCB if this design works well.

I have come up with a sweet acronym as usual

ViPER
Versatile Programmable Experimental Robot

awesome eh?
Krumlink is offline   Reply With Quote
Old 5th June 2008, 02:11 PM   (permalink)
Default

Quote:
Originally Posted by Krumlink View Post
I have come up with a sweet acronym as usual

ViPER
Versatile Programmable Experimental Robot

awesome eh?
Awesome indeed unless it starts to hiss.

Looking forward to seeing pictures.

Mike.
Pommie is offline   Reply With Quote
Old 5th June 2008, 02:48 PM   (permalink)
3v0
Default

I made a few LCD adaptor boards. It allows you to connect a 1x14/16 LCD to a standard 2x5 port in the 4 bit mode. No need to dedicate pins to the LCD if it is only used during debug.



It is single sided. The red line above R1 is a jumper.
I can post pdf's of the foil or the eagle files if anyone wants them. Not a difficult board to layout.

EDIT: R2_OPT and R3_OPT can be used in place of the 5K pot.
Attached Images
File Type: png lcd2x5.png (10.2 KB, 34 views)
File Type: png lcd2x5sch.png (6.2 KB, 33 views)

Last edited by 3v0; 5th June 2008 at 02:51 PM. Reason: Additonal Info
3v0 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
18F4620 Hlaf Bridge HPWM kalaman Micro Controllers 0 30th October 2007 01:24 PM
Please suggest a microController with these features. pkshima Micro Controllers 12 9th May 2005 12:06 PM
18F452 to 18F4620 Oznog Micro Controllers 0 8th March 2005 01:18 AM
Unused features? MrMikey83 Micro Controllers 1 24th February 2005 06:11 PM
new revisions----new features please!!!! urzalight Electronic Projects Design/Ideas/Reviews 3 23rd January 2005 04:54 PM



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


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