B&B Electronics Asynchronous to Synchronous Converter 2010 Bedienungsanleitung Seite 28

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 43
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 27
Department of Computer Science and Electronics
28
4.3.3. Test
AVR Studio and Hyper terminal software within the evaluation kit STK 500 are
used for the tests to be made.
Some small differences between the real board and the board used to test the
code are expected. First of all, the communication will be RS232 instead of RS485 as it
is the one that the STK500 provides, and this way the computer will make the task in
correspondence to the PPC. Instead of using an external ceramic oscillator of 16MHz,
an internal RC oscillator of 4MHz is used. Therefore, it is important to set the
corresponding fuses before programming the microcontroller in AVR Studio, and to
change the UBRRL register in the code, from value 0x67 to 0x19 as well as the
ADCSRA register from value 0x87 to 0x85.
The microcontroller is programmed with SPI from AVR Studio4. The code has
been divided into different parts which having been analyzed separately. Once each part
is working, all parts were attached and tested together.
The parts in which the program has been divided into are the following:
UART, checking the communication.
The ADC
W/R EEPROM
Calculating the frame to send to the PPC
Calibrating
Figure 4-11. STK500 simulation kit
Seitenansicht 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 42 43

Kommentare zu diesen Handbüchern

Keine Kommentare