Back

2012_332AB_P3

Viewing page version #5
(Restore this version) 

Modified: 3 April 2011, 6:56 PM   User: Ovidiu Stoica  → OS

Project Name: Cod Morse

 

I. Project Description

Scopul proiectului este implemenarea unui traducator de cod Morse pe o placuta cu 8 leduri. Pana la urma, am folosit tot PIC-ul propus la laborator. Microcontrollerul primeste pe seriala, de la EV/Z3 doua caractere care reprezinta codul ASCII al literei ce se vrea tradusa si in functie de acesta, aprinde ledurile (2 leduri aprinse inseamna o lunie, unul singur inseamna punct). De asemenea, microcontrollerul transmite inapoi pe seriala litera corespunzatoare codului ASCII, litera fiind afisata pe LCD-ul placii EV/Z3. De exemplu, cand se introduce de la tastatura lui EV/Z3 "65", pe display apare 65A, iar pe placa ledurile apar sub forma 10 11 00 00 (1 insemnand ca led-ul e aprins, 0 ca e stins).

 

 

II. Project Requirements

Pentru implementarea proiectului, am folosit placa, dupa montajul recomandat in laborator. In plus fata de placa basic, am adaugat 8 leduri, fiecare cu cate o rezistenta aferenta (am folosit microcontrollerul PIC16F628A). Pentru programarea microcontrollerului, am plecat de la template-ul oferit pentru, afisajul cu 7 segmente. La initializarea placutei, toate ledurile sunt aprinse (am pus 1 pe fiecare pin). Ledurile sunt conectate, in ordine la urmatorii pini: RB3, RB0, RA3, RA2, RA1, RA0, RB5, RB4. Microcontrollerul asteapta 2 caractere, cod_1 si cod_2. In functie de valorile din cele 2 variabile (care sunt retinute ca char-uri), se retine intr-o variabila de tipul long int, led un numar de forma 10110000, iar pe TXREG se pune litera aferenta. Intr-un vector de 8 elemente (numit pin), se retine fiecare cifra a variabilei led (1 sau 0) si apoi pentru fiecare pin din cei 8 se da valoarea pin[i]. 

Theacher Proposal
- atmega 16, 50*100 placa de test, fudor.
8 leduri simulati codul Morse.
Soft: Z3 trimite codul ascii al literelor apasate prin seriala - placa va arata linie -punct in functie de codul morse.
- simulati cu buzzerul codul morse

 

III. User Flow

Describe the functionality from a users point of view. What an user can do with your app.

IV. Required components

The hardware components used. List them and take a screenshot of them.

V. Hardware Design

Add pictures and comments about the hardware implementation. Should include any schematic used in simulation (e.g. Proteus).

VI. Software Design

Describe the software functionality of your project, including code used on EV/Z3 board and the uC board. Discuss your algorithms, data flows and so on. Should post code samples of the most interesting bits.

VII. Results

Data about the final project implementation. Includes screenshots, movies, comments about your project in action.

VIII. Download

After you have presented your project at the laboratory (week 13-14) you will add all your sources here. Any hardware simulation used, code archive and so on.

IX. Status

You will have to update this every 2 weeks to include details of what you have done on your project. E.g.: aquired componets, made board, written code for EV/Z3

X. Personal Contribution

In case 2 or more students were involved, this section will contain what each student has done for the project. You will be asked when presenting project and graded individually on this.