[技术问答] 230的CAN1中断进不去

[复制链接]
 楼主| victor20012007 发表于 2014-11-10 13:24 | 显示全部楼层 |阅读模式
CAN, pd, tc, tca, gp
CAN0的能进去接收正常,CAN1是按葫芦画的,怎么不行呢,请指教
void FCAN1_Init(void)
{
    uint32_t    i32=0x00;
    /* Enable CAN module clock */
    CLK_EnableModuleClock(CAN1_MODULE);
    /* Set PD multi-function pins for CANTX1, CANRX1 */
    SYS->GPD_MFP &= ~(SYS_GPD_MFP_PD14_Msk | SYS_GPD_MFP_PD15_Msk);
    SYS->GPD_MFP |= SYS_GPD_MFP_PD15_CAN1_TXD | SYS_GPD_MFP_PD14_CAN1_RXD;
    SYS->ALT_MFP &= ~(SYS_ALT_MFP2_PD14_Msk | SYS_ALT_MFP2_PD15_Msk);
    SYS->ALT_MFP |= SYS_ALT_MFP2_PD15_CAN1_TXD | SYS_ALT_MFP2_PD14_CAN1_RXD;
       
          SelectCANSpeed(tCAN1);

                tCAN1->IF[0].MASK1 = 0x00UL;
                tCAN1->IF[0].MASK2 = 0x00UL;       
    tCAN1->IF[0].MCON = 0x00;       

       
          srecemsg_totalnumbers = 0x00;
          for(i32=0x00;i32<C_MAX_SRECEMSG;i32++)
               {srece_msg[i32].Id = 0x00;
                                  }
          for(i32=0x00;i32<C_MAX_SSENDMSG;i32++)
               {ssend_msg[i32].Id = 0x00;
                                  }

       
    /* Polling Mode */
    if(CAN_SetRxMsg(tCAN1, MSG(0), CAN_STD_ID, 0x7FF) == FALSE)
                 {
        printf("Set Rx1 Msg Object failed\n");
        //return;
        }
    if(CAN_SetRxMsg(tCAN1, MSG(1), CAN_STD_ID, 0x302) == FALSE)
                 {
        printf("Set Rx1 Msg Object failed\n");
        //return;
        }                 
                       
        //        printf("CAN0 IF[1].MASK1 = 0x%x MASK2 = 0x%x MCON = 0x%x",tCAN0->IF[1].MASK1,tCAN0->IF[1].MASK2,tCAN0->IF[1].MCON);
          /* INT Mode */
    CAN_EnableInt(tCAN1, CAN_CON_IE_Msk|CAN_CON_SIE_Msk|CAN_CON_EIE_Msk);     /* Enable CAN interrupt and corresponding NVIC of CAN */
    NVIC_SetPriority(CAN1_IRQn, (1 << __NVIC_PRIO_BITS) - 2);   /* Install CAN call back functions */
    NVIC_EnableIRQ(CAN1_IRQn);
}
KGSABER 发表于 2019-4-4 14:26 | 显示全部楼层
我也在用230 现在遇到can1中断既不去,楼主这个问题你解决了么?
jasontu 发表于 2019-4-8 10:26 | 显示全部楼层
在bsp裡面有can0 can1的例子
幸福小强 发表于 2019-4-9 11:14 | 显示全部楼层
试试例子能否正常运行,例子一般都没问题的。
21mengnan 发表于 2019-4-9 22:40 | 显示全部楼层
这个CAN没有设备致用单片机可以学吗
小明的同学 发表于 2019-4-9 23:35 | 显示全部楼层
确认一下两个CAN是不是配置不完全一样,或者有哪儿没有修改对。
heisexingqisi 发表于 2019-4-10 21:53 | 显示全部楼层
应该搞定了吧
yiyigirl2014 发表于 2019-4-11 11:04 | 显示全部楼层
跑例程能否进去,我一般都是先用例子测试,确认硬件无问题。
huangcunxiake 发表于 2019-4-12 22:00 | 显示全部楼层
  1. /****************************************************************************
  2. * [url=home.php?mod=space&uid=288409]@file[/url]     main.c
  3. * [url=home.php?mod=space&uid=895143]@version[/url]  V2.0
  4. * $Revision: 1 $
  5. * $Date: 14/10/01 5:10p $
  6. * [url=home.php?mod=space&uid=247401]@brief[/url]    NUC230_240 Series CAN Driver Sample Code
  7. *
  8. * @note
  9. * Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.
  10. *
  11. ******************************************************************************/
  12. #include <stdio.h>
  13. #include "NUC230_240.h"


  14. #define PLL_CLOCK       50000000

  15. /*---------------------------------------------------------------------------*/
  16. /*  Function Declare                                                         */
  17. /*---------------------------------------------------------------------------*/
  18. extern char GetChar(void);
  19. void CAN_ShowMsg(STR_CANMSG_T* Msg);

  20. /*---------------------------------------------------------------------------------------------------------*/
  21. /* Define global variables and constants                                                                   */
  22. /*---------------------------------------------------------------------------------------------------------*/
  23. /* Declare a CAN message structure */
  24. STR_CANMSG_T rrMsg;


  25. /*---------------------------------------------------------------------------------------------------------*/
  26. /* ISR to handle CAN interrupt event                                                                       */
  27. /*---------------------------------------------------------------------------------------------------------*/
  28. void CAN_MsgInterrupt(CAN_T *tCAN, uint32_t u32IIDR)
  29. {
  30.     if(u32IIDR == 1) {
  31.         printf("Msg-0 INT and Callback\n");
  32.         CAN_Receive(tCAN, 0, &rrMsg);
  33.         CAN_ShowMsg(&rrMsg);
  34.     }
  35.     if(u32IIDR == 5 + 1) {
  36.         printf("Msg-5 INT and Callback \n");
  37.         CAN_Receive(tCAN, 5, &rrMsg);
  38.         CAN_ShowMsg(&rrMsg);
  39.     }
  40.     if(u32IIDR == 31 + 1) {
  41.         printf("Msg-31 INT and Callback \n");
  42.         CAN_Receive(tCAN, 31, &rrMsg);
  43.         CAN_ShowMsg(&rrMsg);
  44.     }
  45. }

  46. /*---------------------------------------------------------------------------------------------------------*/
  47. /* CAN0 interrupt handler                                                                                  */
  48. /*---------------------------------------------------------------------------------------------------------*/
  49. void CAN0_IRQHandler(void)
  50. {
  51.     uint32_t u8IIDRstatus;

  52.     u8IIDRstatus = CAN0->IIDR;

  53.     if(u8IIDRstatus == 0x00008000) {      /* Check Status Interrupt Flag (Error status Int and Status change Int) */
  54.         /**************************/
  55.         /* Status Change interrupt*/
  56.         /**************************/
  57.         if(CAN0->STATUS & CAN_STATUS_RXOK_Msk) {
  58.             CAN0->STATUS &= ~CAN_STATUS_RXOK_Msk;   /* Clear RxOK status*/

  59.             printf("RxOK INT\n") ;
  60.         }

  61.         if(CAN0->STATUS & CAN_STATUS_TXOK_Msk) {
  62.             CAN0->STATUS &= ~CAN_STATUS_TXOK_Msk;    /* Clear TxOK status*/

  63.             printf("TxOK INT\n") ;
  64.         }

  65.         /**************************/
  66.         /* Error Status interrupt */
  67.         /**************************/
  68.         if(CAN0->STATUS & CAN_STATUS_EWARN_Msk) {
  69.             printf("EWARN INT\n") ;
  70.         }

  71.         if(CAN0->STATUS & CAN_STATUS_BOFF_Msk) {
  72.             printf("BOFF INT\n") ;
  73.         }
  74.     } else if(u8IIDRstatus != 0) {
  75.         printf("=> Interrupt Pointer = %d\n", CAN0->IIDR - 1);

  76.         CAN_MsgInterrupt(CAN0, u8IIDRstatus);

  77.         CAN_CLR_INT_PENDING_BIT(CAN0, ((CAN0->IIDR) - 1)); /* Clear Interrupt Pending */
  78.     } else if(CAN0->WU_STATUS == 1) {
  79.         printf("Wake up\n");

  80.         CAN0->WU_STATUS = 0;    /* Write '0' to clear */
  81.     }

  82. }

  83. /*---------------------------------------------------------------------------------------------------------*/
  84. /* CAN0 interrupt handler                                                                                  */
  85. /*---------------------------------------------------------------------------------------------------------*/
  86. void CAN1_IRQHandler(void)
  87. {
  88.     uint32_t u8IIDRstatus;

  89.     u8IIDRstatus = CAN1->IIDR;

  90.     if(u8IIDRstatus == 0x00008000) {      /* Check Status Interrupt Flag (Error status Int and Status change Int) */
  91.         /**************************/
  92.         /* Status Change interrupt*/
  93.         /**************************/
  94.         if(CAN1->STATUS & CAN_STATUS_RXOK_Msk) {
  95.             CAN1->STATUS &= ~CAN_STATUS_RXOK_Msk;   /* Clear RxOK status*/

  96.             printf("RxOK INT\n") ;
  97.         }

  98.         if(CAN1->STATUS & CAN_STATUS_TXOK_Msk) {
  99.             CAN1->STATUS &= ~CAN_STATUS_TXOK_Msk;    /* Clear TxOK status*/

  100.             printf("TxOK INT\n") ;
  101.         }

  102.         /**************************/
  103.         /* Error Status interrupt */
  104.         /**************************/
  105.         if(CAN1->STATUS & CAN_STATUS_EWARN_Msk) {
  106.             printf("EWARN INT\n") ;
  107.         }

  108.         if(CAN1->STATUS & CAN_STATUS_BOFF_Msk) {
  109.             printf("BOFF INT\n") ;
  110.         }
  111.     } else if(u8IIDRstatus != 0) {
  112.         printf("=> Interrupt Pointer = %d\n", CAN1->IIDR - 1);

  113.         CAN_MsgInterrupt(CAN1, u8IIDRstatus);

  114.         CAN_CLR_INT_PENDING_BIT(CAN1, ((CAN1->IIDR) - 1)); /* Clear Interrupt Pending */
  115.     } else if(CAN1->WU_STATUS == 1) {
  116.         printf("Wake up\n");

  117.         CAN1->WU_STATUS = 0;    /* Write '0' to clear */
  118.     }

  119. }


  120. /*---------------------------------------------------------------------------------------------------------*/
  121. /* Reset message interface parameters                                                                      */
  122. /*---------------------------------------------------------------------------------------------------------*/
  123. void CAN_ResetIF(CAN_T *tCAN, uint8_t u8IF_Num)
  124. {
  125.     if(u8IF_Num > 1)
  126.         return;
  127.     tCAN->IF[u8IF_Num].CREQ     = 0x0;          // set bit15 for sending
  128.     tCAN->IF[u8IF_Num].CMASK    = 0x0;
  129.     tCAN->IF[u8IF_Num].MASK1    = 0x0;          // useless in basic mode
  130.     tCAN->IF[u8IF_Num].MASK2    = 0x0;          // useless in basic mode
  131.     tCAN->IF[u8IF_Num].ARB1     = 0x0;          // ID15~0
  132.     tCAN->IF[u8IF_Num].ARB2     = 0x0;          // MsgVal, eXt, xmt, ID28~16
  133.     tCAN->IF[u8IF_Num].MCON     = 0x0;          // DLC
  134.     tCAN->IF[u8IF_Num].DAT_A1   = 0x0;          // data0,1
  135.     tCAN->IF[u8IF_Num].DAT_A2   = 0x0;          // data2,3
  136.     tCAN->IF[u8IF_Num].DAT_B1   = 0x0;          // data4,5
  137.     tCAN->IF[u8IF_Num].DAT_B2   = 0x0;          // data6,7
  138. }

  139. /*---------------------------------------------------------------------------*/
  140. /*  Show Message Function                                                    */
  141. /*---------------------------------------------------------------------------*/
  142. void CAN_ShowMsg(STR_CANMSG_T* Msg)
  143. {
  144.     uint8_t i;

  145.     /* Show the message information */
  146.     printf("Read ID=0x%X, Type=%s, DLC=%d, Data=", Msg->Id, Msg->IdType ? "EXT" : "STD", Msg->DLC);
  147.     for(i = 0; i < Msg->DLC; i++)
  148.         printf("%X,", Msg->Data[i]);
  149.     printf("\n\n");
  150. }

  151. void SYS_Init(void)
  152. {
  153.     /*---------------------------------------------------------------------------------------------------------*/
  154.     /* Init System Clock                                                                                       */
  155.     /*---------------------------------------------------------------------------------------------------------*/

  156.     /* Enable Internal RC 22.1184MHz clock */
  157.     CLK_EnableXtalRC(CLK_PWRCON_OSC22M_EN_Msk);

  158.     /* Waiting for Internal RC clock ready */
  159.     CLK_WaitClockReady(CLK_CLKSTATUS_OSC22M_STB_Msk);

  160.     /* Switch HCLK clock source to Internal RC and HCLK source divide 1 */
  161.     CLK_SetHCLK(CLK_CLKSEL0_HCLK_S_HIRC, CLK_CLKDIV_HCLK(1));

  162.     /* Enable external XTAL 12MHz clock */
  163.     CLK_EnableXtalRC(CLK_PWRCON_XTL12M_EN_Msk);

  164.     /* Waiting for external XTAL clock ready */
  165.     CLK_WaitClockReady(CLK_CLKSTATUS_XTL12M_STB_Msk);

  166.     /* Set core clock as PLL_CLOCK from PLL */
  167.     CLK_SetCoreClock(PLL_CLOCK);

  168.     /* Enable UART module clock */
  169.     CLK_EnableModuleClock(UART0_MODULE);

  170.     /* Enable CAN module clock */
  171.     CLK_EnableModuleClock(CAN0_MODULE);
  172.     //CLK_EnableModuleClock(CAN1_MODULE);

  173.     /* Select UART module clock source */
  174.     CLK_SetModuleClock(UART0_MODULE, CLK_CLKSEL1_UART_S_PLL, CLK_CLKDIV_UART(1));

  175.     /*---------------------------------------------------------------------------------------------------------*/
  176.     /* Init I/O Multi-function                                                                                 */
  177.     /*---------------------------------------------------------------------------------------------------------*/

  178.     /* Set GPB multi-function pins for UART0 RXD and TXD */
  179.     SYS->GPB_MFP &= ~(SYS_GPB_MFP_PB0_Msk | SYS_GPB_MFP_PB1_Msk);
  180.     SYS->GPB_MFP |= SYS_GPB_MFP_PB0_UART0_RXD | SYS_GPB_MFP_PB1_UART0_TXD;

  181.     /* Set PD multi-function pins for CANTX0, CANRX0 */
  182.     SYS->GPD_MFP &= ~(SYS_GPD_MFP_PD6_Msk | SYS_GPD_MFP_PD7_Msk);
  183.     SYS->GPD_MFP = SYS_GPD_MFP_PD6_CAN0_RXD | SYS_GPD_MFP_PD7_CAN0_TXD;

  184.     /* Set PA multi-function pins for CANTX1, CANRX1 */
  185. //     SYS->GPA_MFP &= ~(SYS_GPA_MFP_PA10_Msk | SYS_GPA_MFP_PA11_Msk);
  186. //     SYS->GPA_MFP = SYS_GPA_MFP_PA10_CAN1_TXD | SYS_GPA_MFP_PA11_CAN1_RXD;
  187. //     SYS->ALT_MFP &= ~(SYS_ALT_MFP_PA10_Msk | SYS_ALT_MFP_PA11_Msk);
  188. //     SYS->ALT_MFP |= SYS_ALT_MFP_PA10_CAN1_TXD | SYS_ALT_MFP_PA11_CAN1_RXD;

  189. }

  190. /*---------------------------------------------------------------------------------------------------------*/
  191. /* Init UART                                                                                               */
  192. /*---------------------------------------------------------------------------------------------------------*/
  193. void UART0_Init()
  194. {
  195.     /* Reset IP */
  196.     SYS_ResetModule(UART0_RST);

  197.     /* Configure UART0 and set UART0 Baudrate */
  198.     UART_Open(UART0, 115200);
  199. }

  200. /*---------------------------------------------------------------------------------------------------------*/
  201. /* Disable CAN Clock and Reset it                                                                          */
  202. /*---------------------------------------------------------------------------------------------------------*/
  203. void CAN_STOP(void)
  204. {
  205.     /* Disable CAN0 Clock and Reset it */
  206.     SYS_ResetModule(CAN0_RST);
  207.     CLK_DisableModuleClock(CAN0_MODULE);

  208.     /* Disable CAN1 Clock and Reset it */
  209.     SYS_ResetModule(CAN1_RST);
  210.     CLK_DisableModuleClock(CAN1_MODULE);
  211. }

  212. /*----------------------------------------------------------------------------*/
  213. /*  Some description about how to create test environment                     */
  214. /*----------------------------------------------------------------------------*/
  215. void Note_Configure()
  216. {
  217.     printf("\n\n");
  218.     printf("+--------------------------------------------------------------------------+\n");
  219.     printf("|  About CAN sample code configure                                         |\n");
  220.     printf("+--------------------------------------------------------------------------+\n");
  221.     printf("|   The sample code provide a simple sample code for you study CAN         |\n");
  222.     printf("|   Before execute it, please check description as below                   |\n");
  223.     printf("|                                                                          |\n");
  224.     printf("|   1.CAN_TX and CAN_RX should be connected to your CAN transceiver        |\n");
  225.     printf("|   2.Using two module board and connect to the same CAN BUS               |\n");
  226.     printf("|   3.Check the terminal resistor of bus is connected                      |\n");
  227.     printf("|   4.Using UART0 as print message port                                    |\n");
  228.     printf("|                                                                          |\n");
  229.     printf("|  |--------|       |-----------|   CANBUS  |-----------|       |--------| |\n");
  230.     printf("|  |        |------>|           |<--------->|           |<------|        | |\n");
  231.     printf("|  |        |CAN_TX |    CAN    |   CAN_H   |   CAN     |CAN_TX |        | |\n");
  232.     printf("|  | NUC2XX |       |Transceiver|           |Transceiver|       | NUC2XX | |\n");
  233.     printf("|  |        |<------|           |<--------->|           |------>|        | |\n");
  234.     printf("|  |        |CAN_RX |           |   CAN_L   |           |CAN_RX |        | |\n");
  235.     printf("|  |--------|       |-----------|           |-----------|       |--------| |\n");
  236.     printf("|  |                                                            |          |\n");
  237.     printf("|  |                                                            |          |\n");
  238.     printf("|  V                                                            V          |\n");
  239.     printf("| UART0                                                         UART0      |\n");
  240.     printf("|(print message)                                          (print message)  |\n");
  241.     printf("+--------------------------------------------------------------------------+\n");
  242. }

  243. /*----------------------------------------------------------------------------*/
  244. /*  Set the CAN speed                                                         */
  245. /*----------------------------------------------------------------------------*/
  246. void SelectCANSpeed(CAN_T  *tCAN)
  247. {
  248.     uint32_t unItem;
  249.     int32_t i32Err = 0;

  250.     printf("Please select CAN speed you desired\n");
  251.     printf("[0] 1000Kbps\n");
  252.     printf("[1]  500Kbps\n");
  253.     printf("[2]  250Kbps\n");
  254.     printf("[3]  125Kbps\n");
  255.     printf("[4]  100Kbps\n");
  256.     printf("[5]   50Kbps\n");

  257.     unItem = GetChar();
  258.     printf("%c\n", unItem);
  259.     if(unItem == '1')
  260.         i32Err = CAN_Open(tCAN,  500000, CAN_NORMAL_MODE);//Set target baud-rate and operation mode.
  261.     else if(unItem == '2')
  262.         i32Err = CAN_Open(tCAN,  250000, CAN_NORMAL_MODE);
  263.     else if(unItem == '3')
  264.         i32Err = CAN_Open(tCAN,  125000, CAN_NORMAL_MODE);
  265.     else if(unItem == '4')
  266.         i32Err = CAN_Open(tCAN,  100000, CAN_NORMAL_MODE);
  267.     else if(unItem == '5')
  268.         i32Err = CAN_Open(tCAN,   50000, CAN_NORMAL_MODE);
  269.     else
  270.         i32Err = CAN_Open(tCAN, 1000000, CAN_NORMAL_MODE);

  271.     if(i32Err < 0)
  272.         printf("Set CAN bit rate is fail\n");
  273.     else
  274.         printf("Real baud-rate value(bps): %d\n", i32Err);

  275. }

  276. /*----------------------------------------------------------------------------*/
  277. /*  Test Menu                                                                 */
  278. /*----------------------------------------------------------------------------*/
  279. void TestItem(void)
  280. {
  281.     printf("\n");
  282.     printf("+------------------------------------------------------------------ +\n");
  283.     printf("|  Nuvoton CAN BUS DRIVER DEMO                                      |\n");
  284.     printf("+-------------------------------------------------------------------+\n");
  285.     printf("|                                                                   |\n");
  286.     printf("|      Receive a message by normal mode                             |\n");
  287.     printf("|                                                                   |\n");
  288.     printf("+-------------------------------------------------------------------+\n");
  289. }

  290. /*----------------------------------------------------------------------------*/
  291. /*  Send Rx Msg by Normal Mode Function (With Message RAM)                    */
  292. /*----------------------------------------------------------------------------*/
  293. void Test_NormalMode_Rx(CAN_T *tCAN)
  294. {
  295.     if(CAN_SetRxMsg(tCAN, MSG(0), CAN_STD_ID, 0x7FF) == FALSE) {
  296.         printf("Set Rx Msg Object failed\n");
  297.         return;
  298.     }

  299.     if(CAN_SetRxMsg(tCAN, MSG(5), CAN_EXT_ID, 0x12345) == FALSE) {
  300.         printf("Set Rx Msg Object failed\n");
  301.         return;
  302.     }

  303.     if(CAN_SetRxMsg(tCAN, MSG(31), CAN_EXT_ID, 0x7FF01) == FALSE) {
  304.         printf("Set Rx Msg Object failed\n");
  305.         return;
  306.     }
  307.     /*Choose one mode to test*/
  308. #if 1
  309.     /* Polling Mode */
  310.     while(1) {
  311.         while(tCAN->IIDR == 0);                  /* Wait IDR is changed */
  312.         printf("IDR = %x\n", tCAN->IIDR);
  313.         CAN_Receive(tCAN, tCAN->IIDR - 1, &rrMsg); /* Get the message */
  314.         CAN_ShowMsg(&rrMsg);                     /* Show the message object */
  315.     }
  316. #else
  317.     /* INT Mode */
  318.     CAN_EnableInt(tCAN, CAN_CON_IE_Msk);     /* Enable CAN interrupt and corresponding NVIC of CAN */
  319.     NVIC_SetPriority(CAN0_IRQn, (1 << __NVIC_PRIO_BITS) - 2);   /* Install CAN call back functions */
  320.     NVIC_SetPriority(CAN1_IRQn, (1 << __NVIC_PRIO_BITS) - 2);
  321.     NVIC_EnableIRQ(CAN0_IRQn);
  322.     NVIC_EnableIRQ(CAN1_IRQn);
  323.     printf("Wait Msg\n");
  324.     printf("Enter any key to exit\n");
  325.     GetChar();
  326. #endif
  327. }

  328. /*---------------------------------------------------------------------------------------------------------*/
  329. /* MAIN function                                                                                           */
  330. /*---------------------------------------------------------------------------------------------------------*/
  331. int main(void)
  332. {
  333.     CAN_T *tCAN;
  334.     tCAN = (CAN_T *) CAN0;
  335.     //tCAN = (CAN_T *) CAN1;

  336.     /* Unlock protected registers */
  337.     SYS_UnlockReg();

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

  340.     /* Lock protected registers */
  341.     SYS_LockReg();

  342.     /* Init UART0 for printf */
  343.     UART0_Init();

  344.     /*---------------------------------------------------------------------------------------------------------*/
  345.     /* SAMPLE CODE                                                                                             */
  346.     /*---------------------------------------------------------------------------------------------------------*/

  347. //     /* Set GPB12 to control CAN transceiver for Nuvoton board */
  348. //     PB12 = 0;

  349.     /* Some description about how to create test environment */
  350.     Note_Configure();

  351.     /* Configuring the Bit Timing */
  352.     SelectCANSpeed(tCAN);

  353.     /* Test Menu */
  354.     TestItem();

  355.     printf("Receive a message by normal mode\n\n");

  356.     /* Send Rx Msg by Normal Mode Function (With Message RAM) */
  357.     Test_NormalMode_Rx(tCAN);

  358.     /* Disable CAN */
  359.     CAN_Close(tCAN);

  360.     /* Disable CAN Clock and Reset it */
  361.     CAN_STOP();

  362.     while(1);

  363. }



复制代码
huangcunxiake 发表于 2019-4-12 22:01 | 显示全部楼层
官方的接收的例子,就有CAN1的中断。
zhuomuniao110 发表于 2019-4-13 16:52 | 显示全部楼层
解决了没,分享一下,官方那个例子里貌似只有CAN0

评论

@woyaoshangbanle :https://www.nuvoton.com/hq/resource-download.jsp?tp_GUID=SW0120140703102345  发表于 2019-5-26 20:42
@woyaoshangbanle :http://www.nuvoton.com.cn/opencms/products/microcontrollers/arm-cortex-m0-mcus/nuc130-230-automotive-series/?__locale=zh  发表于 2019-5-26 20:41
官方程序例程,能给发个链接吗,刚接触新塘的,脑袋一片空白什么也不知道  发表于 2019-5-20 11:32
zhuomuniao110 发表于 2019-5-26 20:41 | 显示全部楼层
http://www.nuvoton.com.cn/opencms/products/microcontrollers/arm-cortex-m0-mcus/nuc130-230-automotive-series/?__locale=zh
zhuomuniao110 发表于 2019-5-26 20:41 | 显示全部楼层
https://www.nuvoton.com/hq/resource-download.jsp?tp_GUID=SW0120140703102345
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

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