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 / regarding project in college

regarding project in college

|

Microcontroller › AVR › regarding project in college

  • This topic has 3 replies, 4 voices, and was last updated 10 years, 7 months ago by Arjun Singh.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 24, 2015 at 11:50 am #3580
    prasanth
    Participant

    hello sir,

    this is prasanth persuing b.tech 3rd year(ECE branch) in centurion university in odisha. actually im doing a project on AMPHIBIAN ROBOT using AVR6.1 software. but im getting some troubles in the coding part. while im executing the code for usart for the receivung and transmitting purpose im getting errors. so i hope you will help me the best. below is the code which i executed

    /*
     * trans.c
     *
     * Created: 24-03-2015 11:50:49
     *  Author: Bivash Kumar
     */ 
     
    #include <avr/io.h>
    #include <util/delay.h>
     
    #include "usart.h"
     
    void main()
    {
       //Initialize the USART with Baud rate = 2400bps
       USARTInit(416);
     
       //Enable Internal Pullups on PORTC
       PORTC=0xFF;
     
       /* 
     
       Keep transmitting the Value of Local PORTC
       to the Remote Station.
     
       On Remote RX station the Value of PORTC
       sent on AIR will be latched on its local PORTC
       */
     
       uint8_t data;
       while(1)
       {
          data=PINC;
     
          /* 
          Now send a Packet
          Packet Format is AA<data><data inverse>Z
     
          total Packet size if 5 bytes.
          */
     
          //Stabilize the Tx Module By Sending JUNK data
          UWriteData('J');  //J for junk
     
          //Send 'A'
          UWriteData('A');
     
          //Send Another 'A'
          UWriteData('A');
     
          //Send the data;
          UWriteData(data);
     
          //Send inverse of data for error detection purpose
     
          UWriteData(~data);
     
          //End the packet by writing 'Z'
          UWriteData('Z');
     
          //Wait for some time
          _delay_loop_2(0);
          _delay_loop_2(0);
          _delay_loop_2(0);
          _delay_loop_2(0);
       }
    }
    so i request you to kindly check this and help me as soon as possible and send me the correct code please. below is my respective email address.
     
    thanking you,
     
     
    yours sincerely,
    prasanth.
    March 27, 2015 at 7:29 am #12736
    Ashutosh Bhatt
    Participant

    where is ur  USARTInit and UWriteData functions

    post ur usart.h file

    April 6, 2015 at 6:23 am #12766
    Sagar
    Participant

    April 10, 2015 at 4:16 am #12778
    Arjun Singh
    Participant

    First of all write your complete code only after that i will be able to help you.

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

RSS Recent Posts

  • Calculation of A Class amplifier November 9, 2025
  • restarting this Christmas project November 9, 2025
  • strange laptop problem November 9, 2025
  • Have a ultrasonic washer but not knowing what detergent for cleaning soot November 9, 2025
  • JLCPBC are using a different shipping company = less $$$$$$$$ November 9, 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