Sign in

username:

password:



Not a member?

Search hc11



Search tips

Subscribe to hc11



Ads

Discussion Groups

Discussion Groups | M68HC11 | Re: Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ...

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

Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - richard.danna - Jan 6 17:46:00 2006

>>> I am using 9600 Baud, so apparently that is only making matters
much worse. So, what happens if I slow down the OC4 interrupt
triggering, take out essentially all of the code in the IC handlers,
print from main, and the IC2 interrupt still does not work? In fact,
I believe that I can take out OC4 altogether and only have the IC
interrupts. If I do that and take the vast majority of the code out
of the IC interrupts and still have problems, then what do I do next?
--- Richard <<<

--- In m68HC11@m68H..., BobGardner@a... wrote:
>
> If you are using 38400 on the serial, you can do 4 chars a ms.
Looks like
> you are sending several dozen chars, so there is NO WAY to handle
any other
> interrupt while all this output to the serial port is going on.
Comment all that
> stuff out. Print in the main loop. > [Non-text portions of this message have been removed]




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


Re: Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - BobG...@... - Jan 6 19:40:00 2006

If the IC2 int hits while the IC1 handler is running, I think the int flag
is set, and the int will hit right after the IC1 handler completes, so that's
why the handlers need to be REAL SHORT. The IC2 handler needs to be DONE
before IC1 hits again.

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




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

Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - richard.danna - Jan 6 19:45:00 2006

>>> I am going to go home tonight and try this stuff out. Perhaps
something will end up working. I will post again if nothing works.
Thank you for your help! <<< --- In m68HC11@m68H..., BobGardner@a... wrote:
>
> If the IC2 int hits while the IC1 handler is running, I think the
int flag
> is set, and the int will hit right after the IC1 handler completes,
so that's
> why the handlers need to be REAL SHORT. The IC2 handler needs to be
DONE
> before IC1 hits again. >
>
> [Non-text portions of this message have been removed]




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

Re: Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - BobG...@... - Jan 6 19:48:00 2006


In a message dated 1/6/2006 6:47:21 P.M. Eastern Standard Time,
richard.danna@rich... writes:

>>> I am going to go home tonight and try this stuff out. Perhaps
something will end up working. I will post again if nothing works.
Thank you for your help! <<<
=======================
I love microstamps and icc11. Have been using them both since '99. I'm glad
to see someone else using them!
[Non-text portions of this message have been removed]




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

Re: Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - BobG...@... - Jan 6 20:48:00 2006

If you are using 38400 on the serial, you can do 4 chars a ms. Looks like
you are sending several dozen chars, so there is NO WAY to handle any other
interrupt while all this output to the serial port is going on. Comment all that
stuff out. Print in the main loop. [Non-text portions of this message have been removed]




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

Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - richard.danna - Jan 6 23:08:00 2006

>>> I went home and tested about everything that I can possibly
imagine out from our discussion today. I even took out all of the
interrupts except for the IC2 interrupt. Nothing happened! I am
determined to believe that there is something wrong with my
microStamp11, for no timing or other interrupts could be the issue
when there is only one interrupt. Nearly (differing flag, pragma
address, left ticks, etc...) identical code for IC1 works but IC2
does not. Bob, do you have any working code (C or assembly) that
works for IC2. Perhaps something as simple as detecting a rising edge
voltage input and driving PA7 on Port A high to light an LED. Perhaps
my ImageCraft IC11 has a bug. Let me know if you have any suggestions
as to where I should go from here or what I can do. Thank you! Have a
good night! I am getting so frustrated with this!
--- Richard <<< --- In m68HC11@m68H..., BobGardner@a... wrote: > In a message dated 1/6/2006 6:47:21 P.M. Eastern Standard Time,
> richard.danna@y... writes:
>
> >>> I am going to go home tonight and try this stuff out. Perhaps
> something will end up working. I will post again if nothing works.
> Thank you for your help! <<< >
> =======================
> I love microstamps and icc11. Have been using them both since '99.
I'm glad
> to see someone else using them! >
> [Non-text portions of this message have been removed]




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

Re: Re: HC11 IC2 and IC3 Interrupt Problems (Possibly dealing with ... - BobG...@... - Jan 7 12:07:00 2006

I suggest post the complete program that doesn't work using IC2, with all
the IC1 and extra stuff deleted (you keep the copy with it all commented out so
you can put it back if you want), so we can see EVERY instruction. Must be an
init problem. [Non-text portions of this message have been removed]




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