46
Chapter 4. Programming
/*-----------------------------------------------------------------------
BANK0.C
Copyright 1997 KEIL Software, Inc.
------------------------------------------------------------------------*/
#include <reg517.h>
extern void func1(void);
void func0(void) {
P4 |= 0x01; /* switch LED on */
func1(); /* FUNCTION IN BANK 0 CALLS A FUNCTION IN BANK 1 */
P4 &= ~0x01; /* switch LED off */
}
/*-----------------------------------------------------------------------
BANK1.C
Copyright 1997 KEIL Software, Inc.
-----------------------------------------------------------------------*/
#include <reg517.h>
extern void func2(void);
void func1(void) {
P4 |= 0x02; /* switch LED on */
func2(); /* FUNCTION IN BANK 1 CALLS A FUNCTION IN BANK 2 */
P4 &= ~0x02; /* switch LED off */
}
/*-----------------------------------------------------------------------
BANK2.C
Copyright 1997 KEIL Software, Inc.
------------------------------------------------------------------------*/
#include <reg517.h>
extern void func3(void);
void func2(void) {
P4 |= 0x04; /* switch LED on */
func3(); /* FUNCTION IN BANK 2 CALLS A FUNCTION IN BANK 3 */
P4 &= ~0x04; /* switch LED off */
}
Содержание MCB517AC
Страница 6: ...vi Contents...
Страница 23: ...MCB517AC Evaluation Board User s Guide 17 Schematics...
Страница 24: ...18 Chapter 3 Hardware...
Страница 25: ...MCB517AC Evaluation Board User s Guide 19...
Страница 26: ...20 Chapter 3 Hardware...
Страница 27: ...MCB517AC Evaluation Board User s Guide 21 Printed Board Assembly...
Страница 32: ...26 Chapter 3 Hardware...
Страница 34: ......