ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: PWM (Uploaded file ts7500_pwm) [1 Attachment]

To:
Subject: Re: [ts-7000] Re: PWM (Uploaded file ts7500_pwm) [1 Attachment]
From: Ferrug <>
Date: Tue, 23 Nov 2010 23:45:49 -0200
[Attachment(s) from Ferrug included below]

So
Thank you for explanations.
Get it to work nice but I'm struggling to increase the resolution to 2000. My duty is only 50% even if I send the value 2000. Already changed all records for 11-bit anyway.
but changing the subject, I made a move to take advantage of the outputs that might be useful for you too.
I used the first bit of register 6A directional bit as if it is 1 then the remainder is stored in the register of the PWM parameters, but is usually stored as control of the DIO.
Still does not work perfectly, because reading does not work right.
The code is attached. I hope it helps you too.

regards
Fabio


2010/11/19 David Preza H <>
 

Fabio,
1) I didn't erased at all the older pads, I just added some new, and assigned their pins the ones of the older pads. But if you want to generate more than 1 pwm, I already replaced 7 pins, just look for them. One is seleccion_pad (I guess) and the other one is the bus pwm (which has 6 outputs already placed).
2) I used the 75Mhz frequency clock because I needed a 75khz and I decided to have 1000 resolution. However, you can change the code so the 100Mhz clock drives the pwm, and you could have a faster frequency.

Hope it helps.
Regards,
Enrique




--
"Dê-me uma alavanca e um bom ponto de apoio que moverei o mundo." Archimedes

Attachment(s) from Ferrug

1 of 1 File(s)


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU