7 of 7
EXPERIMENTAL CARD FOR 8051 AND AVR MICROPROCESSORS FAMILY
|Fig. 1 - K51-AVR with KND 44, KAD 08, KND 08.|
In last articles we had examined in detailed all the circuital solutions based on K51-AVR. Now you have a lot of base progets to resolve a good part of problems that you can find on your aplications.
We complete the subject by underlaining how it's possible to change some performances without hardware modification but only on management software. Now we examine witch are the dfferences between two languages very similar but with some important different programs to manage the same situations. I refere to BASCOM-8051 compared to BASCOM-AVR suitable for chip with risc technology.
RISC MICROCONTROLLER AVR TYPE
On figure 2 you can observe the Pin - Out and the block diagrams of the little chip AT90S2313 with 2K FLASH while on figure 3 you can observe the big brother, AT90C8515, with 8K FLASH, 512 bytes RAM, 512 bytes EEPROM, SPI, UART, 32 I/O lines, two PWM, Watchdog Timer, etc.
As you can notice this chips are pin-out compatible with the similar microprocessor of 8051 FAM and they consent a fast replacement on the equipments originally made for this microcontroller. The only thing to do, is: to supplant the two chips and to recompile the program with new BASCOM-AVR.
The BASCOM-AVR Compiler is syntax similar to BASCOM-8051. This means that it can accept, as source, the same program coded for cousin BASCOM-8051.
This doesn't means that this program can run immediately and without any modification. Infact mre than possible syntacx differences, there are also tdifferences of the microcontroller internal structure. If you don't understand, you can examine the quite difficult programs' sources, as those that use the display boards type KND 08, KND 44, KAD 08. You can compare the programs that give identical results, and you will see he differences caused by the microcontroller requirements.
ALPHANUMERIC AND NUMERIC DISPLAY BOARDS
On the photo of fig. 1 yu can see the different types of little display boards connectable to K51-AVR. As you can notice only 4 link are sufficent for working with all the little display boards. Two wires a reserved for power supply and the other two e for serial driving. From a working point of view, the menagement program is wide remarked and documented, to correctly expalin the reason why of the used operations. This mothodology, once learned, results usefully any the you must drive a numeric or alphanumeric display.
As usual, for not unusefully complicate the article, both the program sources, the electric diagrams and the Data Sheets of the used integrated circuit, are available, in PDF format, directly on grifo® web site.
- AVR AT90S2313
- AVR AT90C8515
| Articles | | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 |
Page up-dated at August 29, 2004
Via dell'Artigiano, 8/6
40016 San Giorgio di Piano
Tel: +39 051 892.052 (4 lines)
FAX: +39 051 893.661
Home Index Categorical Index CPU TablesThe Demo Programs Es. BAS. K51 Mini Modules