Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | Re: Re: Request for Help with hcs12 microcontroller!

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Re: Re: Request for Help with hcs12 microcontroller! - mukul tewary - Mar 19 15:14:19 2009

Hi Greg,

Thank you very much!

I do have a few questions though, (and it stems from me being a novice at programming).. Your mention of a query has me thinking.. do i absolutely need a query from the laptop? can I not just have information sent to the laptop every time there is a data string sent from the GPS? ..and also if a query is the only way (or the best way) to go, would i need to rewrite the lat/long coordinates on the second buffer every time information is sent from the GPS until the query is made? ..and would you have any codes to illustrate the programming procedure for creating a buffer and overwriting it until an event occurs??

Thanks a lot, I'm very sorry about so many questions..

best regards,
Mukul

--- On Thu, 3/19/09, Greg Broburg wrote:

From: Greg Broburg
Subject: [68HC12] Re: Request for Help with hcs12 microcontroller!
To: 6...@yahoogroups.com
Date: Thursday, March 19, 2009, 12:10 PM

Hello Mukul;

Because of the unknown relationship between the

filling from the GPS and the query from the laptop

you will need a double buffer. This second buffer

will be updated immediately after the GPS sends

its data and will supply the LAT /LON to the laptop.

Greg

mukul tewary wrote:

>

>

> Hi all,

> I just signed up for this group.. I needed to ask someone for some

> help.. I am working on a project, and a part of it requires me to take

> information that is being sent in from a GPS device and parse the

> string to extract the latitude and longitude coordinates and send it

> serially to a laptop connected via the second serial port.. The GPS

> device unfortunately can't be controlled to send information when I

> need it, it does it all the time.. But it is of a certain format, I

> think I should be able to extract the information once I have it

> stored in some location.. but I've been told (..and it makes complete

> sense) that I can't use the 'file' C-commands in the

> micro-controller. . so now i guess what needs to be done is for me to

> design a buffer for the incoming information and keep re-writing on it

> until I am ready to take the information from it, but I can't figure

> out the code for that to save my life! :/ haha..

> Can someone please give me a (even if its rudimentary) piece of code

> that can get me on my way? Also, If I have the logic that needs to be

> used all wrong, can someone please help me out with that too?

>

> Thank you all very very much! Sorry for the bother..

>

> I will truly appreciate any help, and tons of apologies for spamming

> everyone!

>

> warm regards,

> Mukul

>

>

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )