Sign in

username:

password:



Not a member?

Search hc11



Search tips

Subscribe to hc11



Ads

Discussion Groups

Discussion Groups | M68HC11 | SCI interrupt stops PORTD

Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).

SCI interrupt stops PORTD - yklein2004 - Jul 10 18:44:42 2006

Hi all,

I'm using HC11e9 and I have a code that uses PORTD (pin2-pin5).
When I added the SCI code, especially SCCR2=0x24; (I'm only receiving),
The entire port will not work. I know the SC overwrite pin0 and pin1
but why the rest of the port is not working.





(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )


Re: SCI interrupt stops PORTD - Mike McCarty - Jul 10 20:15:37 2006

yklein2004 wrote:
> Hi all,
>
> I'm using HC11e9 and I have a code that uses PORTD (pin2-pin5).
> When I added the SCI code, especially SCCR2=0x24; (I'm only receiving),
> The entire port will not work. I know the SC overwrite pin0 and pin1
> but why the rest of the port is not working.

What do you mean by "is not working"? As input, or as output?

IIRC, when PORTD is used with the SCI, it is forced to open drain.
Do you have pull-up resistors?

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!



(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )

Re: SCI interrupt stops PORTD - yklein2004 - Jul 11 2:36:17 2006

hi mike,
I use the port to output a 10us pulse on each pin (activating ultra
sonic sensor) without the SCI all four sensor are working fine.The
minute I'm adding the SCI code the sensors stop working.
I do not have any pulling up resistors. I thought the SCI is over
writing only PD0 and PD1?
--- In m...@yahoogroups.com, Mike McCarty wrote:
>
> yklein2004 wrote:
> > Hi all,
> >
> > I'm using HC11e9 and I have a code that uses PORTD (pin2-pin5).
> > When I added the SCI code, especially SCCR2=0x24; (I'm only
receiving),
> > The entire port will not work. I know the SC overwrite pin0 and pin1
> > but why the rest of the port is not working.
>
> What do you mean by "is not working"? As input, or as output?
>
> IIRC, when PORTD is used with the SCI, it is forced to open drain.
> Do you have pull-up resistors?
>
> Mike
> --
> p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
> This message made from 100% recycled bits.
> You have found the bank of Larn.
> I can explain it for you, but I can't understand it for you.
> I speak only for myself, and I am unanimous in that!
>



(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )

Re: Re: SCI interrupt stops PORTD - Mike McCarty - Jul 11 10:35:40 2006

yklein2004 wrote:
> hi mike,

Hi. I prefer that you not top-post.

> I use the port to output a 10us pulse on each pin (activating ultra
> sonic sensor) without the SCI all four sensor are working fine.The
> minute I'm adding the SCI code the sensors stop working.
> I do not have any pulling up resistors. I thought the SCI is over
> writing only PD0 and PD1?

But the open drain mode applies to the whole port. Individual bits
are not usable in different modes, only different directions.

How much capacitance do you have on the inputs (including strays)
of the controlled devices? Let's say a total of 30pF. You probably
need not more than 200ns rise times. Let's make the time constant
100ns to get two time constants for 90% rise times, as one rise
time only gets 68% or so.

RC = t
R(3e-11) = 2e-7
R = (2e-7)(3e11) = 6e4

R <= 60K.

I'd try 47K pull-ups in that case, and then adjust using a 'scope.
But you need to do your own math.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!




(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )