RE: Queued SCI with Interrupts on MPC555

"David Eicher" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi Allan,

 

Okay, I see it. I was mis-interpretting what that meant. I was thinking my
code would clear QTE. But now I see it is marked as being cleared by
hardware. Also, I thought the flow diagram was showing a complete transfer
of a transmit message. But it is not, It is showing the hw/sw required to
initiate transmit, and then ONE pass through the interrupt service routine,
so if you need more than one pass, you have to mentally re-enter this flow
diagram somewhere and start a transmit again. I was not picking up on that.

 

Appreciate your help,

 

Dave

 

 

  _____  

From: [email protected] [mailto:[email protected]] On Behalf Of
Dobbin Allan-r11834
Sent: Thursday, December 08, 2005 8:48 AM
To: [email protected]
Subject: RE: [MPC500] Queued SCI with Interrupts on MPC555

 

I sort of said this in my larger mail, but just want to point out the
documentation DOES say that QTE gets cleared, so it is necessary to set
it again each time. It is not spelled out in the register description,
but it is shown at the bottom of the 'Queue Transmit Flow' diagram.
There should be no need to set TE again.

Allan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of David Eicher
Sent: Thursday, December 08, 2005 8:46 AM
To: [email protected]
Subject: RE: [MPC500] Queued SCI with Interrupts on MPC555


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
<http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Free>
&k=Freescale+semiconductor+inc&w1=Free
scal
> &k=Freescale+semiconductor+inc&w1=Freescal
e+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+
e+semiconductor+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
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semic>
&k=Microcontrollers&w1=Freescale+semic
ondu
> &k=Microcontrollers&w1=Freescale+semicondu
ctor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microproces
ctor+sor&
c=4&s=106&.sig=SYHwNJjjGQXRvtt_GybT4g>
>       Pic microcontrollers
> <http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale>
&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
<http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Freescale+>
&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
<http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Free>
&k=Freescale+semiconductor+inc&w1=Free
scal
e+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+
e+semiconductor+micr
oprocessor&c=4&s=106&.sig=K2HGv-zFlv5OYUv_QxIq_Q>  semiconductor inc 

Microcontrollers
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semic>
&k=Microcontrollers&w1=Freescale+semic
ondu
ctor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microproces
ctor+sor&
c=4&s=106&.sig=SYHwNJjjGQXRvtt_GybT4g>  

Pic
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+s>
&k=Pic+microcontrollers&w1=Freescale+s
emic
onductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+micropr
onductor+oces
sor&c=4&s=106&.sig=umVbbnUwsPzEzKKD_pQfUw>  microcontrollers 


8051
<http://groups.yahoo.com/gads?t=ms
<http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Freescale+se>
&k=8051+microprocessor&w1=Freescale+se
mico
nductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+micropro
nductor+cess
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]




-----------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.