A simple project with AT90S2313


Posted on Feb 6, 2014

You should have the GNU tools configured, built, and installed on your system. In this chapter, we present a simple example of using the GNU tools in an AVR project. After reading this chapter, you should have a better feel as to how the tools are used and how a Makefile can be configured. This project will use the pulse-width modul


A simple project with AT90S2313
Click here to download the full size of the above Circuit.

ator (PWM) to ramp an LED on and off every two seconds. An AT90S2313 processor will be used as the controller. The circuit for this demonstration is shown in the schematic diagram. If you have a development kit, you should be able to use it, rather than build the circuit, for this project. Meanwhile, the AT90S2313 became obsolete. Either use its successor, the (pin-compatible) ATtiny2313 for the project, or perhaps the ATmega8 or one of its successors (ATmega48/88/168) which have become quite popular since the original demo project had been established. For all these more modern devices, it is no longer necessary to use an external crystal for clocking as they ship with the internal 1 MHz oscillator enabled, so C1, C2, and Q1 can be omitted. Normally, for this experiment, the external circuitry on /RESET (R1, C3) can be omitted as well, leaving only the AVR, the LED, the bypass capacitor C4, and perhaps R2. For the ATmega8/48/88/168, use PB1 (pin 15 at the DIP-28 package) to connect the LED to. Additionally, this demo has been ported to many different other AVRs. The location of the respective OC pin varies between different AVRs, and it is mandated by the AVR hardware. The source code is given in demo. c. For the sake of this example, create a file called demo. c containing this source code. Some of the more important parts of the code are: As the AVR microcontroller series has been developed during the past years, new...




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    McCAD PCB software
    1 GHz Frequency Counter
    Power Supply Schematic
    NiCd Battery Charger
    Headlight Flasher
    An Electromagnetic and Ultrasonic Shield



    Top