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 / USART in Proteus 8 for PIC16f877a : NO OUTPUT

USART in Proteus 8 for PIC16f877a : NO OUTPUT

|

Microcontroller › PIC › USART in Proteus 8 for PIC16f877a : NO OUTPUT

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 7 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 10, 2013 at 6:45 am #2633
    Sandeep
    Participant

    i am just not getting an output on virtual terminal in proteus !! Can someone help me ?

     

     

    thank u in advance !

    #include <htc.h>
    #define XTAL_FREQ 16000000
    #define TX_pin_dir TRISC6

    __CONFIG(FOSC_HS & WDTE_OFF & PWRTE_OFF & BOREN_OFF & LVP_OFF & CPD_OFF & WRT_OFF & CP_OFF);

    char name[]=”HELLO WORLD”;

    void port_inti()
    {
        TX_pin_dir= 0;
    }

    void serial_inti()
    {
        
        BRGH=1;
        SPBRG=103;
        TX9D=0;
        SYNC=0;
        TXEN=0;
        TXEN=1;
        SPEN=1;
        
        
        
    }

    void serialsendchar (unsigned char val)
    {
        
        while(!TXIF);
        TXREG=val;
        
     }

     
    void main()
    {
        unsigned int i;
        port_inti();
        serial_inti();

        while(1)
        {
        for(i=0;i<11;i++)
        {
            serialsendchar(name);

        }
    }    
        
           
    }

     

     

     

     

    September 24, 2013 at 4:37 am #10480
    AJISH ALFRED
    Participant

    Hi Sandeep,

    Try the project in real hardware and use hyperterminal or Putty.

  • 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

  • reviving old swordfish program but? May 18, 2026
  • Assistance locating a 'trail' camera gadget, please ? May 18, 2026
  • Projector focus circuit May 18, 2026
  • Relay question May 18, 2026
  • Phone Charger 5v to 12v May 17, 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