Yahoo Groups archive

68300

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

Message

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

Attachments

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.