/*---------------------------------------------------------------------------------------------------------*/
/* */
/* Copyright(c) 2019 Nuvoton Technology Corp. All rights reserved. */
/* */
/*---------------------------------------------------------------------------------------------------------*/
//***********************************************************************************************************
// Website: http://www.nuvoton.com
// E-Mail : MicroC-8bit@nuvoton.com
// Date : Jan/21/2019
//***********************************************************************************************************
//***********************************************************************************************************
// File Function: ML51 Table complier in APROM demo code.
//***********************************************************************************************************
#include "ML51.H"
/* define table data in the APROM */
/*table loacation is defined by keil compiler */
code unsigned char IMAGE_DATA[] = {
0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x22, 0x22,
0x66, 0x69, 0x69, 0x59, 0x58, 0x99, 0x99, 0x88,
};
//=========================================================================================================
void main(void)
{
unsigned char readtemp;
ALL_GPIO_QUASI_MODE;
/* Initial UART0 for printf */
MFP_P31_UART0_TXD;
P31_PUSHPULL_MODE;
UART_Open(24000000,UART0_Timer3,115200);
ENABLE_UART0_PRINTF;
printf ("\n Table Value = ");
for(readtemp;readtemp<0x10;readtemp++)
{
printf (" 0x%bx",IMAGE_DATA[readtemp]);
}
while(1);
}
|