Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by omerdf

  1. i checked it again and shorted it to the ground and still no luck
  2. Hello ,I'm using MSP430F5131 Microcontroller of TI.I also use a MSP-FET Emulator in order to program that device.i have written a code in Code Composer Studio (Defined the properties of CCS's project to the devices im using).I compiled the program and no errors has found.Then i connected the MSP-FET to the board according to the datasheet SLA138H , page 26 . (The board supplies the 3.3V so i connected it to pin 4 in the JTAG connector of the MSP-FET). I didn't connect the TEST/VPP and didnt connect the the resistor R2 330Ohms as instructed in that datasheet coz i dont need to use the fuse blow
  3. The problem is related to the regulator that supplies only 0.7V and it supposed to supply at least 1.8V...now im checking if the problem is that specific device or another device that connected to the 3.3V rail.
  4. Actually the whole PCB gets hot , i think you are right about the short circuit - i guess one of the regulator is shorted
  5. In the msp430 family datasheet they mention a unused pins , they say that if AVcc and AVss are not in use they should be connected to DVcc and DVss - i think they get their supply from the digital pins. I found another problem though , i use a regulator of 3.3V which supplies my msp430 , although i noticed that this regulator supplies only 0.7V and i know that the MSP430 got to have at least 1.8V - so maybe thats the problem.
  6. 1) I have connected : - RST/NMI/SBWTDIO of the MCU to TDO/TDI pin 1 of the MSP-FET. - TEST/SBWTCK of the MCU to TCK pin 7 of the MSP-FET. - a 3.3V that is supplied from a regulator in the PCB to VCC_TOOL pin 2 of the MSP-FET. - GND of the PCB to GND pin 9 of the MSP-FET. 2) In the IAR - Options - FET Debugger , i have unchecked the Target VCC. so you say that AVcc and AVss must be connected even if i dont use any analog options at all? it just allows the MSP-FET to download the program? 3) Yes i have specified the exact MSP430 5131. 4) Yes i have designed the board ac
  7. Hello, I'm using MSP430F5131 and trying to program it by IAR Embedded Workbench while using the MSP-FET debugger. A short background of the PCB: After i compiled the code in IAR with not errors found , i connected the MSP-FET to the MSP430 in a Spi-Bi-Wire connection according to the datasheet. The MSP430 is placed in a PCB which includes 12V input voltage and 2 regulators of 5V and 3.3V . The MSP430 I/O's are connected according to the datasheet (including external pullup resistors and capacitors) along with the Spi-Bi-Wire connections. I energized the PCB with a 12V supply voltage
  8. Hello , I am using MSP430F5131, IAR Workbench compiler and i have purchased MSP-FET. i have successfully compiled my code in IAR Workbench , although when i try to download the program through the MSP-FET using the IAR Workbench (i have clicked on download and debbug and it has started to initialize the device) i encountered this error : Fatal error: Could not find device (or device not supported) Session aborted! Thanks in advance
  9. Before i program my MSP430 by MSP-FET. Could you take a look at my code again (after it has been compiled successfully) , according to the requirements i have mentioned above: #include "msp430.h" #include "intrinsics.h" // defining flags as volatile(coz we use these variables in the main and in the ISR as well): volatile unsigned int timerCount = 0; //defines the millisecond counter volatile unsigned int normalPulse1=0; //defines another flag to indicates when 1 second has passed for normal pulse1 volatile unsigned int badPulse1=0; //defines another flag to indicates when 1 second has pa
  10. Alright ill prepare my PCB and try to program the MSP430. ill let you know if its generate the 1pps.
  11. Alright so ill start with the hardware setup. I've already purchased the MSP-FET and i have the PCB ready . so according to the wiring schematic that attached to this post , i would like to download the program i have written into the MSP430 micro controller, how should i connect the MSP-FET to the PCB (or directly to the micro controller) ? thanks. PCB electrical wiring.pdf
  12. alright it worked well thanks . I have compiled the code using IAR and no errors have found. now i would like to simulate the code and see a graph that show me the 1pps . how can i do that using IAR? how can i force inputs and outputs? thanks.
  13. Why can't i just do this? : (this is the error i get after compiling the code in IAR embedded workbench: Error[Pe101]: "CBCTL0_L" has already been declared in the current scope (at line 136 of "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\430\inc\io430f5131.h") C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\430\inc\msp430f5131.h 205 ) #pragma vector = TIMER0_D0_VECTOR //GENERATES 1PPS EVERY 1s for normal pulse __interrupt void TIMER0_D0 (void){ //NORMAL PULSE 1 AND 2: if (++timerCount > 500) { // c
  14. thanks . ok ill explain a little : The system includes a toggle switch that can switch between 3 modes : ON / BAD / OFF of pulse : 1) when the toggle switch is in ON mode the micro controller will generate a normal 1 pulse per second 1(1Hz) with a duty cycle of 250ms through P2.4 . 2) when the toggle switch is in BAD mode the micro controller will generate a bad pulse which means (0.5Hz) 1 pulse per 2 seconds with a duty cycle of 250ms through P2.4. 3) OFF supposed to shut down the pulse I want both pulses to be accurate while using the external clock of 12.8MHz. th
  15. ok thanks , P2.4 is my 1pps ( or 2 second signal) output , so i enabled an interupt on this output. i know that toggling an output means that you double the time . like if i want a 1 pps and i toggle P2.4 output that means i get 2 seconds pulse per second. thats why i need to count half of the time ( 1000/2 = 500). am i right? I heard that i cant use interupts on TD0.0 output in my kind of MSP430. is that true? I also need to implement the duty cycle that is matched to 1pps ( i think its 250ms) , how do i implement it as well? This is the code : #include <msp430.h> #include
  16. What happens if i have two ISRs : 1) The first one is for normal 1PPS (1Hz , 1 second) 2) The second one is for bad pulse ( 0.5Hz , 2 seconds). do i have to define another volatile variable for the second one as well? this is the code i have been written according to what i understood from your explanation: i defined the clock timer d0.0 and an external oscillator of 12.8Mhz . the 2 ISRs are at the bottom of the code, the first ISR is for a normal 1pps (normal pulse) and the second one is for bad pulse 0.5Hz - 2 seconds (bad pulse) In the system i got 2 1pps output pulse 1 and pu
  17. Thanks for the reply . The ISR function should be out of the mian function , so if i want to generate that 1pps (after 1000 counts) in a condition: if ((P2IN & BIT2)==0) that is located inside the main function , how do i do that? how do make that connection so if the expression above is true it generates the ISR if its false it won't generate the ISR and there will be no pulse? and i have like 4 different conditions that needs to generate the pulse , how do i make that connection from the ISR to every condition inside the main function? This is the code that i have written according to
  18. Thanks for the reply , is there another way of doing this within the main function without using interupts? like using TDIFG only? is there a document that sums up all the code functions? because i have encountered the code : that code uses timer A and it looks easier using flags instead of interupts. #include <io430x11x1.h> // Specific device// Pins for LEDs#define LED1 BIT3#define LED2 BIT4void main (void){WDTCTL = WDTPW|WDTHOLD; // Stop watchdog timerP2OUT =
  19. Hello , I'm new to this field of microcontroller and i need you quick help with a new project of mine. I'm using MSP430F5131. I will explain a little about the project : My main goal is to generate a 1 pulse per second using a 12.8MHz external oscillator. I already have a printed PCB for that project which means i got to understand what the previous designer had done and implement it into my CCS program in order to program my micro controller. i am still new to this whole microcontroller world and im eager to know more , although im short in time. I have attached an electrical wiring of t
  • Create New...