I bought GPS receiver VK16E and now i want to interface with At89c2051. This is the first time i am working with GPS and i have poor knowledge on micro C. But I have done several progarmming by using assembly.
So i will be very glad if somebody can guide me for following matters.
1. Can i interface VK16E dirrectly to the microcontroller? (Without RS232 logic level conversion)
2. How to make assembly code to display data on LCD?
Any link or information regarding ASM would be appreciated.
Attaching a file containing course material for interfacing of LCD display and related circuit with working assembly code to be used with 89S51/52
You can modify it for your MCU if needed.
I already interfaced LCD by 8 bit and 4 bit too. I just want to know the code fpr GPS data display on LCD. Basically i i just want to know how to interface GPS. Then i hope i can manage rest of things.
The array you are sending to LCD will be some information from GPS data such as GPGGA line that contain the location and time details.
If LCD is displaying the desired text, simply fetch GPGGA data, Pick the text you wish to display and and send this text to LCD.
With reference to the sample code in the earlier attachment, the data is taken from these two lines
Code:
MESSAGE1: DB ' B.Sc. Comp Sc. /' ;Change if needed
MESSAGE2: DB ' Azad College /' ;Change if needed
Code:
MOV DPTR,#MESSAGE1
CALL LCD_STRING ;Display message on LCD
These two lines are used, therefore the code in CALL LCD_STRING will also change accordingly.