GPS Project: PIC18F26K22 or PIC18F46K22


Results 1 to 40 of 69

Threaded View

  1. #36
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: GPS Project: PIC18F26K22 or PIC18F46K22

    What i did, is to have all ports low, until the LCD is powered up. Then i set one of the PIC's port to high to enable the GPS's regulator.

    That's all and it works up to now fine. Should i leave the PIC's pin to high? Or should i add a transistor and use it as a switch to control the EN pin of the regulator? So setting the PIC's pin to high, close the transistor EC to GND, and the EN pin is set to 0. Then release the PIC pin to LOW, and the same time open the EC from the transistor, and enable the GPS.

    But with this method i will have one more component in my final circuit and couple of resistors at B and E.

    EDITED:....................

    I did make the portb.2 as an input after i powered up the GPS. It seems that works the same.

    Code:
    '------------------------------------------------------------------------------|
    '                      [ GPS HOLD ON RESET for a bit ]                         |
    '------------------------------------------------------------------------------|
    high portb.2     ' we set high the ENABLE pin at GPS                           |
    ' -----------------------------------------------------------------------------|  
    '                          [ GPS Initialization ]                              |
    '------------------------------------------------------------------------------| 
    ' When the GPS Module is POWERED ON, then the following sentenses are received.       
    HSERIN2 [wait("PMTK011,MTKGPS*08")]
    HSERIN2 [wait("PMTK010,001*2E")] 
    HSERIN2 [wait("PMTK010,002*2D")]
    
    HSEROUT [$73,$01,$03,$00,$ff,$ff,"GPS is ENABLED",$00] 
    Hserin  [wait(6)]
    pause 1500    
    HSEROUT [$45]    ' clear the LCD
    Hserin  [wait(6)]  
    
    '------------------------------------------------------------------------------|
    input portb.2  'release the pic's pin and the ENABLE pin of the GPS's regulator|
    '------------------------------------------------------------------------------|
    Last edited by astanapane; - 16th July 2018 at 19:17.

Similar Threads

  1. PIC18F46K22 config issue
    By LGabrielson in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th September 2012, 03:20
  2. Replies: 1
    Last Post: - 27th July 2008, 06:14
  3. Pic GPS project Demo
    By Art in forum GPS
    Replies: 0
    Last Post: - 28th October 2007, 03:05
  4. GPS project question
    By mjp130 in forum GPS
    Replies: 6
    Last Post: - 4th July 2007, 20:09
  5. gps project
    By chuckad in forum GPS
    Replies: 2
    Last Post: - 9th February 2007, 02:52

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts