On Sun, 20 Jan 2008, Anders Wallin wrote:

> Date: Sun, 20 Jan 2008 10:43:07 +0200
> From: Anders Wallin <[EMAIL PROTECTED]>
> Reply-To: "Enhanced Machine Controller (EMC)"
>     <emc-users@lists.sourceforge.net>
> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
> Subject: Re: [Emc-users] Analog to PWM or pulse-train ?
> 
>> A simple Voltage to frequency converter would probably do, for example the
>> AD654 in 8 pin DIP is probably quite a better than required. (500KHz max
>> frequency, .03% linearity)
>> I would count the frequency with one of the spare encoder counters (set up 
>> for
>> up/down mode) and use count difference accumulated over some number of sample
>> periods (to average out the sample period jitter)
>
> I am using the Hostmot-4 config which can provide 50 kHz PWM output.
> Can up/down encoder counter mode be specified from the EMC driver? Or
> are some VHDL changes needed?
> I assume I would connect the AD654 to an encoder A-channel and just
> ground the B-channel ?
>
> AW
>


Yes, its in all HOSTMOT configurations but you must somehow set bit 10 of the 
CCR to enable UP/DOWN = 1X mode. In 1X mode A = Clk and B = Dir. B high means 
count.


>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to