[文档下载] NUC505相關資料包

[复制链接]
3335|17
 楼主| a_ziliu 发表于 2015-4-13 14:04 | 显示全部楼层 |阅读模式
NUC505技術手冊連結:
http://www.nuvoton.com/hq/resource-download.jsp?tp_GUID=DA05-NUC505

NUC505 BSP連結:
http://www.nuvoton.com/hq/resource-download.jsp?tp_GUID=SW0120141215140101

keil driver連結:
http://www.nuvoton.com/hq/resource-download.jsp?tp_GUID=SW0520101208200142

NUC505 NUTINY V1.4板子的使用說明
UM_NuTiny-SDK-NUC505_V1.00.pdf (1.27 MB, 下载次数: 157)
springvirus 发表于 2015-4-13 16:36 | 显示全部楼层
不错,正需要
weiwei4dk 发表于 2015-4-13 17:13 | 显示全部楼层
不错,拿到板子时用得到
cowboy2014 发表于 2015-4-14 08:30 | 显示全部楼层
资料很多并且很有用
收下了
ningtao66 发表于 2015-4-14 08:59 | 显示全部楼层
下载了,谢谢!
xjjspace 发表于 2015-4-14 15:35 | 显示全部楼层
哎,设备无法识别,晚上系统重装下再看看去,郁闷
734774645 发表于 2015-4-15 00:01 | 显示全部楼层
我下载了那个DVD大礼包,新唐什么资料都有,不过这次505的不够全面,没有教程啊,其他系列都给教程了。
sdjr362090120 发表于 2015-4-16 10:54 来自手机 | 显示全部楼层
是啊,有教程就好了
sqrong 发表于 2015-7-10 22:09 | 显示全部楼层
能否发一下NU_TINY 505的原理图,官网上有.dsn格式原理图,但我打不开,哪位大哥能帮忙转成pdf文件。
nuvoton.com/hq/resource-download.jsp?tp_GUID=HL0120150213163240
598330983 发表于 2015-7-11 21:25 | 显示全部楼层
那个DVD大礼包,新唐什么资料都有
mintspring 发表于 2015-7-11 21:45 | 显示全部楼层
有个板子一直闲着,现在下载点资料玩玩。
春风的暖暖 发表于 2015-7-14 09:14 | 显示全部楼层
谢谢楼主的分享,下载下来看看
小猫爱吃鱼 发表于 2015-7-14 21:34 | 显示全部楼层
非常详尽的资料,谢谢楼主的分享
xinba0625 发表于 2015-10-29 17:16 | 显示全部楼层
点击链接加入群【Nuvoton NUC505】:http://jq.qq.com/?_wv=1027&k=aBPl1W
_寒寒_ 发表于 2015-12-7 11:12 | 显示全部楼层
新唐的资料总是那么稀缺
大苏牙 发表于 2015-12-7 21:13 | 显示全部楼层
同时再分享些程序就更好了
wahahaheihei 发表于 2015-12-7 22:15 | 显示全部楼层
/**************************************************************************//**
* @file     main.c
* @version  V1.00
* $Date: 14/05/29 1:14p $
* @brief    NUC505 General Purpose I/O Driver Sample Code
*           Connect PB.10 and PB.11 to test IO In/Out
*           Test PB.10 and PB.11 interrupts
*
* @note
* Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.
*
******************************************************************************/
#include <stdio.h>
#include "NUC505Series.h"
#include "gpio.h"

void EINT0_IRQHandler(void)
{
    int32_t u32Flag;

    u32Flag = GPIO_GET_INT_FLAG(PB, BIT11);
    GPIO->INTSTSA_B = (u32Flag << 16);

    /* To avoid the synchronization issue between system and APB clock domain */
    u32Flag = GPIO->INTSTSA_B;

    printf("  EINT0 interrupt occurred. \n");
}


void SYS_Init(void)
{
    /*---------------------------------------------------------------------------------------------------------*/
    /* Init System Clock                                                                                       */
    /*---------------------------------------------------------------------------------------------------------*/

    /* Enable  XTAL */
    CLK->PWRCTL |= CLK_PWRCTL_HXTEN_Msk;

    CLK_SetCoreClock(96000000);

    /* Set PCLK divider */
    CLK_SetModuleClock(PCLK_MODULE, NULL, 1);

    /* Update System Core Clock */
    SystemCoreClockUpdate();

    /* Enable IP clock */
    CLK_EnableModuleClock(UART0_MODULE);

    /* Select IP clock source */
    CLK_SetModuleClock(UART0_MODULE, CLK_UART0_SRC_EXT, 0);

    /*---------------------------------------------------------------------------------------------------------*/
    /* Init I/O Multi-function                                                                                 */
    /*---------------------------------------------------------------------------------------------------------*/
    /* Configure multi-function pins for UART0 RXD and TXD */
    SYS->GPB_MFPL  = (SYS->GPB_MFPL & (~SYS_GPB_MFPL_PB0MFP_Msk) ) | SYS_GPB_MFPL_PB0MFP_UART0_TXD;
    SYS->GPB_MFPL  = (SYS->GPB_MFPL & (~SYS_GPB_MFPL_PB1MFP_Msk) ) | SYS_GPB_MFPL_PB1MFP_UART0_RXD;

}

/*---------------------------------------------------------------------------------------------------------*/
/* MAIN function                                                                                           */
/*---------------------------------------------------------------------------------------------------------*/
int main (void)
{
    int32_t i32Err;

    /* Init System, IP clock and multi-function I/O */
    SYS_Init();

    /* Init UART to 115200-8n1 for print message */
    UART_Open(UART0, 115200);

    printf("\n\nCPU @ %dHz\n", SystemCoreClock);

    printf("+-------------------------------------+ \n");
    printf("|           GPIO Driver Sample Code   | \n");
    printf("+-------------------------------------+ \n");

    /*-----------------------------------------------------------------------------------------------------*/
    /* GPIO Basic Mode Test --- Use Pin Data Input/Output to control GPIO pin                              */
    /*-----------------------------------------------------------------------------------------------------*/
    printf("  >> Please connect PB.10 and PB.11 first << \n");
    printf("     Press any key to start test by using [Pin Data Input/Output Control] \n\n");
    getchar();

    /* Configure PB.10 as Output mode and PB.11 as Input mode pull up enable then close it */
    GPIO_SetMode(PB, BIT10, GPIO_MODE_OUTPUT);
    GPIO_SetMode(PB, BIT11, GPIO_MODE_INPUT);
    GPIO_SetPullMode(PB, BIT11, GPIO_PULL_UP_EN);

    i32Err = 0;
    printf("  GPIO Output/Input test ...... \n");

    /* Use Pin Data Input/Output Control to pull specified I/O or get I/O pin status */
    PB10_DOUT = 0;
    if (PB11_PIN != 0) {
        i32Err = 1;
    }

    PB10_DOUT = 1;
    if (PB11_PIN != 1) {
        i32Err = 1;
    }

    if ( i32Err ) {
        printf("  [FAIL] --- Please make sure PB.10 and PB.11 are connected. \n");
    } else {
        printf("  [OK] \n");
    }

    /* Configure PB.10 and PB.11 to default input mode */
    GPIO_SetMode(PB, BIT10, GPIO_MODE_INPUT);
    GPIO_SetMode(PB, BIT11, GPIO_MODE_INPUT);

    /*-----------------------------------------------------------------------------------------------------*/
    /* GPIO Interrupt Function Test                                                                        */
    /*-----------------------------------------------------------------------------------------------------*/
    printf("\n  PB10 and PB11 are used to test interrupt\n");

    /* Configure PB.10 as Output mode */
    PB10_DOUT = 0;
    GPIO_SetMode(PB, BIT10, GPIO_MODE_OUTPUT);

    /* Configure PB11 as Input mode and enable interrupt by rising edge trigger */
    GPIO_SetMode(PB, BIT11, GPIO_MODE_INPUT);
    GPIO_EnableInt(PB, 11, GPIO_INT_RISING);

    /* Enable interrupt de-bounce function and select de-bounce sampling cycle time */
    GPIO_SET_DEBOUNCE_TIME(NULL, GPIO_DBCTL_DBCLKSEL_128);
    GPIO_ENABLE_DEBOUNCE(PB, GPIO_DBCTL_EINT0_DBEN_MASK);

    /* Configure PB11 as EINT0 */
    GPIO_SetIntGroup(PB, 11, GPIO_INTSRCGP_EINT0);
    NVIC_EnableIRQ(EINT0_IRQn);

    PB10_DOUT = 1;

    /* Waiting for interrupts */
    while (1);

}

玛尼玛尼哄 发表于 2016-1-30 21:04 | 显示全部楼层
下载了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

100

主题

310

帖子

6

粉丝
快速回复 在线客服 返回列表 返回顶部