Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

msp430 and count of timers

Status
Not open for further replies.

Derun93

Member level 3
Joined
Nov 9, 2015
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
532
Hi,
with MSP430G2553, I will control 4 switches by using timers. TimerA 1.0 counts and TA1.1 can determine the period for switch1. TA0.0 counts TA0.1 can determine the period for switch2. What can ı do for switch3 and switch4. All duty cyles and frequencies are the same for each switch But no switch are opened at the same time. for example, the of the switches are 1MHz and duty cycle %80. this switch is opened and closed 50 times then stopped. I check my control algorithm then another switch or the same switch can cycle again but do not forget no 2 switch work at the same time.
Is there something I can do for increasing count of timers ?
Thank you.
 
Last edited:

Hi Derun93,

if there is a common minimum time interval for all four switches you can use this to create an S/W routine to generate additional counter to define the turn on/off point of each switch.

Enjoy your design work!
 

Hi,

But no switch are opened at the same time
Then you could use an external multiplexer..

Klaus
 

Hello!

There are many things to be better explained.
1. What kind of switch is it? Is this device external to MSP430? If yes, how tis it controlled? By one bit
(GPIO)? By SPI? etc...
2. If you provide a timing chart describing exactly what you want to do, it would be quite easier to reply.
3. There are expressions that need to be better explained, due to the inherent inaccuracy of language.
Example: Is there something I can do for increasing count of timers ?
What do you mean?
a: count of timers means the number of timers to be used (for example 2 timers, TIMERA0 and TIMERA1).
b: count of timers means the number up to which each timer can count. In this case if would mean that
a 16 bit timer is not enough because it counts only up to 65535 and you would like to extend to higher
counts.

Dora.
 

Thank you Klaust, multiplexer is easy and clever solution. The switches are mosfets. I am using timer modules to control them. Frequency of this switches 6KHz duty cycle %53. I meant number of timers, sorry for my fault. As I told you , ı choose one switch and make 50 cycles with that period. Then I can choose same switch or another switch.
 

Hello!

So you have a MSP430 board, and then FET transistors that you can command with [0~3V] signals?
Next: there is still no diagram, so this is pure speculation, but if you want just to send pulse sequences
to one of your 4 FETs at a time, then you don't need a multiplexer, you just select the pin you want to
send the pulses to.

Dora.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top