Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:28 26 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : LCD for DM,MM

Author Message
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1344
Posted: 12:48am 04 Sep 2012
Copy link to clipboard 
Print this post

G'day Guy's,
Well after fall on sunday night after a few ales while walking down the hill I ended up with 7 stitch's in my leg so pretty immobile for a week or so.

Anyway it has been ages since I had a play with my DM and MM boards so today I decided to get them out and try and get my 20x4 lcd working. I got the lcd from Microzed years ago and the sheet that came with it said the lower 4 bits are used in 4 bit mode. Toady I found the LCD Datasheet for it and nowhere does it say anything about 4 bit mode.

I did a bit of research on this forum and the work done by James and Ray has taught me a heap about the subject so by going off that said Microzed sheet I went ahead and made a circuitboard to suit the arduino connector on my DM mega. I also have the shield board so I can test it also on my SM1 MM board. I used the lower 4 bits and Jame's library files and no way can I get rid of the box's on line 1 and 3. Now as per the DM instructions I used the pins 13-18 with 10K pullups for the datalines. Now from back in my ASM days all I had to do was invert the bits but now I reckon I'll have to have a go using the upper 4 bits with the hope I can get this lcd working.

Edit: on reading the controller DS I have found it is the upper 4 bits and each line starts at 1. 80h, 2. C0h, 3. 94h, 4. D4h so with a bit of tweaking hopefully i can get this lcd working so I can then start on the MOD-GPS.

Cheers BryanEdited by Bryan1 2012-09-05
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 01:36am 04 Sep 2012
Copy link to clipboard 
Print this post


Don't forget the delays, start with long ones when you are testing.
Edited by TZAdvantage 2012-09-05
Microblocks. Build with logic.
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 1344
Posted: 12:43pm 05 Sep 2012
Copy link to clipboard 
Print this post

G'day guy's,
Well tried for a while on both the DM mega and the SM1 board with both the 20x4 and a brandnew 16x2 LCD and still no luck. I even tried Geoff's code on the SM1 with the 16x2 and still no go. So today I'm going to setup the 20x4 on a 8 bit pic (16f887) and get the lcd working. I wote some code in Oshonsoft basic last night and it does sim ok so today I'll breadboard the circuit and go from there.

Cheers Bryan
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024