Yahoo Groups archive

68300

Index last updated: 2026-04-29 00:01 UTC

Thread

MC68376 QSM SCI

MC68376 QSM SCI

2002-09-10 by john_gma

Hello all,

I am writing a serial driver for the QSM SCI.

My question is in regards to the interrupt handling.

There does not seem to be a separate ISR.
How do I clear the interrupts?

There are 2 flags I need to use, TDRE and TC.

The book says that the flags are cleared by:
1. reading SCSR (OK, I do that)
2. Writing to TDR (I don't always want to do this)

So, how do I acknowledge the interrupt without transmitting something?

Can I write $0000 to SCSR?

Thanks

John

Re: [68300] MC68376 QSM SCI

2002-09-10 by cwade@watlow.com

Hello John,

I have not written a comms driver for the 68376, but I have one for the
68331 which is similar.  Here you go.  Hope it helps with your questions.

Cathy
(See attached file: 68331uart.c)


                                                                                                                                       
                      "john_gma"                                                                                                       
                      <johnshaffer@mail        To:       68300@yahoogroups.com                                                         
                      .com>                    cc:                                                                                     
Show quoted textHide quoted text
                                               Subject:  [68300] MC68376 QSM SCI                                                       
                      09/10/02 10:30 AM                                                                                                
                      Please respond to                                                                                                
                      68300                                                                                                            
                                                                                                                                       
                                                                                                                                       




Hello all,

I am writing a serial driver for the QSM SCI.

My question is in regards to the interrupt handling.

There does not seem to be a separate ISR.
How do I clear the interrupts?

There are 2 flags I need to use, TDRE and TC.

The book says that the flags are cleared by:
1. reading SCSR (OK, I do that)
2. Writing to TDR (I don't always want to do this)

So, how do I acknowledge the interrupt without transmitting something?

Can I write $0000 to SCSR?

Thanks

John







---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/







[Non-text portions of this message have been removed]

Re: [68300] MC68376 QSM SCI

2002-09-10 by jeffrey.tenney@gm.com

The attachment doesn't seem to be there.  Does Yahoo strip attachments?

Or is it just my e-mail program?

Jeff





cwade@... on 09/10/2002 08:38:49 AM

Please respond to 68300@yahoogroups.com

To:    68300@yahoogroups.com
cc:
Show quoted textHide quoted text
Subject:    Re: [68300] MC68376 QSM SCI



Hello John,

I have not written a comms driver for the 68376, but I have one for the
68331 which is similar.  Here you go.  Hope it helps with your questions.

Cathy
(See attached file: 68331uart.c)



                      "john_gma"
                      <johnshaffer@mail        To:
                      68300@yahoogroups.com
                      .com>                    cc:
                                               Subject:  [68300] MC68376
                      QSM SCI
                      09/10/02 10:30 AM
                      Please respond to
                      68300






Hello all,

I am writing a serial driver for the QSM SCI.

My question is in regards to the interrupt handling.

There does not seem to be a separate ISR.
How do I clear the interrupts?

There are 2 flags I need to use, TDRE and TC.

The book says that the flags are cleared by:
1. reading SCSR (OK, I do that)
2. Writing to TDR (I don't always want to do this)

So, how do I acknowledge the interrupt without transmitting something?

Can I write $0000 to SCSR?

Thanks

John







---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/







[Non-text portions of this message have been removed]



---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Re: [68300] MC68376 QSM SCI

2002-09-10 by jeffrey.tenney@gm.com

John,

Most of the time you don't want to acknowledge the interrupt if you have
nothing to transmit.  You want to *mask* it.  Use the mask register.

Later when you put something into the transmit queue, restore the normal
mask value.  The Tx interrupt will occur immediately, and you won't need
special-case code in the send() routine.

Just a thought that might work for your situation.

Jeff





"john_gma" <johnshaffer@...> on 09/10/2002 08:30:59 AM

Please respond to 68300@yahoogroups.com

To:    68300@yahoogroups.com
cc:
Show quoted textHide quoted text
Subject:    [68300] MC68376 QSM SCI


Hello all,

I am writing a serial driver for the QSM SCI.

My question is in regards to the interrupt handling.

There does not seem to be a separate ISR.
How do I clear the interrupts?

There are 2 flags I need to use, TDRE and TC.

The book says that the flags are cleared by:
1. reading SCSR (OK, I do that)
2. Writing to TDR (I don't always want to do this)

So, how do I acknowledge the interrupt without transmitting something?

Can I write $0000 to SCSR?

Thanks

John







---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Re: [68300] MC68376 QSM SCI

2002-09-10 by cwade@watlow.com

I'm not sure what happened to the file.  I will try to attach it again.
Anyone who doesn't get it, but wants it can reach me at cwade@....

Cathy

(See attached file: 68331uart.c)


                                                                                                                                       
                      jeffrey.tenney@gm                                                                                                
                      .com                     To:       68300@yahoogroups.com                                                         
                                               cc:                                                                                     
                      09/10/02 10:59 AM        Subject:  Re: [68300] MC68376 QSM SCI                                                   
                      Please respond to                                                                                                
                      68300                                                                                                            
                                                                                                                                       
                                                                                                                                       





The attachment doesn't seem to be there.  Does Yahoo strip attachments?

Or is it just my e-mail program?

Jeff





cwade@... on 09/10/2002 08:38:49 AM

Please respond to 68300@yahoogroups.com

To:    68300@yahoogroups.com
cc:
Show quoted textHide quoted text
Subject:    Re: [68300] MC68376 QSM SCI



Hello John,

I have not written a comms driver for the 68376, but I have one for the
68331 which is similar.  Here you go.  Hope it helps with your questions.

Cathy
(See attached file: 68331uart.c)



                      "john_gma"
                      <johnshaffer@mail        To:
                      68300@yahoogroups.com
                      .com>                    cc:
                                               Subject:  [68300] MC68376
                      QSM SCI
                      09/10/02 10:30 AM
                      Please respond to
                      68300






Hello all,

I am writing a serial driver for the QSM SCI.

My question is in regards to the interrupt handling.

There does not seem to be a separate ISR.
How do I clear the interrupts?

There are 2 flags I need to use, TDRE and TC.

The book says that the flags are cleared by:
1. reading SCSR (OK, I do that)
2. Writing to TDR (I don't always want to do this)

So, how do I acknowledge the interrupt without transmitting something?

Can I write $0000 to SCSR?

Thanks

John







---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/







[Non-text portions of this message have been removed]



---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/










---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/







[Non-text portions of this message have been removed]

Re: [68300] MC68376 QSM SCI

2002-09-10 by Bill Hartmann

On Tue, 10 Sep 2002 11:10:51 -0500, cwade@... wrote:

>The attachment doesn't seem to be there.  Does Yahoo strip attachments?

Yes, but by option.

A couple of months ago there where some viruses or other undesired
attachments and Motorola turned off the attachment option.

You can email them directly.

Also you can post them at http://groups.yahoo.com/group/68300/

That is the web based view of the mail list and it also has a file
folder. You need to register with Yahoo to use that feature.



--------------------------------------------------------------------------------
Bill Hartmann

Lake Tapawingo, MO (near Kansas City)

billhart@...

Re: MC68376 QSM SCI

2002-09-10 by john_gma

Jeff,

That sounds like a good idea.  I was using a 'transmit done' flag,
but this seems like a simpler approach.

By masking, I assume you mean the TIE (Transmit Interrupt Enable) in 
SCCR1, and not the interrupt level (0-7)

Thanks

John

--- In 68300@y..., jeffrey.tenney@g... wrote:
> 
> John,
> 
> Most of the time you don't want to acknowledge the interrupt if you 
have
> nothing to transmit.  You want to *mask* it.  Use the mask register.
> 
> Later when you put something into the transmit queue, restore the 
normal
> mask value.  The Tx interrupt will occur immediately, and you won't 
need
> special-case code in the send() routine.
> 
> Just a thought that might work for your situation.
> 
> Jeff
> 
> 
> 
> 
> 
> "john_gma" <johnshaffer@m...> on 09/10/2002 08:30:59 AM
> 
> Please respond to 68300@y...
> 
> To:    68300@y...
> cc:
> Subject:    [68300] MC68376 QSM SCI
> 
> 
> Hello all,
> 
> I am writing a serial driver for the QSM SCI.
> 
> My question is in regards to the interrupt handling.
> 
> There does not seem to be a separate ISR.
> How do I clear the interrupts?
> 
> There are 2 flags I need to use, TDRE and TC.
> 
> The book says that the flags are cleared by:
> 1. reading SCSR (OK, I do that)
> 2. Writing to TDR (I don't always want to do this)
> 
> So, how do I acknowledge the interrupt without transmitting 
something?
> 
> Can I write $0000 to SCSR?
> 
> Thanks
> 
> John
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@y...
> 
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
> 
> 
> 
> Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/

Re: [68300] Re: MC68376 QSM SCI

2002-09-10 by jeffrey.tenney@gm.com

Yep, the TIE bit.

Jeff





"john_gma" <johnshaffer@...> on 09/10/2002 09:56:49 AM

Please respond to 68300@yahoogroups.com

To:    68300@yahoogroups.com
cc:
Show quoted textHide quoted text
Subject:    [68300] Re: MC68376 QSM SCI


Jeff,

That sounds like a good idea.  I was using a 'transmit done' flag,
but this seems like a simpler approach.

By masking, I assume you mean the TIE (Transmit Interrupt Enable) in
SCCR1, and not the interrupt level (0-7)

Thanks

John

--- In 68300@y..., jeffrey.tenney@g... wrote:
>
> John,
>
> Most of the time you don't want to acknowledge the interrupt if you
have
> nothing to transmit.  You want to *mask* it.  Use the mask register.
>
> Later when you put something into the transmit queue, restore the
normal
> mask value.  The Tx interrupt will occur immediately, and you won't
need
> special-case code in the send() routine.
>
> Just a thought that might work for your situation.
>
> Jeff
>
>
>
>
>
> "john_gma" <johnshaffer@m...> on 09/10/2002 08:30:59 AM
>
> Please respond to 68300@y...
>
> To:    68300@y...
> cc:
> Subject:    [68300] MC68376 QSM SCI
>
>
> Hello all,
>
> I am writing a serial driver for the QSM SCI.
>
> My question is in regards to the interrupt handling.
>
> There does not seem to be a separate ISR.
> How do I clear the interrupts?
>
> There are 2 flags I need to use, TDRE and TC.
>
> The book says that the flags are cleared by:
> 1. reading SCSR (OK, I do that)
> 2. Writing to TDR (I don't always want to do this)
>
> So, how do I acknowledge the interrupt without transmitting
something?
>
> Can I write $0000 to SCSR?
>
> Thanks
>
> John
>
>
>
>
>
>
>
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@y...
>
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/



---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Re: [68300] MC68376 QSM SCI

2002-09-10 by Jeff Clarke

Mot has a very good application note (AN1724/D) on an interrupt driven
serial handler for the SCI. If you don't use it directly, it might give you
some ideas.

------------------------o0o------------------------
Jeff Clarke
Orbital Sciences Corporation


                                                                                                                                       
                      "john_gma"                                                                                                       
                      <johnshaffer@mail        To:       68300@yahoogroups.com                                                         
                      .com>                    cc:                                                                                     
Show quoted textHide quoted text
                                               Subject:  [68300] MC68376 QSM SCI                                                       
                      09/10/02 11:30 AM                                                                                                
                      Please respond to                                                                                                
                      68300                                                                                                            
                                                                                                                                       
                                                                                                                                       




Hello all,

I am writing a serial driver for the QSM SCI.

My question is in regards to the interrupt handling.

There does not seem to be a separate ISR.
How do I clear the interrupts?

There are 2 flags I need to use, TDRE and TC.

The book says that the flags are cleared by:
1. reading SCSR (OK, I do that)
2. Writing to TDR (I don't always want to do this)

So, how do I acknowledge the interrupt without transmitting something?

Can I write $0000 to SCSR?

Thanks

John







---------------------------------------------------
To unsubscribe from this group, send an email to:
68300-unsubscribe@yahoogroups.com

To learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Re: [68300] MC68376 QSM SCI

2002-09-11 by Robert Smith

Attachments for Yahoo groups can be optionally suppressed by the group
administrator.  You will need to contact him for the status of this
particular group.

As a matter of proper netiquette, attachments should not be attached to
group emails as they waste much bandwidth and annoy subscribers.  They
should be stored at an available web site and referenced by URL only.  If
your attachment is small and of general interest, simply cut and paste it
inline in your posting.

    Bob


---   Avoid computer viruses, Practice safe hex  ---

-- Specializing in small, cost effective
    embedded control systems --


Robert L. (Bob) Smith
Smith Machine Works, Inc.
9900 Lumlay Road
Richmond, VA 23236   804/745-1065

  bobsmith5@...

----- Original Message -----
From: <cwade@...>
To: <68300@yahoogroups.com>
Sent: Tuesday, September 10, 2002 12:10 PM
Subject: Re: [68300] MC68376 QSM SCI


>
> I'm not sure what happened to the file.  I will try to attach it again.
> Anyone who doesn't get it, but wants it can reach me at cwade@....
>
> Cathy
>
> (See attached file: 68331uart.c)
>
>
>
>                       jeffrey.tenney@gm
>                       .com                     To:
68300@yahoogroups.com
>                                                cc:
>                       09/10/02 10:59 AM        Subject:  Re: [68300]
MC68376 QSM SCI
Show quoted textHide quoted text
>                       Please respond to
>                       68300
>
>
>
>
>
>
>
> The attachment doesn't seem to be there.  Does Yahoo strip attachments?
>
> Or is it just my e-mail program?
>
> Jeff
>
>
>
>
>
> cwade@... on 09/10/2002 08:38:49 AM
>
> Please respond to 68300@yahoogroups.com
>
> To:    68300@yahoogroups.com
> cc:
> Subject:    Re: [68300] MC68376 QSM SCI
>
>
>
> Hello John,
>
> I have not written a comms driver for the 68376, but I have one for the
> 68331 which is similar.  Here you go.  Hope it helps with your questions.
>
> Cathy
> (See attached file: 68331uart.c)
>
>
>
>                       "john_gma"
>                       <johnshaffer@mail        To:
>                       68300@yahoogroups.com
>                       .com>                    cc:
>                                                Subject:  [68300] MC68376
>                       QSM SCI
>                       09/10/02 10:30 AM
>                       Please respond to
>                       68300
>
>
>
>
>
>
> Hello all,
>
> I am writing a serial driver for the QSM SCI.
>
> My question is in regards to the interrupt handling.
>
> There does not seem to be a separate ISR.
> How do I clear the interrupts?
>
> There are 2 flags I need to use, TDRE and TC.
>
> The book says that the flags are cleared by:
> 1. reading SCSR (OK, I do that)
> 2. Writing to TDR (I don't always want to do this)
>
> So, how do I acknowledge the interrupt without transmitting something?
>
> Can I write $0000 to SCSR?
>
> Thanks
>
> John
>
>
>
>
>
>
>
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@yahoogroups.com
>
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@yahoogroups.com
>
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@yahoogroups.com
>
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ---------------------------------------------------
> To unsubscribe from this group, send an email to:
> 68300-unsubscribe@yahoogroups.com
>
> To learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.