Sold slow control/

Dependents:   sscm

Fork of S_SCTRL_SMlib by wimbeaumont Project

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers S_SCTRL_SM1_PinDef.h Source File

S_SCTRL_SM1_PinDef.h

00001 #ifndef S_SCTL_SM1_PINDEF_H 
00002 #define S_SCTL_SM1_PINDEF_H 
00003 
00004 /* 
00005  * v 1.11  corrected LVDS_MOSI  from B1 to E1
00006  * v 1.12  corrected for LDIR values 
00007  * v 1.13  corrected for RDIR values 
00008 
00009 
00010  */ 
00011 
00012 
00013 #define PINDEF_VER "1.14"
00014 
00015 #define MOSI            PTE1
00016 #define MISO            PTB8
00017 #define SCLK            PTD6 
00018 #define TEMP_CSN        PTD7
00019 #define TEMP_CABLE_CSN1 PTC8
00020 #define TEMP_CABLE_CSN2 PTE3
00021 #define DAC_DCEN        PTE0
00022 #define DAC_RSTN        PTC13
00023 // SPI 1 bi
00024 #define ADC_STIO        PTB9
00025 #define STIO_MO         PTE5
00026 #define DIRECTION       PTB10
00027 #define ADC1_CSN        PTB11
00028 #define ADC2_CSN        PTE2
00029 
00030 // SPI 2 
00031 #define MOSI_2          PTE23
00032 #define MISO_2          PTA16
00033 #define SCLK_2          PTE30
00034 #define TEMP_2_CSN      PTE29
00035 #define TEMP_2_CABLE_CSN1 PTC4
00036 #define TEMP_2_CABLE_CSN2 PTC3
00037 #define DAC_2_DCEN      PTE22
00038 #define DAC_2_RSTN      PTC5
00039 // SPI 2 bi
00040 #define ADC_2_STIO      PTC7
00041 #define STIO2_MO        PTC0
00042 #define DIRECTION2      PTC6
00043 #define ADC1_2_CSN      PTA17
00044 #define ADC2_2_CSN      PTD4
00045 
00046 // FLASH 
00047 #define F_SCLK          PTD1
00048 #define F_MISO          PTD3
00049 #define F_MOSI          PTD2
00050 #define F_CS            PTD0
00051 #define N_FWP           PTC17
00052 #define N_HOLD          PTC16
00053 
00054 // ID 
00055 #define AD0             PTC12
00056 #define AD1             PTD5
00057 #define AD2             PTA13
00058 #define AD3             PTC9
00059 #define AD4             PTE31
00060 //CAL
00061 #define CAL_TRIG_2AND4  PTC11
00062 #define CAL_TRIG_1AND3  PTC10
00063 #define GEN_EXT_CAL     PTE4
00064 #define SEL_CAL_INT     PTA5
00065 #define SEL_2_CAL_INT   PTA12
00066 #define SEL_CAL_EXT     PTA4
00067 
00068 
00069 // analogue
00070 #define ADC1            PTB0
00071 #define ADC2            PTB1
00072 
00073 
00074 // direction levels
00075 #define LDIR_OUT 1
00076 #define LDIR_IN 0
00077 
00078 #define RDIR_OUT 1
00079 #define RDIR_IN 0
00080 
00081 #define LEDRED PTB18
00082 #define LEDGREEN PTB19
00083 #define LEDBLUE PTD1
00084 
00085 #endif