;---------------------------------------------------------------------------------------------------------*/
; */
; Copyright(c) 2015 Nuvoton Technology Corp. All rights reserved. */
; */
;---------------------------------------------------------------------------------------------------------*/
;***********************************************************************************************************
; Nuvoton Technoledge Corp.
; Weblink: http://www.nuvoton.com
; E-Mail : MicroC-8bit@nuvoton.com
; Date : Sep/1/2015
;***********************************************************************************************************
;***********************************************************************************************************
; File Function: N76E616 GPIO simple demo code
;***********************************************************************************************************
#include "N76E616.h"
#include "Delay.inc"
CSEG AT 0000h
LJMP start
; Note: When N76E616 power on, the system clock is HIRC (11.0592MHz), so Fsys = 11.0592MHz
start:
call Set_All_GPIO_Quasi_Mode
Loop1:
clr P02;
setb P03;
call delay_200ms
setb P02;
clr P03;
call delay_200ms
jmp Loop1
Set_All_GPIO_Quasi_Mode:
mov P0M1,#0x00;
mov P0M2,#0x00;
mov P1M1,#0x00;
mov P1M2,#0x00;
mov P2M1,#0x00;
mov P2M2,#0x00;
mov P3M1,#0x00;
mov P3M2,#0x00;
mov P4M1,#0x00;
mov P4M2,#0x00;
mov P5M1,#0x00;
mov P5M2,#0x00;
ret
end
|