RE: Queued SCI with Interrupts on MPC555
"David Eicher" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Alfonso, Yep, I've studied Chap 14.9 extensively. I'm using the quickstart package so appconfig.h has the necessary config items in it, and these get loaded into the control registers by QSCI_INIT command. That part seems to be working okay. I can load the queue with 16 bytes and kick off a transmission by setting QTE and TE, the 16 bytes go out. Then I get a QBHE interrupt. I clear this interrupt in the ISR, set size back to 16, load 16 bytes in the queue again, and after that I get unreliable results. First of all, nothing will go out from this ISR unless I set QTE and TE again (the need to do that is NOT mentioned anywhere in the documentation). I get intermittent results now, sometimes it transmits another 16 bytes from the ISR, sometimes not. I can't seem to get a combination of code that works reliably. Suggestions? Thanks much for your help, Dave _____ From: [email protected] [mailto:[email protected]] On Behalf Of Alfonso Gambuzza Sent: Thursday, December 08, 2005 1:42 AM To: [email protected] Subject: AW: [MPC500] Queued SCI with Interrupts on MPC555 Hallo David, Two years ago I implemented Queued SCI which musst be implemented with interrupts. The code works well with the MPC555 and MPC565 and we are using it right now. The code is based on the description in the users-guide for MPC555 Cap. 14.9. In the documentation you will find some flowcharts that helps but... it is not so simple to let it run... since (as I remember) you have to set some registers in the *.cfg or in the startupcode that are not described in the chapter. Bye Alfonso Gambuzza David Eicher wrote: > Hello, > > > > Anyone have any experience with the subject matter? I've followed the > examples in the demo code in the quickstart package, the top half and > bottom half interrupts/flags just don't seem to work they way they > suggest. The users manual for MPC555 doesn't give a lot of detail, but > I have not succeeded in transmitting a string of bytes using > interrupts yet. Using a polling method I was able to get transmit > working using the transmission queue. > > > > Thanks for any help you might be able to offer, > > > > Dave > > > > > > [Non-text portions of this message have been removed] > > > > ----------------------------------------------------------- > To learn more about Freescale Microcontrollers, please visit > http://www.freescale.com/mcu > > > > > > > SPONSORED LINKS > Freescale semiconductor inc > <http://groups.yahoo.com/gads?t=ms <http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Freescal > &k=Freescale+semiconductor+inc&w1=Freescal e+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+micr oprocessor&c=4&s=106&.sig=K2HGv-zFlv5OYUv_QxIq_Q> > Microcontrollers > <http://groups.yahoo.com/gads?t=ms <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semicondu > &k=Microcontrollers&w1=Freescale+semicondu ctor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor& c=4&s=106&.sig=SYHwNJjjGQXRvtt_GybT4g> > Pic microcontrollers > <http://groups.yahoo.com/gads?t=ms <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale> &k=Pic+microcontrollers&w1=Freescale > +semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051 > +microprocessor&c=4&s=106&.sig=umVbbnUwsPzEzKKD_pQfUw> > > 8051 microprocessor > <http://groups.yahoo.com/gads?t=ms <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Freescale+> &k=8051+microprocessor&w1=Freescale+ > semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+ > microprocessor&c=4&s=106&.sig=NO-nSKjHoAlh9XtZ8LB1_A> > > > > ---------------------------------------------------------------------- > -- > YAHOO! GROUPS LINKS > > * Visit your group "MPC500 > <http://groups.yahoo.com/group/MPC500>" on the web. > > * To unsubscribe from this group, send an email to: > [email protected] > <mailto:[email protected]?subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ---------------------------------------------------------------------- > -- > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/dN_tlB/TM --------------------------------------------------------------------~-> ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu SPONSORED LINKS Freescale <http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Freescal e+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+micr oprocessor&c=4&s=106&.sig=K2HGv-zFlv5OYUv_QxIq_Q> semiconductor inc Microcontrollers <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semicondu ctor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor& c=4&s=106&.sig=SYHwNJjjGQXRvtt_GybT4g> Pic <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+semic onductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microproces sor&c=4&s=106&.sig=umVbbnUwsPzEzKKD_pQfUw> microcontrollers 8051 <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Freescale+semico nductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocess or&c=4&s=106&.sig=NO-nSKjHoAlh9XtZ8LB1_A> microprocessor _____ YAHOO! GROUPS LINKS * Visit your group "MPC500 <http://groups.yahoo.com/group/MPC500> " on the web. * To unsubscribe from this group, send an email to: [email protected] <mailto:[email protected]?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. _____ [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/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/