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, 1 month 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

  • Anyone In The US Ordered From AliExpress Recently? November 10, 2025
  • Calculation of A Class amplifier November 10, 2025
  • strange laptop problem November 10, 2025
  • restarting this Christmas project November 10, 2025
  • Anyone understand roaming SIM cards?. November 10, 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