![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 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 |
|
|
|
|
|
|
(permalink) |
|
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.
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) Last edited by 3v0; 5th June 2008 at 12:08 PM. |
|
|
|
|
|
|
(permalink) |
|
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).
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
that might be the wrong LCD
|
|
|
|
|
|
|
(permalink) |
|
That is the normal character based LCD data sheet. What makes you think it isn't?
Mike. |
|
|
|
|
|
|
(permalink) |
|
I got confused a bit. I think I have a different LCD than that
|
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
OK. I have everything all figured out, and I really confused myself. I have the HD44780 LCD and how to interface with it. LOL.
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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)... ![]() Last edited by Mike, K8LH; 5th June 2008 at 01:52 PM. |
||
|
|
|
|
|
(permalink) |
|
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? |
|
|
|
|
|
|
(permalink) |
|
|
|
|
|
|
|
|
(permalink) |
|
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.
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) Last edited by 3v0; 5th June 2008 at 02:51 PM. Reason: Additonal Info |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |