Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

adding 5hrs 30 sec to the time which i get in $gprmc string( nmea data) in pic 24fmi

Status
Not open for further replies.

dews

Newbie level 2
Newbie level 2
Joined
Feb 27, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
bangalore
Activity points
1,291
adding 5hrs 30 sec to the time which i get in $gprmc string( nmea data) in pic 24f

$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A

i am receiving this data into a buffer.
now i need to add 5 hrs 30 min to the time which according to this string is 12hrs 35min 19sec
in my buffer
txbuff[8]+=5;

it shows 17hrs
but when the time is for ex:08hrs 30 min 35 sec
txbuff[8]+=5;

gives me 0=hrs because it displays ascii .
even if i subtract 0x30 im not able to get proper data.
please give me some idea .
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top