Zilog ZUSBOPTS Uživatelský manuál Strana 49

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 59
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 48
UM025603-0814 ZDS II Developer Studio for the ZNEO CPU
Zilog Educational Shields
User Manual
42
Example. The code segment below displays the letters ZILOG on a 5x5 matrix. The letter
Z is shown in Figure10.
/*******************************************************
*
* File: main.c
*
* Description: This file contains the main function that writes
* the string ZILOG on a 5x5 matrix and blinks the LEDs in the
* circular pattern on the Test Shield that is mounted on the Zilog
* Educational Platform.
*
*****************************************************/
#include <stdio.h>
#include "zneo.h"
void delay()
{
long y;
y = 110000;
while(y--);
}
void delay2()
{
long z;
z = 20000;
while(z--);
}
void delay3()
{
long t;
t = 5000;
while(t--);
}
void click()
{
long w;
w= 10000;
while(w--)
PFOUT = 0x20;
PFOUT = 0x00;
}
void LetterZ(void)
{
delay2();
Zobrazit stránku 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 58 59

Komentáře k této Příručce

Žádné komentáře