Hi,
I was always referring to "EP9301_User_Guide.pdf" (2004.02) which does
not specify any PWM stuff
(register range is marked as reserved).
PWM IP is described in "EP93xx_Users_Guide_UM1.pdf" (2007.09).
Maybe PWM is not included in early revision of EP9301/02 ?
I should check that.. EGPIO[14] is port B bit 6 (which is DIO_6 on
TS-72xx header).
matt
charliem_1216 wrote:
>
> Hi --
>
> --- In <ts-7000%40yahoogroups.com>,
> "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/
|