• 大小: 3.27MB
    文件类型: .rar
    金币: 2
    下载: 2 次
    发布日期: 2021-04-09
  • 语言: 其他
  • 标签: eDP  HDMI  NCS8803  

资源简介

这里面包括原理图,PCB,打板资料,BOM清单。C代码,通过IIC配置一下寄存器就可以工作了。已经量厂过,没有问题。直接拿来就用

资源截图

代码片段和文件信息

/*---------------------------------------------------------------------------------------------------------*/
/*                                                                                                         */
/* Copyright(c) 2010 Nuvoton Technology Corp. All rights reserved.                                         */
/*                                                                                                         */
/*---------------------------------------------------------------------------------------------------------*/
#include 
#include “M051Series.h“
#define PLLCON_SETTING      SYSCLK_PLLCON_50MHz_XTAL
#define PLL_CLOCK           50000000

void CKO_Init(void)
{
    /* CKO = HCLK / 2^(1+1) */
    SYS_EnableCKO(SYSCLK_CLKSEL2_FRQDIV_HCLK 3);

}

void ADC_Init(void)
{
    /* Set the ADC operation mode as single input mode as single-end and enable the ADC converter */
    ADC->ADCR = (ADC_ADCR_ADMD_SINGLE | ADC_ADCR_DIFFEN_SINGLE_END | ADC_ADCR_ADEN_CONVERTER_ENABLE);
    /* Enable analog input channel 2 */
    ADC->ADCHER = 0x4;
}


void SPI0_Init(void)
{
    /* Initial SPI data format and SPI clock */
    /* SPI clock idle low. 32-bit data output at clock falling and latched at clock rising. */    
    SPI0->CNTRL   = SPI_CNTRL_CLK_IDLE_LOW | SPI_CNTRL_TX_FALLING | 
                    SPI_CNTRL_RX_RISING | SPI_CNTRL_TX_BIT_LEN(32);

    /* SPI clock freq = system clock / ((3+1)*2) */
    SPI0->DIVIDER = SPI_DIVIDER_DIV(3); 
    
    /* Enable automatic slave select control and set it as active low */
    SPI0->SSR = SPI_SSR_HW_AUTO_ACTIVE_LOW;
}


void SPI1_Init(void)
{
    /* Initial SPI data format and SPI clock */
    /* SPI clock idle high. 16-bit data output at clock falling and latched at clock rising. */    
    SPI1->CNTRL   = SPI_CNTRL_CLK_IDLE_HIGH | SPI_CNTRL_TX_FALLING | 
                    SPI_CNTRL_RX_RISING | SPI_CNTRL_TX_BIT_LEN(16);

    /* SPI clock freq = system clock / ((3+1)*2) */
    SPI1->DIVIDER = SPI_DIVIDER_DIV(3); 
    
    /* Enable automatic slave select control and set it as active low */
    SPI1->SSR = SPI_SSR_HW_AUTO_ACTIVE_LOW;
}


//void I2C0_Init(void)
//{
//    /* Enable I2C0 Controller */
//    I2C0->I2CON = I2C_I2CON_ENS1_Msk;
//    
//    /* I2C0 clock divider I2C Bus Clock = PCLK / (4*125) */
//    I2C0->I2CLK = I2C_I2CLK_DIV4(125);
//
//    /* Set I2C0 4 Slave Addresses */            
//    _I2C_SET_SLAVE_ADDRESS_0(I2C0 0x15);   /* Slave Address : 0x15 */
//    _I2C_SET_SLAVE_ADDRESS_1(I2C0 0x35);   /* Slave Address : 0x35 */
//    _I2C_SET_SLAVE_ADDRESS_2(I2C0 0x55);   /* Slave Address : 0x55 */
//    _I2C_SET_SLAVE_ADDRESS_3(I2C0 0x75);   /* Slave Address : 0x75 */
//
//    /* Enable I2C0 interrupt and set corresponding NVIC bit */
//    //I2C->I2CON |= I2C_I2CON_EI_Msk;
//    //NVIC_EnableIRQ(I2C0_IRQn);
//}

void EBI_Init(void)
{
    /* Enable EBI data width = 16-bit EBI MCLK = HCL

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      28160  2018-10-04 15:14  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02_BOM.xls

     文件       4659  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\7611_7511+++-1-4.drl

     文件      15301  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\BOTTOM.art

     文件      10384  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\GND.art

     文件       2043  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\OUTLINE.art

     文件       2401  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\PIN_BOT.art

     文件       7658  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\PIN_TOP.art

     文件      13413  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\POWER.art

     文件      46551  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\SILKSCREEN_BOTTOM.art

     文件     133821  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\SILKSCREEN_TOP.art

     文件       2522  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\SOLDERMASK_BOTTOM.art

     文件       7947  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\SOLDERMASK_TOP.art

     文件      35231  2018-10-04 14:20  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\GERBER\TOP.art

     文件        915  2018-07-25 16:04  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\打板说明.txt

     文件      33901  2018-07-25 15:59  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\附图\底层阻抗.png

     文件      46542  2018-07-25 15:57  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料\附图\顶层阻抗.png

     文件     148942  2018-10-04 14:28  eDP_DRIVER_BOARD_V02\eDP_DRIVER_BOARD_V02打板资料\eDP_DRIVER_BOARD_V02打板资料.rar

     文件      10792  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\CoreSupport\core_cm0.c

     文件      41773  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\CoreSupport\core_cm0.h

     文件     405000  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h

     文件       9999  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\startup\arm\startup_M051Series.s

     文件       8193  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\startup\iar\startup_M051Series.s

     文件       4232  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\system_M051Series.c

     文件       3355  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\system_M051Series.h

     文件      57004  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\CMSIS\Documentation\CMSIS_Core.htm

     文件      11746  2018-08-02 14:34  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\Initialization.c

     文件       1523  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\M051-LB_004_Driver\inc\DrvI2C_SW.h

     文件       1614  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\M051-LB_004_Driver\inc\DrvI2C_SW_I.h

     文件        759  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\M051-LB_004_Driver\inc\EEPROM_24LC64.h

     文件        869  2012-08-10 15:13  eDP_DRIVER_BOARD_V02\eDP_MCU_PRJ\eDP_MCU_PRJ\M0_test\lib\M051-LB_004_Driver\inc\Flash_25Q16.h

............此处省略353个文件信息

评论

共有 条评论