ts-7000
[Top] [All Lists]

[ts-7000] Re: PWM (EGPIO14 - PWMO1) on EP9302 on a TS-7350 - how to use?

To:
Subject: [ts-7000] Re: PWM (EGPIO14 - PWMO1) on EP9302 on a TS-7350 - how to use?
From: "charliem_1216" <>
Date: Fri, 20 Mar 2009 19:54:10 -0000
Hi --

--- In  "mikalot2k3" <> wrote:
>
> Hello fellows,
> 
> I want pwm without external circuitry to the TS board.
> 
> I have went to the trouble of connecting pin163 (egpio14) of the ep9302 
> processor to an external pin (like a DIO), and was able to use it to light an 
> LED by messing with addresses 0x80840004 & 0x80840014.
> That works.

OK

> 
> However, when I want to use the pin as egpio (enhanced pin or "pwmo1" from 
> manual), by manipulating addresses 0x80910000 / 0x80910004 / 0x80910008 or 
> 0x80910020 / 0x80910024 / 0x80910028, nothing works.

What did you 'manipulate' here?  AFAIK, the sequence for pm0 is:
* Stop PWM - write 0x0 to 0x8091_0008
* Write your term count to 0x8091_0000
* Write your duty cycle to 0x8091_0004
* Start PWM - write 0x0001 to 0x8091_0008

See ch 24 in the ep93xx manual for more details.  For pwm1 (which appears to be 
EGPIO14) you would want to use your second set of registers (ie, offset by 
0x0020).  Is pwm0 output even brought out from the ep9302 chip by TS?  I can't 
see it.

> 
> It seems to me I have to switch the pin from regular GPIO mode into EGPIO 
> mode, but the ep9302 manual doesn't specify how. Nor do the ts72xx or ts73xx 
> manuals.

I don't think so.  EGPIO means only that pin can use interrupts.  Some ports 
are GPIO and some ports are EGPIO (A, B & F, I think).  You may have to switch 
the GPIO pin to an output (Chapter 28).  

You do have to change the DeviceCfg register to turn on PWM output though: 
DeviceCfg[9] "PonG".  I presume you turn this bit on to enable PWM on GPIO.  
DeviceCfg is software locked.

regards, ........ Charlie

> 
> Well, I hope I've been clear in my post, let me know if you know how to 
> resolve this.
> 
> Thanks,
> Mikalot.
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<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