⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timer_user.ppl

📁 the timer control demo source for the NEC mcu
💻 PPL
📖 第 1 页 / 共 3 页
字号:
  500 :                                                                         TMHn_TMHMDn_Level_High
  501 :                                                                 */                                                          
      :     TMHn_TMHMDn_Level_Low|                                                              TMHn_TMHMDn_Output_Enable
  502 :         
  503 :         /* Interrupt settings */
  504 :         #define TMH1_INTTMH1    0
  505 : 
  506 : 
  507 : 
  508 : 
  509 : 
  510 : 
  511 : #pragma interrupt  INTTM000 HD_INTTM000
  512 : 
  513 : 
  514 : 
  515 : 
  516 : 
  517 : 
  518 : #pragma interrupt  INTTM001 HD_INTTM001
  519 : 
  520 : 
  521 : 
  522 : 
  523 : 
  524 : #pragma interrupt  INTTM50 HD_INTTM50
  525 : 
  526 : 
  527 : 
  528 : #pragma interrupt  INTTM51 HD_INTTM51
  529 : 
  530 : 
  531 : 
  532 : 
  533 : 
  534 : 
  535 : /*
  536 : *******************************************************************************
  537 : **  Include files
  538 : *******************************************************************************
  539 : */
  540 : 
  541 : 
  542 : /*
  543 : *******************************************************************************
  544 : **



/*
78K/0 Series C Compiler V3.60 Preprocess List                                                           Date: 9 Oct 2005 Page:  11
*/

  545 : **  This device driver was created by Applilet for the 78K0/KB2, 78K0/KC2,
  546 : **  78K0/KD2, 78K0/KE2 and 78K0/KF2 8-Bit Single-Chip Microcontrollers.
  547 : **
  548 : **  Filename :  timer.h
  549 : **  Abstract :  This file implements a device driver for the timer module
  550 : **  Device :    uPD78F0547
  551 : **  Compiler:   NEC/CC78K0
  552 : **
  553 : *******************************************************************************
  554 : */
  555 : 
  556 : 
  557 : /*
  558 : *******************************************************************************
  559 : **
  560 : **  This device driver was created by Applilet for the 78K0/KB2, 78K0/KC2,
  561 : **  78K0/KD2, 78K0/KE2 and 78K0/KF2 8-Bit Single-Chip Microcontrollers.
  562 : **
  563 : **  Filename :  timer_config.h
  564 : **  Abstract :  This file implements a device driver for the timer module
  565 : **  Device :    uPD78F0547
  566 : **  Compiler:   NEC/CC78K0
  567 : **
  568 : *******************************************************************************
  569 : */
  570 : 
  571 : /*
  572 : *******************************************************************************
  573 : **  Case : Square wave output function
  574 : **
  575 : **  Description : Output squarewave
  576 : **
  577 : **  Setting : fprs = 8MHz
  578 : **  TM00 external event = 10
  579 : **  TM01 external event = 10
  580 : **  TM50 external event = 10
  581 : **  TM51 external event = 10
  582 : **  TM00 external event = 10
  583 : **  TM01 external event = 10
  584 : **  
  585 : *******************************************************************************
  586 : */
  587 : 
  588 : 
  589 : /*
  590 : *******************************************************************************
  591 : **
  592 : **  This device driver was created by Applilet for the 78K0/KB2, 78K0/KC2,
  593 : **  78K0/KD2, 78K0/KE2 and 78K0/KF2 8-Bit Single-Chip Microcontrollers.
  594 : **
  595 : **  Filename :  timer.h
  596 : **  Abstract :  This file implements a device driver for the timer module
  597 : **  Device :    uPD78F0547
  598 : **  Compiler:   NEC/CC78K0
  599 : **
  600 : *******************************************************************************



/*
78K/0 Series C Compiler V3.60 Preprocess List                                                           Date: 9 Oct 2005 Page:  12
*/

  601 : */
  602 : 
  603 : 
  604 : 
  605 : 
  606 : 
  607 : 
  608 : #define _HDTIMER_
  609 : 
  610 : /*
  611 : *******************************************************************************
  612 : **  Function proto type
  613 : *******************************************************************************
  614 : */
  615 : 
  616 : 
  617 : void TM00_Init(void);
  618 : void TM00_Enable(void);
  619 : void TM00_Disable(void);
  620 : 
  621 : 
  622 : 
  623 : void TM01_Init(void);
  624 : void TM01_Enable(void);
  625 : void TM01_Disable(void);
  626 : 
  627 : 
  628 : 
  629 : void TM50_Init(void);
  630 : void TM50_Enable(void);
  631 : void TM50_Disable(void);
  632 : 
  633 : 
  634 : 
  635 : void TM51_Init(void);
  636 : void TM51_Enable(void);
  637 : void TM51_Disable(void);
  638 : 
  639 : 
  640 : 
  641 : 
  642 : 
  643 : void TMH1_Init(void);
  644 : void TMH1_Enable(void);
  645 : void TMH1_Disable(void);
  646 : 
  647 : 
  648 : 
  649 : 
  650 : /*
  651 : *******************************************************************************
  652 : **  MacroDefine
  653 : *******************************************************************************
  654 : */
  655 : 
  656 : 



/*
78K/0 Series C Compiler V3.60 Preprocess List                                                           Date: 9 Oct 2005 Page:  13
*/

  657 : 
  658 : 
  659 : 
  660 : /*
  661 : **-----------------------------------------------------------------------------
  662 : **
  663 : **  Abstract:
  664 : **      TM00 INTTM000 interrupt service routine
  665 : **      
  666 : **  Parameters:
  667 : **      None
  668 : **
  669 : **  Returns:
  670 : **      None    
  671 : **
  672 : **-----------------------------------------------------------------------------
  673 : */
  674 : __interrupt void HD_INTTM000( )
  675 : {
  676 : 
  677 :         /*TODO*/
  678 : }
  679 : 
  680 : 
  681 : 
  682 : 
  683 : 
  684 : /*
  685 : **-----------------------------------------------------------------------------
  686 : **
  687 : **  Abstract:
  688 : **      TM01 INTTM001 interrupt service routine.
  689 : **
  690 : **  Parameters:
  691 : **      None
  692 : **
  693 : **  Returns:
  694 : **      None
  695 : **
  696 : **-----------------------------------------------------------------------------
  697 : */
  698 : __interrupt void HD_INTTM001( )
  699 : {
  700 : 
  701 :         /*TODO*/
  702 : }
  703 : 
  704 : 
  705 : 
  706 : 
  707 : 
  708 : /*
  709 : **-----------------------------------------------------------------------------
  710 : **
  711 : **  Abstract:
  712 : **      TM50 INTTM50 interrupt service routine



/*
78K/0 Series C Compiler V3.60 Preprocess List                                                           Date: 9 Oct 2005 Page:  14
*/

  713 : **      
  714 : **  Parameters:
  715 : **      None
  716 : **
  717 : **  Returns:
  718 : **      None    
  719 : **
  720 : **-----------------------------------------------------------------------------
  721 : */
  722 : __interrupt void HD_INTTM50( )
  723 : {
  724 :         /* TODO */
  725 : }
  726 : 
  727 : 
  728 : 
  729 : 
  730 : /*
  731 : **-----------------------------------------------------------------------------
  732 : **
  733 : **  Abstract:
  734 : **      TM51 INTTM51 interrupt service routine
  735 : **      
  736 : **  Parameters:
  737 : **      None
  738 : **
  739 : **  Returns:
  740 : **      None    
  741 : **
  742 : **-----------------------------------------------------------------------------
  743 : */
  744 : __interrupt void HD_INTTM51( )
  745 : {
  746 :         /* TODO */
  747 : }
  748 : 
  749 : 
  750 : 
  751 : 
  752 : 
  753 : 


/*
 Target chip : uPD78F0547_80
 Device file : V2.00 
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -