TPU3 ROM Functions
MPC561/MPC563 Reference Manual, Rev. 1.2
Freescale Semiconductor
D-51
D.19
Read/Write Timers and Pin TPU3 Function (RWTPIN)
The RWTPIN Bank 1 TPU3 function enables the RCPU to read, via locations in PRAM, both the TCR1
and TCR2 timer counters, and than selectively load TCR1 or TCR2 with a RCPU-supplied value contained
in PRAM. The function also allows control of the pin state and direction of the RWTPIN channel.
A pin-state parameter is maintained in PRAM and is updated upon every service request. It can contain a
value of the current pin state whether the pin is programmed as an input or output.
The function also receives links. Upon receipt, it will read the two TCRs into PRAM, updating the
pin-state parameter and generating a maskable interrupt request to the RCPU.
The RCPU can control the channel pin, the TCRs, or both. To control the channel pin only, the ‘read TCR’
option is used and the values returned ignored. Because this function controls the TCRs without affecting
the channel pin, it can run on a TPU3 channel whose pin is controlled by a function running on another
channel (for example, a slave stepper-motor channel). See Freescale TPU Progamming Note
Using The
TPU Function Library And TPU Emulation Mode, (TPUPN00/D).
shows all of the host interface areas for the PTA function.
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...