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 9th July 2008, 01:39 AM   (permalink)
Default

i need buttons for various reasons i made that keypad because it only uses 1 pin on my uC so i save pins. Also if i order one i would have to wait
AtomSoft is offline  
Old 9th July 2008, 01:47 AM   (permalink)
Default

i just had a thought on how i can make it still 1 wire with those keypads but for now i still needed 1 for testing at least at this moment in time.
AtomSoft is offline  
Old 9th July 2008, 04:53 AM   (permalink)
Default

Got to get you a micro with more I/O
A 18F4620 is quite a beast.

I've noticed a plethora of users here doing some really great projects in the past few days. Nice keep it up.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 9th July 2008, 06:37 AM   (permalink)
Default

Plethora = a sufficiently large number

Had to look it up lol Thanks I actually have a 40 pin ( i think ) the PIC18F448 i will be using that. Just have to move the stuff around a bit like the wiring so i can fit it lol
AtomSoft is offline  
Old 9th July 2008, 04:02 PM   (permalink)
Default

Need Some help porting my code. I dont see the issue with it tho. No errors and no halting just doesnt show anything. The lcd works because i tried it back on the 18F1320 breadboard and even tried another lcd just in case.

Also i changed the delays for 20Mhz. I also changed the A/D stuff. If anyone can lend a hand plz...

The issue is i cant see anything on the LCD not even white bars. Here is my code. (for the PIC18F448)
Attached Files
File Type: asm main.asm (6.4 KB, 7 views)
AtomSoft is offline  
Old 9th July 2008, 06:19 PM   (permalink)
Default

Quote:
Originally Posted by AtomSoft View Post
Need Some help porting my code. I dont see the issue with it tho. No errors and no halting just doesnt show anything. The lcd works because i tried it back on the 18F1320 breadboard and even tried another lcd just in case.

Also i changed the delays for 20Mhz. I also changed the A/D stuff. If anyone can lend a hand plz...

The issue is i cant see anything on the LCD not even white bars. Here is my code. (for the PIC18F448)
hi atom,
Is this what you are expecting from the asm.?

Changed part of the LCD init code, also the inverted the LCD Enable.

Had to drop the leftshift before the LCD writes in order to run with the Oshonsoft Sim.

EDIT:

Added main2.asm all changes marked with ++++ , just search, about 10 lines changed.
The delays should be a little longer as you are not using RW DB8 Busy.
Attached Images
File Type: gif esp04 Jul. 09.gif (8.9 KB, 11 views)
File Type: gif esp03 Jul. 09.gif (9.3 KB, 11 views)
Attached Files
File Type: asm main2.asm (6.4 KB, 2 views)
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 9th July 2008 at 06:30 PM.
ericgibbs is online now  
Old 9th July 2008, 07:18 PM   (permalink)
Default

you are going to laugh lol
that code first doesnt work for me. The code i asked for help in works lol

I wired it wrong meaning i wired db4-7 to rb4-7 instead of ra1-4 lol
AtomSoft is offline  
Old 9th July 2008, 07:24 PM   (permalink)
Default

Quote:
Originally Posted by AtomSoft View Post
you are going to laugh lol
that code first doesnt work for me. The code i asked for help in works lol

I wired it wrong meaning i wired db4-7 to rb4-7 instead of ra1-4 lol
hi atom,
For that code main2.asm I posted, I had to modify the code, so with your original wiring
[even after you have rewired it] it wouldnt work.

You would have to move the A4 thru A1 down to A3 thru A0.

I did that to show you that your code does work...
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 9th July 2008 at 07:25 PM.
ericgibbs is online now  
Old 9th July 2008, 08:14 PM   (permalink)
Default

Keypad working here is the code : Attached
Attached Files
File Type: asm main.asm (6.4 KB, 4 views)
AtomSoft is offline  
Old 9th July 2008, 08:15 PM   (permalink)
Default

oh cool ! i knew i misunderstood your post lol
AtomSoft is offline  
Old 9th July 2008, 08:40 PM   (permalink)
Default

Here are some pics:



AtomSoft is offline  
Old 9th July 2008, 09:14 PM   (permalink)
Default

while on the issue of LCDs how can i draw on this? Like how Bill did that little house

Last edited by AtomSoft; 9th July 2008 at 09:14 PM.
AtomSoft is offline  
Old 9th July 2008, 09:36 PM   (permalink)
Default

if i try this: Defining Custom Characters

You think it would work?
AtomSoft is offline  
Old 10th July 2008, 12:49 AM   (permalink)
Default

Here is a schematic:

AtomSoft is offline  
Old 10th July 2008, 01:48 AM   (permalink)
Default

Quote:
Originally Posted by AtomSoft View Post
Have a look at Myke Predko's site too. A bit more than halfway down the page.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Wireless security.. mytech Electronic Projects Design/Ideas/Reviews 6 16th March 2008 11:28 PM
time security & door security system slurpee Electronic Projects Design/Ideas/Reviews 0 12th February 2007 03:01 PM
security alarm 9volt Electronic Projects Design/Ideas/Reviews 7 24th November 2006 06:58 PM
PIc security Pao Micro Controllers 4 30th April 2006 02:43 PM
Car security philipsi General Electronics Chat 18 5th September 2004 01:37 PM



All times are GMT. The time now is 09:23 AM.


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

eXTReMe Tracker