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

Discussion Groups

Discussion Groups | Freescale DSPs | Timer input as general purpose input ?

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

  

Post a new Thread

RE: Timer input as general purpose input ? - Victor Miramontes - Oct 15 16:51:00 2002



Rick,
I use the timer channel for inputs and outputs to simulate an I2C
bus. It works very well for me.

Here is some sample code you can look at.

Timer Channel B0:
Set as output: ( this changes the output polarity as well as configures for
an output )
{
periphMemWrite(0x0001, &ArchIO.TimerB.Channel0.StatusControlReg); // Set as
output and = 0.
periphMemWrite(0x0003, &ArchIO.TimerB.Channel0.StatusControlReg); // Set as
output and = 1.
}

Timer channel B1:
Set as input: ( you need to select the secondary count source as the input
you will read )
{
periphMemWrite(0x0080, &ArchIO.TimerB.Channel1.ControlReg); // config for
input read TB1
}

Read input (recall that you need to have the selected input to read from,
otherwise it will default to pin 0)
{
bool status;
status = (periphMemRead(&ArchIO.TimerB.Channel1.StatusControlReg) & 0x0100);
} -----Original Message-----
From: Richard Kis [mailto:]
Sent: Wednesday, October 16, 2002 7:50 AM
To:
Subject: [motoroladsp] Timer input as general purpose input ? Hi,

Please do somebody know if (or how if yes) it is possible to use
DSP56807 timer inputs/outputs (TA0..TA3, TB0..TB3, TC0..TC3, TD0..TD3)
as a general purpose inputs i.e read a status of this pin?

Thanks

Richard Yahoo! Groups Sponsor
ADVERTISEMENT

_____________________________________
/groups.php3 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





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

Timer input as general purpose input ? - Richard Kis - Oct 16 14:49:00 2002

Hi,

Please do somebody know if (or how if yes) it is possible to use
DSP56807 timer inputs/outputs (TA0..TA3, TB0..TB3, TC0..TC3, TD0..TD3)
as a general purpose inputs i.e read a status of this pin?

Thanks

Richard





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

RE: Timer input as general purpose input ? - Johnson, Jerry - Oct 16 15:06:00 2002

Sure, just disable the output( bit 0 of SCR), and observe the value at bit 8 of the appropriate SCR (Status and Control register).  I am not using the SDK timer functions, I examine those pins directly with periph.h functions.  The timer does not need to be counting to observe the input.
 
Since A0-3 and B0-3 are shared with the decoder0-1 modules, in some processors, you can also get those inputs with the monitor register of the decoder module(s).
 
Jerry.
-----Original Message-----
From: Richard Kis [mailto:r...@saeautom.sk]
Sent: Wednesday, October 16, 2002 9:50 AM
To: m...@yahoogroups.com
Subject: [motoroladsp] Timer input as general purpose input ?

Hi,

Please do somebody know if (or how if yes) it is possible to use
DSP56807 timer inputs/outputs (TA0..TA3, TB0..TB3, TC0..TC3, TD0..TD3)
as a general purpose inputs i.e read a status of this pin?

Thanks

Richard



_____________________________________
/groups.php3


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




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

RE: Timer input as general purpose input ? - Art Johnson - Oct 22 14:45:00 2002

Richard, please see my message "RE: [motoroladsp] Timer Pins, more I/O" that was
posted to this discussion group on September 25, 2002, at about 6:44am. It has
information about how we use the Quad Timer pins as general purpose inputs and
outputs.

Regards,

Art Johnson
Senior Systems Analyst
PMC Prime Mover Controls Inc.
3600 Gilmore Way
Burnaby, B.C., Canada
V5G 4R8
Phone: 604 433-4644
FAX: 604 433-5570
Email:
http://www.pmc-controls.com
-----Original Message-----
From: Richard Kis [mailto:]
Sent: Wednesday, October 16, 2002 7:50 AM
To:
Subject: [motoroladsp] Timer input as general purpose input ? Hi,

Please do somebody know if (or how if yes) it is possible to use
DSP56807 timer inputs/outputs (TA0..TA3, TB0..TB3, TC0..TC3, TD0..TD3)
as a general purpose inputs i.e read a status of this pin?

Thanks

Richard
_____________________________________
/groups.php3




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