You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

52 lines
1.6 KiB

// Description: Use of the MSP430F5528 USCI A0 peripheral for setting up and
// communicating to the ADS1220 24-bit ADC.
//
//
//
// MSP430x552x
// ------------------
// /|\| |
// | | |
// --|RST P3.4|<-- MISO (DOUT)
// | |
// | P3.3|--> MOSI (DIN)
// | |
// | P2.7|--> SCLK
// | |
// | P2.6|<-- INT (DRDY)
// | |
// | P1.2|--> CS
#ifndef _msp_Ssspi1_H
#define _msp_Ssspi1_H
#include "../bsp/bsp_config.h"
#include "../ctask/tick.h"
#include "msp_uart0.h"
#include "msp_SSPIx.h"
#define D_sspi1_MISO_init() D_P34_IN();
#define D_sspi1_MOSI_init() D_P33_OUT();
#define D_sspi1_SCLK_init() D_P27_OUT();
///#define D_sspi1_INT__init() D_P10_IN();
#define D_sspi1_MISO_GET() D_P34_AT()
#define D_sspi1_MOSI_ON() D_P33_ON();
#define D_sspi1_SCLK_ON() D_P27_ON();Lc_delay_us(10);
#define D_sspi1_MOSI_OFF() D_P33_OFF();
#define D_sspi1_SCLK_OFF() D_P27_OFF();Lc_delay_us(10);
////#define D_sspi1_INT__AT() D_P10_AT()
#define D_sspi1_IO_init() D_sspi1_MISO_init();\
D_sspi1_MOSI_init();\
D_sspi1_SCLK_init();
/// D_sspi1_INT__init()
extern TS_sspi ts_sspi1;
extern void L1_sspi1_init(void);
#endif////_msp_SPI_sim_H