/*---------------------------------------------------------------------------------------------------------*/
/* */
/* Copyright(c) 2019 Nuvoton Technology Corp. All rights reserved. */
/* */
/*---------------------------------------------------------------------------------------------------------*/
//***********************************************************************************************************
// Website: http://www.nuvoton.com
// E-Mail : MicroC-8bit@nuvoton.com
// Date : Jan/21/2019
//***********************************************************************************************************
//***********************************************************************************************************
//***********************************************************************************************************
#include "ML51.H"
unsigned char code protect [] = {
00,02,05,07
};
void main (void)
{
ALL_GPIO_QUASI_MODE; // Define in Function_define.h
while(1)
{
P0 = 0x00;
P2 = 0x00;
P1 = 0x00;
Timer0_Delay1ms(30);
P0 = 0xff;
P2 = 0xff;
P1 = 0xff;
Timer0_Delay1ms(30);
P0 = 0x00;
P2 = 0x00;
P1 = 0x00;
Timer0_Delay1ms(30);
P0 = 0xff;
P2 = 0xff;
P1 = 0xff;
Timer0_Delay1ms(30);
P0 = 0x00;
P2 = 0x00;
P1 = 0x00;
P0 = 0XFF;
}
}
|