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

📄 main.c

📁 MSP430f2013 ADC, LCD drivers using 74168 shift registers
💻 C
字号:
/*=============================================================================
//   File : main.c                                                           //
//                                                                           //
//   Abstract: This source file containing the main calling sub routines     //
//   Compiler : IAR Embedded Work Bench                                      //
//                                                                           //
//   Author : Kuberappa.M.Sajjan                                             //
//   E-mail : kuber@unifiedst.com                                            //
//                                                                           //
//                                                                           //
=============================================================================*/



/*--------------------------- Preprocessor Directives -----------------------*/

#include "io430.h"
#include "datatypes_v1.1.h"
#include "lcd_v1.1.h"
#include "adc_v1.1.7.h"
#include "conversion_v1.1.7.h"





/*-------------------------- Macros and Constants ---------------------------*/



const UCHAR strng[5] = "LT=";     // This indicates that the direction of the wt                               
const UCHAR stn[5] = "RT=";       // This indicates that the direction of the wt  





/*--------------------------- Global variable Declarations ------------------*/








/*-------------------------- Function Prototypes ----------------------------*/





               


int main( void )
{
  WDTCTL = WDTPW + WDTHOLD;       // Stop the watch dog timer
  system_initialisation();        // Initialise the system and its peripherals
  __enable_interrupt();                             // Enable the global Interrupt bit 
  lcd_displaydata(ROW1,COL1,strng); // Display the LT Direction
  lcd_displaydata(ROW2,COL1,stn); // Display the RT Direction 
  system_offset_adc_conv(OFFSET); // read the offset values
  
  while(1)
  {
    system_offset_adc_conv(READ); // Read the weights on the Platform
  }
}

⌨️ 快捷键说明

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