EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / interfacing pic18f4550 with gps

interfacing pic18f4550 with gps

|

Microcontroller › PIC › interfacing pic18f4550 with gps

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 6 months ago by Vara Ashishkumar.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 3, 2015 at 4:09 am #3795
    surendra
    Participant

    // Program to Interface GPS with PIC18F4550 Microcontroller
    #define FREQ 12000000
    #define baud 4800
    #define spbrg_value (((FREQ/64)/baud)-1)
    #define rs LATA.F0
    #define rw LATA.F1
    #define en LATA.F2
    #define lcdport LATB

     

     

     

     

     

    TRISB=0; // Set Port B as output port

    LATB=0;
    TRISA=0;
    LATA=0;
    SPBRG=spbrg_value; // Fill SPBRG register to set the baud rate

     

     

    sir ,i need some information about the usage of these steps.please give some explaination in detail

    August 3, 2015 at 4:26 am #13123
    Vara Ashishkumar
    Participant

    TRISX(X= any port like A,B etc) is used for define output or input port.0 is define for output and 1 for define input.In your code LCD is connected with portB and you want to send some data to LCD for display purpose so it is define as output port.LATX(X = any port like A,B etc.) is output latch onto which value are written.SPBRG is used for set the baud rate for serial communication.It is all configuration register which is need to be configure as per your application.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Supply vs performance query February 7, 2026
  • wall transformer polarity February 7, 2026
  • Do i need a buffer? February 7, 2026
  • BPF February 7, 2026
  • Figgie International intercom 1998 era February 7, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise