Re: Regarding TPU emulation

"qty154" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi,

First, if the TPU is in emulation mode already, you don't download the
code again. You do it once, after reset.

I first initialize RAMBAR, then download the code.
(I guess you correctly decode the S19 file to binary words!!)
After it I initialize the whole TPU in the following order:
TPUMCRx (including emulation mode)
CIER
TICR
set up interrupt handler
CFSRx (you assign your new function #$F to the channel, I guess)
CPRx
channel parameters
and at last, via HSQRx I set a host request to the channels so that
channels initialize themselves.

BR
Attila



--- In [email protected], "Sasanka" <sasanka_rama@y...> wrote:
> Hi,
>     I am stuck in running a program from DPTRAM....plz help me out..
> I am using metrowerks codewarrior and Phytec MPC555 boardI am trying 
> to develop a custom code as a part of that I have chosen UART 
> function and tried to run it from DPTRAM...here is the procedure I 
> have adopted..
> 
> 1)I have changed the function number of UART function is TPUMSKGC.ASC 
> function to $F and ran it using tpumasm and generated .S19 file...
> 
> 2)In my program I have set RAMBAR to 0xffa0 and also have set 
> emulation bit,
>    in this context I have even mentioned in my program array of 
> tpurom of size 1024 and also used command "memcpy ((void *)0x302000, 
> tpu3rom, 4096)" as a part of configuring DPTRAM.
> 
>  then i have downloaded the s19 file and tried to execute the program 
> but i receive no optput,I have actually run the same program 
> succesfully with using emulation mode...
> 
> can some one tell me where i went wrong or waht further i shall 
> require to run the program successfully,I went through all the 
> available manuals reagrding this from freescale website but couldnot 
> make out ....
> 
> regards,
> Sasanka.G.V




-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

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

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.