pwm gen works.new pins assigned to all except interrupt. everything works except beacon spi.

Dependencies:   mbed-rtos mbed

Fork of pcb_test_v1_1 by sakthi priya amirtharaj

Files at this revision

API Documentation at this revision

Comitter:
sakthipriya
Date:
Tue Apr 07 18:10:19 2015 +0000
Parent:
0:e91ee0e99213
Commit message:
new pins assigned to all except interrupt. everything works except beacon spi.

Changed in this revision

ACS.cpp Show annotated file Show diff for this revision Revisions of this file
HK.cpp Show annotated file Show diff for this revision Revisions of this file
beacon.cpp Show annotated file Show diff for this revision Revisions of this file
fault.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e91ee0e99213 -r bbddd1763652 ACS.cpp
--- a/ACS.cpp	Tue Apr 07 16:11:54 2015 +0000
+++ b/ACS.cpp	Tue Apr 07 18:10:19 2015 +0000
@@ -7,11 +7,11 @@
 SPI spi_acs (PIN16, PIN17, PIN15);        // mosi, miso, sclk  PTE18,19,17
 DigitalOut SSN_MAG (PIN61);               // ssn for magnetometer PTB11
 DigitalInOut DRDY (PIN47);                 // drdy for magnetometer PTA17
-DigitalOut ssn_gyr (PIN62);                //Slave Select pin of gyroscope  PTB16
-InterruptIn dr(PIN81);                     //Interrupt pin for gyro PTC5
+DigitalOut ssn_gyr (PTE2);                //Slave Select pin of gyroscope  PTB16
+InterruptIn dr(PTC6);                     //Interrupt pin for gyro PTC5
 PwmOut PWM1(PIN93);                          //Functions used to generate PWM signal 
 PwmOut PWM2(PIN94); 
-PwmOut PWM3(PIN88);                          //PWM output comes from pins p6
+PwmOut PWM3(PIN95);                          //PWM output comes from pins p6
 Ticker tr;                                //Ticker function to give values for limited amount of time for gyro
 Timeout tr_mag;
 uint8_t trflag_mag;
diff -r e91ee0e99213 -r bbddd1763652 HK.cpp
--- a/HK.cpp	Tue Apr 07 16:11:54 2015 +0000
+++ b/HK.cpp	Tue Apr 07 18:10:19 2015 +0000
@@ -10,8 +10,8 @@
 
 //--------------------------------------------MSB is SelectLines[0],LSB is SelectLines[3]-------------------------------- 
 
-AnalogIn CurrentInput(PIN54);                                // output from Current Mux PTB0
-AnalogIn VoltageInput(PIN53);                                // output from Voltage Multiplexer  PTB1
+AnalogIn CurrentInput(PIN53);                                // output from Current Mux PTB0
+AnalogIn VoltageInput(PIN54);                                // output from Voltage Multiplexer  PTB1
 AnalogIn TemperatureInput(PIN55);                            /*PTB2 output from Temperature Multiplexer,thermistor Multiplexer- same multiplexer for both(lines 1-4 for thermistor,line 0 for temperature sensor)*/ 
 
 
diff -r e91ee0e99213 -r bbddd1763652 beacon.cpp
--- a/beacon.cpp	Tue Apr 07 16:11:54 2015 +0000
+++ b/beacon.cpp	Tue Apr 07 18:10:19 2015 +0000
@@ -17,9 +17,12 @@
 //set all values as FF for checking on spectrum analyzer
 #include "beacon.h"
 #include "HK.h"
+#include "pin_config.h"
 Serial chavan(USBTX, USBRX);           // tx, rx
-SPI spi(PIN2,PIN1,PIN3);               // mosi, miso, sclk
+//SPI spi(PIN2,PIN1,PIN3);               // mosi, miso, sclk
 DigitalOut cs_bar(PIN6);                 //slave select or chip select
+SPI spi(PTD6,PTD7,PTD5);               // mosi, miso, sclk
+//DigitalOut cs_bar(PTC11);              //slave select or chip select
 //InterruptIn button(p9);
 //#define TIMES 16      
 //Timer t;
diff -r e91ee0e99213 -r bbddd1763652 fault.h
--- a/fault.h	Tue Apr 07 16:11:54 2015 +0000
+++ b/fault.h	Tue Apr 07 18:10:19 2015 +0000
@@ -1,16 +1,16 @@
 #include "mbed.h"
 #include "pin_config.h"
 
-#define FAULT0 PIN31
+#define FAULT0 PIN31      //  CHARGEBAR
 #define FAULT1 PIN42      //  FAULTBAR
 #define FAULT2 PIN40      //  3V3APGOOD 
 #define FAULT3 PIN39      //  3V3BPGOOD                         
 #define FAULT4  PIN41     //  3V3CPGOOD      
-#define FAULT5  PTC23      //  3V3AOCBAR                //changed here
+#define FAULT5  PIN79      //  3V3AOCBAR 
 #define FAULT6  PIN80      //  3V3COC  
-#define FAULT7  PIN38      //  SW8FAULT   /// to pin 97 later 
-#define FAULT8  PIN83      //  SW6FAULT   
-#define FAULT9 PIN89      //  SW7FAULT  
+#define FAULT7  PIN89     //   TRZ
+#define FAULT8  PIN83      //  TRXTRY  
+#define FAULT9 PIN97      //  SW0FAULT  
 
 //CONTROL SIGNALS
 #define FAULT_CLEAR1 D8                            
diff -r e91ee0e99213 -r bbddd1763652 main.cpp
--- a/main.cpp	Tue Apr 07 16:11:54 2015 +0000
+++ b/main.cpp	Tue Apr 07 18:10:19 2015 +0000
@@ -26,7 +26,7 @@
 Thread *ptr_t_wdt;  
 
 /****************************************************************configuring I2c*********************************************************************************/
-I2CSlave slave(D14,D15);                                        //configuring pins p27, p28 as I2Cslave
+I2CSlave slave(PIN72,PIN71);                                        //configuring pins p27, p28 as I2Cslave
 
 int i2c_status=0;                                               //read or write mode for i2c 0: write2slave 1: write2master
 typedef struct                                                  //structure of i2c data