Re: TPU HELP Please!
"trailrunner23" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
The UART function works the same on the TPU3 as on older versions of TPU. Like Scott, I have used this function to implement serial ports on the 68332, and have done a system with 10 serial ports on the 555 (two via SCI and eight via TPU). Just configure two TPU channels to use the UART function, one as TX and one as RX. The function is double buffered and supports interrupts, so the result is a full- duplex channel tha can be used almost identically to the way SCI channels are used. There is no "bit-banging" required. Just read (RX) or write (TX) the data buffer as required. There is a set of flags just like for a real UART. It's all explained in the app note referenced by Chris. Joe Pasquariello --- In [email protected], "richardtcorey" <Richard.Corey@c...> wrote: > --- In [email protected], Scott Newell <digital.pickle@g...> > wrote: > > At 01:31 PM 9/3/2005, Corey, Richard wrote: > > > > >For clarification: WHY would connect a serial TX line to a TPU? > Even more, > > >why connect an RX line? Are you practicing RS-232 bit-banging for > the pure > > >joy of it, or just to learn how to use the TPU? Homework > assignment? I had > > >to do that once, using 2 GPIO pins on a 6809, and 1-2 timers, to > emulate a > > >UART. > > > > > > >> 1: Is it even possible to use the TPU in order to read RS232 > data > > >being sent through those 2 channels? << > > > > > >Yes, but only with considerable difficulty. > > > > Huh? Really? I run multiple UARTs on the 68332 TPU, and it wasn't > > difficult at all. Works great. Highly recommended. Is the '555 > TPU3 that > > much harder to deal with? > > > > On the '555, it looks like TPU bank 0 function code 0x0B is the > > ticket. Here's the app note on actually using the TPU UART > function: > > > > > http://www.freescale.com/files/microcontrollers/doc/app_note/AN2371.pd > f > > > > > > -- > > newell > > Hi Scott > > You know a lot more about that than I do. Doing it "by hand" with a > 6809 was very clunky and used a lot of CPU time back in the 1980s > (the 6809 was probably a slow chip by todays standards). I would > expect a 68332 TPU to be more powerful than simple 6809 timers. > > I haven't gotten into On MPC565 TPU enough to know how hard it is to > set up. The manual seems clear compared to many. > > Thanks for the app note, maybe it will help Chris, too. > > Rick Corey ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/dN_tlB/TM --------------------------------------------------------------------~-> ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MPC500/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/