Charly,
Use masm to assemble DIO, drop it into emulation RAM and away you go.
You could use PTA as long as the signal stays in the asserted state for
long enough to generate an interrupt. You could use NITC with a MAX_COUNT of 1.
Tie your input to a PORTE or PORTF bit?
My real answer would be the DIO in emulation RAM. Using the emulation RAM
is a nice tool to have in your toolbox. If all of your functions are
downloaded, you don't have to care about which mask you are using, and
reverse engineering the code becomes harder as someone would have to
disassemble your microcode.
Andrei
At 04:58 PM 8/28/2002 +0200, you wrote:
>What is the best function to choose if I want to use a TPU (Mask Set G)
>channel to capture a state (discrete input).
>
>Charly
-------
Andrei Chichak #200 10835-120 Street
Senior Software Developer Edmonton, Alberta
Pulmonox Medical Inc. Canada
T5H 3P9
(W) (780) 451-3660
(F) (780) 452-0169Message
Re: [68300] Discrete Input on TPU
2002-08-28 by Andrei Chichak
Attachments
- No local attachments were found for this message.