Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 28, 2024, 09:58:30 09:58


Login with username, password and session length


Pages: [1]
Print
Author Topic: GPS to PIC to LCD  (Read 5480 times)
0 Members and 1 Guest are viewing this topic.
Alienbeing
Active Member
***
Offline Offline

Posts: 164

Thank You
-Given: 68
-Receive: 45


« on: November 06, 2007, 07:07:02 19:07 »

This is a project which was provided in EPE mag. 2004-01 called GPS to PIC to PC. I translated the .asm code to MPASM and compiled to Hex. The basis of this code is to grab NEMA sentences from GPS by RS232 and display portions of it on a 2x16 LCD module. I have created a proteus simulation and loaded 16F877 PIC with the code but it does nothing but generate errors about The LCD controller receiving data while busy. I can't figure out what the cause of this is. Maybe someone can offer some advice it would be greatly appreciated. I have included all the code .ASM, .HEX, and Proteus file. I don't have much experience in assembly. I do understand some of this code but not enough to figure out why it's not working correctly.

http://rapidshare.com/files/67889296/GPS_to_PIC.rar.html

Thanks,
Alienbeing
« Last Edit: November 06, 2007, 07:25:32 19:25 by Alienbeing » Logged
Alienbeing
Active Member
***
Offline Offline

Posts: 164

Thank You
-Given: 68
-Receive: 45


« Reply #1 on: November 07, 2007, 07:17:35 19:17 »

Well, I've been digging into this code more and see that it contains no routines to check the busy flag on the LCD. The programs hangs on trying to clear the LCD. I managed to remedy other errors in the code so now it compiles without errors, or warnings. I guess I will try to put in checking for the busy flag. I'm still not very good at assembly but it's getting easier to figure out what this code it doing or not doing. If I succeed in this I'll post an update to the source for others to use if they want to view NEMA sentences from a GPS to an LCD module using a PIC.

Alienbeing
Logged
user112
Junior Member
**
Offline Offline

Posts: 85

Thank You
-Given: 6
-Receive: 139


Salut tuturor(hello to all)


« Reply #2 on: November 07, 2007, 07:55:14 19:55 »

It is not need to verify busy flag if you wait enough time between send informations to LCD (put in the routines for transmiting data to LCD an temporization) .
In simulation you can rise (just for test) the frequency of the LCD from properties to remouve errors
Logged
Alienbeing
Active Member
***
Offline Offline

Posts: 164

Thank You
-Given: 68
-Receive: 45


« Reply #3 on: November 07, 2007, 10:58:21 22:58 »

Thanks, I was considering doing that too, but thought that once I build the circuit I would probably need to use the Check Busy Flag on the LCD before sending the code to the PIC.

Thanks again.
Alienbeing
Logged
user112
Junior Member
**
Offline Offline

Posts: 85

Thank You
-Given: 6
-Receive: 139


Salut tuturor(hello to all)


« Reply #4 on: November 08, 2007, 05:09:13 05:09 »

I made many programs in this way and works very good also in reality
Logged
Alienbeing
Active Member
***
Offline Offline

Posts: 164

Thank You
-Given: 68
-Receive: 45


« Reply #5 on: November 11, 2007, 03:57:11 03:57 »

Thanks, for the help. I finally got this to work in Proteus 7.1 SP1.  If anyone is interested
I can repost my working asm code and Proteus file. I did have a few asm bugs (corrected) but it working fine now.
Still have not programmed the code into the a Real Pic yet to test the circuit. That will be in about a week I
guess. I still need to alter some of assembly code to make some minor changes for the LCD display.

Alienbeing
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC