ElevenToes 0 Posted July 17, 2015 Share Posted July 17, 2015 Hello, am relatively new to the MSP430 and my coding skills aren't that good yet, am using c on IAR. But am trying to produce this signal:http://www.modeltrainbuilder.com/DCC-operation.html . i kinda get the concept, but implementing it is a problem. I know you can set timer0 to a faster frequency, say 35KHz so that a period of 28us and then timer1 to output the signal. So for example if a bit is '1' Timer1 goes high for 2 timer0 periods and then low the same, and when a bit is '0' timer1 stays high for 4 timer0 periods and then low the same amount. An example code or anything really will be very helpful. Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.