Yahoo Groups archive

68300

Index last updated: 2026-04-29 00:01 UTC

Thread

TPU as a input Mask set G

TPU as a input Mask set G

2005-12-09 by Ivo Strebel

Hello 68300 community,

hope anybody can help me solving following problem:

CPU: 68332 mask set G

Problem:
I have to use tpu channel 11 as an input. Unfortunately Mask set G doesn't
provide the DIO function. Because of the application it is not possible to 
trigger on the edge. I have to read out the state.

What I tried:
I tried to make it work with the PTA function. If the input is high, the channel 
counts up. I read out the LAST_TIME register to check if the channel
counts or not - I tried the same with the accum register-. But sometimes it
doesn't count even if it should. Probably a timing problem.
I'm not sure of the frequency of the two registers, because the result
is 32Bit. 

LAST_TIME (16Bit)  *-> Result 32Bit   ?!!

Or do you have any other ideas how to use the tpu channel as an input?

Freundliche Gruesse aus der kalten Schweiz

Ivo 

-----------------------------------------------------
Ivo Strebel
SCHILLER AG, Altgasse 68, CH-6341 Baar
Phone +41 41 766 42 42 / Fax +41 41 761 08 80
Direct Phone / Voice Box +41 41 766 43 55
Ivo.Strebel@...  / www.schiller.ch

Re: [68300] TPU as a input Mask set G

2005-12-09 by Zoltán Kócsi

> Or do you have any other ideas how to use the tpu channel as an input?
> 
> Freundliche Gruesse aus der kalten Schweiz
> 
> Ivo 

Compile your own TPU function set. It sounds scary but actually it is
fairly easy. You can mix and match any functions from sets A and G
(well, as long as the end fits in the TPU RAM) or you can roll your
specialised functions, if you are so inclined. Your code will be
a bit larger (because you will have the TPU code in it) and you lose
the TPU RAM as RAM, but apart from that it works as the original mask.

You can use the free (as in beer) Motorola TPU assembler if you are
running DOS or Windows or TAS, the free (as in beer and as in liberty)
TPU assembler if you run some sort of Linux or any other system that
supports gcc, bison, flex and make.

I don't know where to find the Motorola assembler. TAS is available
on http://www.bendor.com.au/TAS and you can find a lot of useful info
about the TPU on http://www.eslave.net.

The source code for the mask sets can be found somewhere on Freescale's
website, Motorola made them public a long time ago.

Best Regards,

Zoltan

Re: [68300] TPU as a input Mask set G

2005-12-09 by Scott Newell

At 04:08 AM 12/9/2005, Ivo Strebel wrote:
>Hello 68300 community,
>
>hope anybody can help me solving following problem:
>
>CPU: 68332 mask set G
>
>Problem:
>I have to use tpu channel 11 as an input. Unfortunately Mask set G doesn't
>provide the DIO function. Because of the application it is not possible to
>trigger on the edge. I have to read out the state.

I just use HALLD instead.

-- 
newell

RE: [68300] TPU as a input Mask set G

2005-12-09 by Honnold John-r37277

Hi Guys:
 
    Be sure to take a look at http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC68332&nodeId=018rH3YTLC0795.  This is the website for the MC68332.  You will need the macroassembler (http://www.freescale.com/files/microcontrollers/software_tools/assemblers/TPUMASMASM.exe) and the TPU mask functions (http://www.freescale.com/files/microcontrollers/software/app_software/microcode/TPUMSKAFW.zip and http://www.freescale.com/files/microcontrollers/software/app_software/microcode/TPUMSKGFW.zip).  Most of this should be self explanatory once you see how the function libraries are configured for mask A and mask G.  You may also want to reference http://www.freescale.com/files/microcontrollers/doc/app_note/TPUPN00.pdf since it discusses using the 68332 in emulation mode.
 
    On your original problem is it possible for you to use the NITC function.  I realize that it is more complicated than the DIO, but it may work.  Hope this helps.
 
Regards,
 
John Honnold
Freescale Semiconductor
Technical Information Center
MCU 16/32 Bit Applications Engineer
----------------------------------------------------------
This email has been classified:
( ) Freescale General Business
( ) Freescale Confidential Proprietary
( ) Freescale Internal Use Only
(x) Public
Show quoted textHide quoted text
	-----Original Message-----
	From: 68300@yahoogroups.com [mailto:68300@yahoogroups.com] On Behalf Of Zoltán Kócsi
	Sent: Friday, December 09, 2005 3:39 AM
	To: 68300@yahoogroups.com
	Subject: Re: [68300] TPU as a input Mask set G
	
	
	> Or do you have any other ideas how to use the tpu channel as an input?
	> 
	> Freundliche Gruesse aus der kalten Schweiz
	> 
	> Ivo 
	
	Compile your own TPU function set. It sounds scary but actually it is
	fairly easy. You can mix and match any functions from sets A and G
	(well, as long as the end fits in the TPU RAM) or you can roll your
	specialised functions, if you are so inclined. Your code will be
	a bit larger (because you will have the TPU code in it) and you lose
	the TPU RAM as RAM, but apart from that it works as the original mask.
	
	You can use the free (as in beer) Motorola TPU assembler if you are
	running DOS or Windows or TAS, the free (as in beer and as in liberty)
	TPU assembler if you run some sort of Linux or any other system that
	supports gcc, bison, flex and make.
	
	I don't know where to find the Motorola assembler. TAS is available
	on http://www.bendor.com.au/TAS and you can find a lot of useful info
	about the TPU on http://www.eslave.net.
	
	The source code for the mask sets can be found somewhere on Freescale's
	website, Motorola made them public a long time ago.
	
	Best Regards,
	
	Zoltan
	
	
________________________________

	YAHOO! GROUPS LINKS 


		
	*	 Visit your group "68300 <http://groups.yahoo.com/group/68300> " on the web.
		  
	*	 To unsubscribe from this group, send an email to:
		 68300-unsubscribe@yahoogroups.com <mailto:68300-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
		  
	*	 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . 


________________________________




[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.