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.
51 lines
1.1 KiB
51 lines
1.1 KiB
// Description: Use of the MSP430F5528 USCI A0 peripheral for setting up and
|
|
// communicating to the ADS1220 24-bit ADC.
|
|
//
|
|
#if 0
|
|
ADC´®¿Ú SPI_SS P10.0 UC3BSTE 100
|
|
SPI-SCK P10.1 UC4BSCK 1
|
|
SPI-SIMO P10.2 UC5BSIMO 2
|
|
SPI-SOMI P10.3 UC6BSOMI 3
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#ifndef _msp_sspi0_H
|
|
#define _msp_sspi0_H
|
|
|
|
#include "../bsp/bsp_config.h"
|
|
#include "../ctask/tick.h"
|
|
|
|
#include "msp_uart0.h"
|
|
#include "msp_SSPIx.h"
|
|
|
|
#define D_sspi0_MISO_init() D_P103_IN();
|
|
#define D_sspi0_MOSI_init() D_P102_OUT();
|
|
#define D_sspi0_SCLK_init() D_P101_OUT();
|
|
|
|
|
|
#define D_sspi0_MOSI_ON() D_P102_ON();
|
|
#define D_sspi0_SCLK_ON() D_P101_ON();Lc_delay_us(10);
|
|
|
|
#define D_sspi0_MOSI_OFF() D_P102_OFF();
|
|
#define D_sspi0_SCLK_OFF() D_P101_OFF();Lc_delay_us(10);
|
|
|
|
|
|
|
|
#define D_sspi0_MISO_GET() D_P103_AT()
|
|
#define D_sspi0_INT__AT() D_P10_AT()
|
|
|
|
|
|
|
|
#define D_sspi0_IO_init() D_sspi0_MISO_init();\
|
|
D_sspi0_MOSI_init();\
|
|
D_sspi0_SCLK_init();
|
|
|
|
|
|
extern TS_sspi ts_sspi0;
|
|
extern void L1_sspi0_init(void);
|
|
|
|
#endif////_msp_SPI_sim_H
|
|
|
|
|
|
|