Part Number Weblink for the part Description Unit Price. Hardware interfacing to the Freescale 9S12C32 MCU on board the CSM-12C32 module

Similar documents
Reference Designs for Embedded Controls

GPS Firmware A1080 A description of the standard NMEA GPS firmware provided on Tyco Electronics GPS module A1080 User s Manual Version 3.

GPS Firmware GSC3-based Products

GPS-41MLR GPS-41MLF. GPS Receiver Module GPS-41ML. Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Module FEATURES. Ordering Information

GPS-41EBR GPS-41EBF. GPS Receiver Module GPS-41EB. Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Module FEATURES. Ordering Information

GPS Receiver. UT-41R (DB9 and PS2 cable) Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Receiver. Features

NMEA-0183 Output Message

Key Modules For Your Success. ANTARIS 4 SuperSense. GPS Module. User s Manual Ver 展得國際有限公司

SKYTRAQ. GPS Module MG-ST1315S. UUser s Manual Ver 1.01

GPS-41SMDR GPS-41SMDF. Embedded GPS Module GPS-41SMD. Fast-Acquisition Enhanced-Sensitivity 16-Channel SMD GPS Receiver Module FEATURES

32-channel GPS Engine Board SmartAntenna

EM-406 GPS RECEIVER ENGINE BOARD PRODUCT GUIDE

Datasheet of stand-alone GPS smart antenna module, LS20037

66-Channel GPS Module GP-3711

EM-401. GPS ENGINE BOARD with Active Antenna PRODUCT GUIDE. Globalsat Technology Corporation (Taiwan)

GMS6-CR6(SIRF-IV) Fast Acquisition Enhanced Sensitivity 48 Channel GPS Sensor Module

GT-720F (Flash version) Fast Acquisition Enhanced Sensitivity 65 Channel GPS Sensor Module

GPS SMART ANTENNA (GWG4287SX)

SkyNav GM10 GPS Receiver Module

PB100 WeatherStation Technical Manual

C3-470B Jnavi SPECSHEET

Key Modules For Your Success SKYTRAQ. GPS Module MG-ST1315. UUser s Manual Ver 展得國際有限公司

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

GPS Engine Board FGPMMOSL3

GT-321R-RS232 Fast Acquisition Enhanced Sensitivity 65 Channels GPS Sensor Receiver

GGA-Global Positioning System Fixed Data

GPS / GNSS Receiver (G-Mouse) GT-901 is a compact, high performance, and low power consumption G-Mouse.

GM-270. CF GPS Receiver. User s Guide

GPS Receiver. User s Guide. Dec Rev. A

FGPMMOPA6B. [Fully pin compatible with FGPMMOPA6]

GU93030S Series. GPS/GNSS Receiver (G-Mouse) Product Description: GU93030S(M) is a compact, high performance, and low power consumption G-Mouse.

GPS Module DataSheet

LOCOSYS Technology Inc.

GPS Module AGP3363. Product Datasheet & Design Guide <V1.0>

GPS/GNSS Antenna Module. YIC51513PGM-37 is a compact, high performance, and low power consumption GPS/GNSS Antenna Module.

GPS/GNSS Receiver Module

GPS & BDS Antenna Module

SkyNav SKG25B Ultra High Sensitivity and Low Power GPS Receiver Module

GPS-001 GPS Module Manual

GAM-2107-MTR GPS Antenna Module. General Description. The Gotop GAM-2107-MTR is a complete. GPS engine module that features super sensitivity,

GPS Engine Board USB Interface

YIC9 Series. GPS & BDS Receiver Module. 1. Product Information 1.1 Product Name: YIC91612EBFGB-U Product Description: Product Features:

66-channel GPS Engine Board SmartAntenna FGPMMOPA6

SKM53 GPS Module. Datasheet

GPS & GLONASS Receiver Module

SUP500F8. Low-Power High-Performance Low-Cost 167 Channel GPS Smart Antenna Module. Features. Applications

LOCOSYS Technology Inc.

GOTOP. The GOTOP GAM-2222-MTR is a complete GPS engine module that features super

Users guide ECS 1/2/3 COMPASS / GPS Sensor

thinkstar GPS Module Document Revision: v1.0 Document Release: July 25, 2010

MiniGMouse-PS2. User Manual. Document : Datasheet Model # : GPS Date : 01-Jan -10

Datasheet of GPS smart antenna module, LS20030~3-2R

GAM-2222-MTR GPS Antenna Module

Data Sheet / GE-A103

GPS Module DataSheet

GPS93030S Series. GPS/GNSS Receiver (G-Mouse) Product Description: GPS93030S(M) is a compact, high performance, and low power consumption G-Mouse.

GPS Module DataSheet

GNSS Receiver BN-80D Datasheet BN-80D. Revision: Date:

GPS & GLONASS Antenna Module

GPS Module Datasheet

C3-470C Jnavi SPECSHEET

Specifying GPS Disciplined Oscillators

GPS Receiver Engine Board

SkyNav GM25 Ultra High Sensitivity and Low Power GPS Receiver Module

GPS & GLONASS Antenna Module

based) Data Sheet High-Performance ost 65 Channel GPS Engine Board (Flash GPS-622F GPS SMART RECEIVER WITH ANTENNA

based) Data Sheet Version 1.0 High-Performance ost 65 Channel GPS Engine Board (ROM GPS-622R GPS SMART RECEIVER WITH ANTENNA

GT-1108-MT GPS Receiver Module. General Description. Features. Applications

Data Sheet Version 1.3

Bluetooth GPS Navigator

GPS Module DataSheet

UniTraQ OEM Module. GT-310F (Flash version) Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Module. Features

LOCOSYS Technology Inc.

GPS Module DataSheet

Glonass/GPS Module Datasheet

ET-662 Ve rsion Product Information. Product Name: ET-662 Product Description:

Data Sheet / GE-A12. SiRFstarV. Tiny, SMT-Mountable, Ultra-High Performance, GNSS Engine Board. Version 1.1

BRB900 GPS Telemetry System August 2013 Version 0.06

YIC5 Series. GPS/GNSS Receiver Module. 1. Product Information 1.1 Product Name: YIC51612EB Product Description YUECHUNG INTERNATIONAL CORP.

LOCOSYS Technology Inc.

YIC5 Series. GPS & BDS Receiver Module. 1. Product Information. 1.1 Product Name: YIC51612EBGB Product Description

GPS+ GLONASS Engine Board

2009 i-lotus - All Rights Reserved

Beidou/GPS Module Datasheet

GPS Module GYSFDMAXB. Application Note

S1216R. Low-Power High-Performance Low-Cost 65 Channel SMD GPS Module. Features. Applications

DEVICE CONFIGURATION INSTRUCTIONS. WinFrog Device Group:

YIC5 Series. GPS/GNSS Receiver Module. 1. Product Information 1.1 Product Name: YIC51613EB. 1.2 Product Description YUECHUNG INTERNATIONAL CORP.

JRC/CRT GPS Module. Hardware Specification

Datasheet of GNSS smart antenna module, LS2003G-B2

FGPMMOPA6B Datasheet FGPMMOPA6B. [Fully pin compatible with FGPMMOPA6]

GP-2117 GPS&GLONASS Antenna Module

Asynchronous Serial Communications The MC9S12 Serial Communications Interface (SCI) Asynchronous Data Transfer

Quick Start. Tersus GNSS Center. Configuration Tools for Tersus GNSS RTK Systems.

Modules On The Go Series

YIC5 Series. GPS & BDS Receiver Module. 1. Product Information. 1.1 Product Name: YIC52217EBGB Product Description

GPS Modules ME-1000RW. Technical Data Sheet Version channels with ultra-high sensitive Smart GPS Antenna module

ASA-3020-UB GPS Antenna Module

FGPMMOPA6B. [Fully pin compatible with FGPMMOPA6]

GPS Module Datasheet

Transcription:

Global Positioning System Modules This section shows how to connect a GPS module to the CSM-12C32 module and provide several C functions for capturing the latitude, longitude, and UTC time information. There is other information such as the number of satellites that can be captured in the same way but is not covered in this section. An easy-to-use GPS module is Vincotech 340-V23993- EVA1080A51GPS module, which consists of one GPS module and one GPS antenna on a coaxial cable. The on-board firmware supports bi-directional serial interface by using a full duplex UART (Universal Asynchronous Receiver Transmitter) interface of the GPS processor. The default configuration of this serial port is: 4800 baud, 8 data bits, no parity, 1 stop bit, no flow control. A level shifter is needed for passing the data to a PC through a serial COM port. Pictures, ordering information and web link for the module are shown below. Vendor Part Number Weblink for the part Description Unit Price Mouser Electronic s 340- V23993- EVA1080- A EVA1080-A Evaluation kit for Vincotech A1080-A GPS module $130.00 Hardware interfacing to the Freescale 9S12C32 MCU on board the CSM-12C32 module If the CSM-12C32 module is powered at 5 V, the wiring diagram is shown below. If the CSM- 12C32 module is powered at 3.3 V, the voltage divider can be removed and the TXD of the microcontroller goes straight to the RX0 of the GPS module terminal block.

Software development The GPS module supports the NMEA inter-face. The description of the outputs coming from this interface and a summary of the commands that can be issued to this interface are discussed below. This will allow a programmer to fully control of the module. The outputs coming from the interface are in the form of NMEA sentences, which are in the NMEA 0183 Standard. These sentences were developed by the National Marine Electronics Association for digital data exchange among marine electronic products back in the early nineteen-eighties. Each sentence transmitted by a marine electronic product is in the form of $<vendor><message><parameters>*<checksum><cr><lf> The maximum length of a sentence is 80 characters. The combination of <vendor><message> is called address field. The vendor code for the Global Positioning System is GP. The Vincotech s GPS firmware for the GPS module supports six NMEA sentences. Each sentence can be individually turned off or on. $GPGGA (default: ON) $GPVTG (default: OFF) $GPRMC (default: ON) $GPGSA (default: ON) $GPGSV (default: ON, 0.2Hz) $GPGLL (default: OFF)

Commands can be sent to the GPS module to turn an NMEA sentence on or off. The two tables below contain the inputs. For example, to disable the GGA message, the command is $PSRF103,00,00,00,01*21 To enable the GGA message for a 1 Hz constant output with checksum enabled, the command is $PSRF103,00,00,01,01*20 A C function for initializing the SCI of the 9S12C32 for communicating with the GPS module is shown below. void init_sci(void){ SCIBDH=0x00; // BR = Bus Clock/(16 * Baud Rate) SCIBDL=104; // Baud Rate set to 4800 SCICR1=0x04; //normal 8 bit mode, no parity SCICR2=0x0C; //enable tx and rx, disable interrupts To capture the latitude, longitude and UTC time from the GPS module, can use the GPGGA sentence and the format of which is shown in the next table.

GPGGA - Global Positioning System Fix Data Sentence Format: e.g. $GPGGA,152145.000,4805.8193,N,01132.2317,E,1,04,2.5,607.5,M,47.6,M,,*67 (1) $GPGGA Vendor and message identifier (2) 152145.000 Universal time coordinated (15h 21m 45.000s) (3) 4805.8193 Latitude (48deg 05.8193min) (4) N N North S South (5) 01132.2317 Longitude (011deg 32.2317min) (6) E E East W West (7) 1 Fix quality: 0 fix not valid or invalid, 1 GPS SPS mode, fix valid, 2 Differential GPS, SPS mode, fix valid (8) 04 Four satellites in use (min 00, max 12) (9) 2.5 Horizontal dilution of precision (10) 607.5 MSL altitude (11) M Unit of antenna altitude: meters (12) 47.6 Geoidal separation (13) M Unit of geoidal separation: meters (14) <empty> Age of differential GPS data, null field when DGPS is not used (15) <empty> Differential reference station ID, null field when DGPS is not used (16) *67 Checksum A C function for capturing the latitude, longitude and UTC time from the GPS module is shown below. Every time this function is called, it will start the measurement and capture the information in global strings. The UTC time is stored in the global string UTC. The latitude is stored in the global string Latitude. The latitude direction (N or S) is stored in the global character Lat_direction. The longitude is stored in the global string Longitude. The longtitude direction (E or W) is stored in the global character Long_direction. void GPS_data(void){ int i; char GPGGA[80] = {0; char GPGGA_Off[25] = {"$PSRF103,00,00,00,01*24"; /*turn off GGA sentence*/ char GPRMC_Off[25] = {"$PSRF103,04,00,00,01*20"; /*turn off RMC */ char GPGSA_Off[25] = {"$PSRF103,02,00,00,01*26"; /*turn off GSA */ char GPSV_Off[25] = {"$PSRF103,03,00,00,01*27"; /*turn off GSV */ char GPGGA_On[25] = {"$PSRF103,00,00,01,01*25"; /*turn on GGA */ char end_sentence[3] = {0x0D,0x0A, 0x00; /*end of sentence <CR> <LF><NULL>*/ putstring(gpgga_off); // turn off GGA sentence putstring(gprmc_off); //turn off RMC sentence

putstring(gpgsa_off); //turn off GSA sentence putstring(gpgsv_off); //turn off GSV sentence putstring(gpgga_on); // turn on GGA sentence getstring(gpgga,80); /*saves GPGGA statement*/ for (i=7; i<=16; i++) UTC[i-7]=GPGGA[i]; for (i=18; i<=26; i++) Latitude[i-18]=GPGGA[i]; Lat_direction=GPGGA[28]; for (i=30; i<=39; i++) Longitude[i-30]=GPGGA[i]; Long_direction=GPGGA[41]; char getchar(void) { while (!(SCISR1 & 0x20)); return SCIDRL; void getstring(char *stringptr, int string_length){ int i=0; stringptr[0]=getchar(); while((stringptr[i]!= 0x0D) && (i < string_length)){ i++; stringptr[i]=getchar(); void putchar(char a){ while(!(scisr1 & 0x80)); SCIDRL = a; void putstring(char *stringptr){ while((*stringptr!= 0x00)) putchar(*stringptr++);