Hmm i need to check that. For the datasheet the gps module is from the MKT with MK3339 chip in it.
Datasheet is on the following Page on the Links mention PA6H
https://www.adafruit.com/product/790
Hmm i need to check that. For the datasheet the gps module is from the MKT with MK3339 chip in it.
Datasheet is on the following Page on the Links mention PA6H
https://www.adafruit.com/product/790
Enable pin has only the MKT3333 chip, which i also have but i wont use at the moment the MK3333 chip.
http://www.alphamicrowireless.com/me...asheet-v0e.pdf
Last edited by astanapane; - 15th July 2018 at 19:15.
Both of those have an NRESET input which is a low-active signal that will reset the module.
Connect that to one of the pic's IO pins (as long as you're powering the pic at 3.3V).
At startup, init the uart to 9600.
Then set NRESET low, delay 1msec, and set it high. They don't have any timing specs for the NRESET input, but that should do it.
After you get the initial sequence from the GPS then you can switch it to 38400.
I was checking the manual but at the same time the pcb board, which is an adafruit ultimate GPS. They do have an ENABLE pin but this is not coming from the GPS module but from the mic5225 3.3V legulator.
So i guess that via EN pin on the regulator we can hold the pin to GND or LOW for a 1ms and will do the job. I think it will work. Thanks a lot once again.
I would also like to thank you all, because i learn everyday more things step by step.
Apologize for my limited knowlegde, i know that i cannot help you, and it is difficult for you to understand my questions in order to help me as well.
Appreciate your patience.....
The EN to the regulator should work as well, but since that will shut off power to the GPS you should make sure to set any IO pins that are outputs to the GPS to tri-state (ie inputs), or drive them low while you have the power off.
For the UART TX output that means disabling the uart to get control of the IO pins.
Also, you may need to pull EN low for longer than 1ms. When the regulator shuts off it'll probably take a while for the GPS 3.3V to drop.
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 20:17.
Bookmarks