PDA

Επιστροφή στο Forum : Electronic combination lock



risk
08-02-07, 16:12
Λοιπον παιδια εχω μια απορια.....Εχω κατασκευασει πριν πολυ πολυ καιρο αυτην την κατασκευη και δουλευει καλα μπορω να πω.... http://www.jap.hu/electronic/combination_lock.html
Ομως τωρα παρατηρησα οτι εχει βγει σχηματικο για να συνδεεις και μια lcd.Θελω λοιπον να κανω την κατασκευουλα την τελευταια με την lcd.Το προβλημα ειναι οτι....το cl2-025.zip οταν το κανω extract και προσπαθω να το κανω assemble το asm αρχειο, to mpasmwin Μου βγαζει errors.Τι πιστευεται πως φταιει???Θα μου πεις γιατι δεν φορτωνεις απ'ευθειας το hex...αλλα μεσα στο κειμενο λεει....

"ιn addition to the standard definitions, you may want to change these variables:

#define HIDDEN_CODE '*'
this is the definition of what you see on the LCD instead of the digits (default is asterisk). If you delete this line, the digits are shown as entered

msg_line EQU 0x80
this value contains the LCD position for messages. By default it contains the address of the first LCD line (documented in the LCD datasheet)

code_line EQU 0xc0
this value contains the LCD position for code entry. By default it contains the address of the second LCD line (documented in the LCD datasheet)


Ευχαριστω πολυ!!!!!

risk
09-02-07, 15:31
Αρχεια με καταληξη *.lkr τι ακριβως κανουν????(Linker legontai???)

Μπορειτε να μου εξηγησετε και το παρακατω αρθρο γιατι λογω ελλειψης γνωσεων δεν καταλαβαινω......
Επισης εγω εχω το MPLAB 7.01 Λετε να εχει διαφορες στον τροπο?????

Ευχαριστω πολυ.....
:D

"FAQ

Q: How do I compile a HEX file from multiple source files (linked project) ?

Q: How do I compile a HEX file from a source file containing CODE directives?

A: Here is how to do it in MPLAB v5. Create a project (project/new) and in the project files area select the root node (HEX file). Click node properties, select MPLINK as language tool. Enter appropriate linker file name (eg 16f628.lkr) into additional command line options. Close window. Click add node to add all the source files one by one. Place the specified lkr file (eg 16f628.lkr) in the directory containing the sources. The linker file can usually be copied from your mplab(/lkr) program directory. Choose the file matching your processor.

MPLAB v6: Start the new project wizard, and when asked, add all assembly, header files and the linker script to the project.

Explanation: There are two incompatible source types for one-file absolute and multiple-file linked projects, you can't write code both type. If you want to build modular code which can be combined with other libraries, code must be written in the linkable format, even if it is the only source file in the beginning. But linkable format source must be compiled differently, in two steps: first compiled into an intermediate object format, then linked into a HEX file."

risk
09-02-07, 16:57
Τελικα το καταφερα με το mplab.....Αλλα δεν περναει ελληνικους χαρακτηρες....Τι ακριβως πρεπει να κανω????? :D

gsmaster
10-02-07, 02:07
Που ακριβώς θέλεις να βάλεις ελληνικούς χαρακτήρες;
Στα μηνύματα της οθόνης; Αν ναι έχει λίγο φασαρία να φτιάξεις τα γράμματα που λείπουν και ακόμα λίγο φασαρία να τα στείλεις.....
Η διαδικασία περιγράφεται εδώ http://www.hlektronika.gr/pafiledb/pafiledb.php?action=file&id=33 . Ψάχνεις για "custom characters"

Κανένας compiler/asembler, απ όσο ξέρω, δεν υποστηρίζει απευθείας Ελληνικά, βολέψου με τα Αγγλικά καλύτερα.

risk
10-02-07, 15:41
ok Ευχαριστω....

Και κατι τελευταιο.......Στο κυκλωματακι δυστηχως αυτο οταν δωσεις τοφοδοσια το ρελε ειναι οπλισμενο.Οταν εισαγεις τον σωστο κωδικο,τοτε σβηνει για λιγο και επειτα ξαναναβει.Εχει ενα αρχειακι το cl2b το οποιο χρησιμοποιηται σαν toggle switch.Θελω να κανω και αυτο να λειτουργει ετσι,αλλα προσπαθησα να αλλαξω των κωδικα σε αυτο το σημειο που επισυναπτω αλλα δεν καταφερα τιποτα.(δεν ξερω κι'ολας εναν ειναι το σωστο μερος που θελει αλλαγη.Προσπαθησα να καταχωρισω τη εντολη xor αλλα δυστηχως δεν καταφερα τιποτε.....)

Ευχαριστω........