Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Ads

Discussion Groups

Discussion Groups | Freescale DSPs | Enabling HI32 56301 port as GPIO ...

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

Enabling HI32 56301 port as GPIO ... - Tigli Filippo - Jan 23 7:24:00 2004



HI!
I'm working on 56309 prototype, but I need ADM56301
for testing...
I cannot move port B HI32 as GPIO..
On 56309 only these settings are needed to have all
port B pins as GPIO

movep #$00ffff,x:M_HCR ; PORT B control reg
movep #$00ffbf,x:M_HDDR ; PORT B DATA direction
movep #$000001,x:M_HPCR ; PORT B all GPIO

on 56301 only these registers should be set

movep #$00ffbf,x:M_DIRH ; Host Port GPIO direct.
movep #$4FFFFF,x:M_DCTR ; 56301 Host control reg

When I attempt to move GPIO with usual :

bchg #1,x:M_DATH ; Bport 56301 !

Dsp runs fine, but never happens over GPIO pins..

Do you know if another settings are required to move
GPIO over 56301 ?

Thank you in advance!

Filippo

=====
-- F.Tigli SCPOP author ---

Visit our Web site
www.scpop.de

--------------------------- __________________________________






(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

Re: Enabling HI32 56301 port as GPIO ... - Robert Snyder - Jan 26 13:49:00 2004

--- In , Tigli Filippo <f_tigli@y...>
wrote:
> HI!
> I'm working on 56309 prototype, but I need ADM56301
> for testing...
> I cannot move port B HI32 as GPIO..
> On 56309 only these settings are needed to have all
> port B pins as GPIO
>
> movep #$00ffff,x:M_HCR ; PORT B control reg
> movep #$00ffbf,x:M_HDDR ; PORT B DATA direction
> movep #$000001,x:M_HPCR ; PORT B all GPIO
>
> on 56301 only these registers should be set
>
> movep #$00ffbf,x:M_DIRH ; Host Port GPIO direct.
> movep #$4FFFFF,x:M_DCTR ; 56301 Host control reg
>
> When I attempt to move GPIO with usual :
>
> bchg #1,x:M_DATH ; Bport 56301 !
>
> Dsp runs fine, but never happens over GPIO pins..
>
> Do you know if another settings are required to move
> GPIO over 56301 ?
>
> Thank you in advance!
>
> Filippo
>
> =====
> -- F.Tigli SCPOP author ---
>
> Visit our Web site
> www.scpop.de
>
> ---------------------------

Per the user manual:

"The HDSM, HRWP, HTAP, HDRP, HRSP, HIRH, and HIRD
bits affect the host port pins directly. To assure proper
operation, these pins can be changed only when DSR[HACT]
= 0. The HM[2–0] bits must not be changed together with
these bits (that is, in the same core write). "

Since these bits are 0 at reset, either leave them zero:

movep #$400000,x:M_DCTR ; 56301 Host control reg

Or set them to 1 then set the HM[2-0] bits:

movep #$0FFFFF,x:M_DCTR ; leave HM[2-0] at zero
movep #$4FFFFF,x:M_DCTR ; now change HM[2-0] to GPIO mode.

The DSR[HACT] test would only be needed if you were using the HI32 in
some other mode then wanted to switch to GPIO mode. Since you're
probably going to GPIO mode directly from reset, it's not needed.

Good luck.

Robert Snyder
email disconnected due to spam overload




(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )