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 / Unable to interface USART with hyper terminal.

Unable to interface USART with hyper terminal.

|

Microcontroller › PIC › Unable to interface USART with hyper terminal.

  • This topic has 2 replies, 3 voices, and was last updated 12 years ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 25, 2013 at 7:22 am #2503
    Rahul
    Participant

    Hey i am connecting PIC16f917 with hyterterminal using USART. Its running fine on proteus and virtual ports with hyperterminal. But when i am actually implementing its not running. I have also tested the cable by ‘LoopBack Test’.

     

    Here is the code.

     

    #include<pic.h>
    #include<string.h>
     
    void main()
    {
     
    // OCILLATOR FREQUENCY
    SCS=1;
    IRCF2=1;
    IRCF1=1;
    IRCF0=0;
     
    //  USART INITIALISATION
    SPBRG=25;
    SYNC=0;
    SPEN=1;
    BRGH=0;
    TXEN=1;
    CREN=1;
     
    while(1)
    {
    TXREG=72;
    while(TXIF==0);
    TXREG=73;
    while(TXIF==0);
    TXREG=32;
    while(TXIF==0);
    }
    }
     
     
    Its a simple program, just for testing.
     
    Plz Help.
    June 25, 2013 at 6:09 pm #10032
    Pravin Gareta
    Participant

    How u caclulate the baudrate.. i think problem in baudarate

    June 26, 2013 at 4:36 am #10033
    Anonymous
    Guest

    I have reffer the Datasheet and selected the baudrate from there. SPBRG=25; for baud= 2400. I am using MAX232 can the problem be in it??…..And also i am using controller in DTE mode and expecting hyperterminal to work in DSE mode.

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

RSS Recent Posts

  • I Wanna build a robot July 13, 2025
  • Wierd makita battery July 13, 2025
  • using a RTC in SF basic July 13, 2025
  • Is AI making embedded software developers more productive? July 13, 2025
  • ac current limiting July 13, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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