Search the web
Sign In
New User? Sign Up
68HC12
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Interrupts   Message List  
Reply | Forward Message #1349 of 16643 |
Hello All--
this is my first time transmitting to this group.
I'm trying to get CAN interrupts working on HC12BC32
using ImageCraft ICC12

I've added these to vectors.c
#pragma interrupt_handler CAN_RX_int
extern void CAN_RX_int(void);

I've extended the vector table:
#pragma abs_address:0xffc4
void (*interrupt_vectors[])(void) =
{
DUMMY_ENTRY, //CAN transmit ffc4
CAN_RX_int, //CAN receive ffc6
DUMMY_ENTRY, //CAN error ffc8
DUMMY_ENTRY, //reserved ffca
DUMMY_ENTRY, //reserved ffcc
DUMMY_ENTRY, //reserved ffce
DUMMY_ENTRY, /* BDLC */ /* Key Wakeup J */
etc.......

I've enabled receive interrupt:
CRIER=0x1;
INTCR=0xe0; I suspect isn't applicable

Is this the only way to clear the I bit in the CCR?
asm ("TAP\n"
"ANDA #$ef\n"
"TAP\n");

and a dummey interrupt routine:
void CAN_RX_int(void)
{
printf("Received an interrupt!\n");
}


No work-----what am I missing??

Nick Allen









Wed Nov 6, 2002 8:16 pm

ncallen2003
Offline Offline
Send Email Send Email

Forward
Message #1349 of 16643 |
Expand Messages Author Sort by Date

Hello All-- this is my first time transmitting to this group. I'm trying to get CAN interrupts working on HC12BC32 using ImageCraft ICC12 I've added these to...
Allen, Nick
ncallen2003
Offline Send Email
Nov 6, 2002
8:27 pm

In a message dated 11/22/03 4:20:20 PM Eastern Standard Time, el_kora11@... writes: I'm having diffuculties differentiating between Interrupts and...
BobGardner@...
bobgardner32839
Offline Send Email
Nov 22, 2003
10:56 pm

Subroutines are called by the normal stream of software execution. A return address (address of the instruction following the BSR/JSR/CALL instruction) is...
Ritter, Alan
fieroshadow
Offline Send Email
Nov 23, 2003
12:47 am

the vector table associates a predetermined address (the vector) with a "function name", when the interrupt is generated the table goes to the associated...
Sydney Faria
scuthbertf
Offline Send Email
Nov 23, 2003
3:03 pm

Thanks for all the feedback, Its becomming a little more clear to me, but the one thing that I have not understood is how to invoke these interrupts. What if...
Joseph
excela11
Offline Send Email
Nov 23, 2003
3:17 pm

... Hi Joe, It seems you missed the previous explanations. With one exception Interrupts are hardware functions. A common one is say receiving chars from a...
theobee00
Offline Send Email
Nov 23, 2003
6:40 pm

One more comment on this subject: once you have defined the interrupt routine, you do not call it! That is all done for you in the background and depends on...
Sydney Faria
scuthbertf
Offline Send Email
Nov 23, 2003
3:11 pm

these ideas mentionned are very helpful although I'm a little unclear on the term "message" used. ... use an input or output line to generate an int signal as...
Joseph
excela11
Offline Send Email
Nov 23, 2003
3:32 pm

I don't remember all the vector address definitions. Go to the motorola developer site and get a copy of the documentation and search for vector table or...
Sydney Faria
scuthbertf
Offline Send Email
Nov 23, 2003
4:45 pm

I am using message in the context of a CAN message frame which is sent via a CAN Tx flag to enable the CAN Tx int. It was just one of the types of ints that I...
Sydney Faria
scuthbertf
Offline Send Email
Nov 23, 2003
5:00 pm

... Hi Sydney, I run into trouble with that loop. Since these newfangled instructions are er, new to me, I am not 100 percent sure, but when I used that loop I...
theobee00
Offline Send Email
Nov 23, 2003
6:54 pm

hi I am using imagecraft ICC12 V6 for programing my controller. but I had series problem in my computer then I had to format it but I forgat to trnsfer my...
suhaib al khazali
suhaib_alkha...
Offline Send Email
Nov 23, 2003
8:33 pm

... Sorry, don't use it, am assembly man. Ring imagecrafts bell a tad louder. Cheers, Theo...
theobee00
Offline Send Email
Nov 24, 2003
6:05 am

hi I am using imagecraft ICC12 V6 for programing my controller. but I had series problem in my computer then I had to format it but I forgat to trnsfer my...
suhaib al khazali
suhaib_alkha...
Offline Send Email
Nov 23, 2003
8:34 pm

Hi Suhaib, license@... works "Programmers Hours," e.g. 11AM-7PM Mon-Fri. I work all days and nights :-) You can email the hex string you see, along...
Richard F. Man
richard@...
Send Email
Nov 23, 2003
10:05 pm

I have been using AS 12 and the * is a shorthand way to set a label to go back to the same line -- I have used it on all the 68HC12 microcontrollers A4, B32,...
Sydney Faria
scuthbertf
Offline Send Email
Nov 24, 2003
11:11 am

... As I said, I am no expert on the new instructions so correct me if I am wrong, but as I understand that one, it does a port value compare with #$01 and...
theobee00
Offline Send Email
Nov 24, 2003
10:18 pm

As far as I can tell the * simply is a shorthand notation for the present PC value and this polling technique is used, with or without the shorthand notation,...
Sydney Faria
scuthbertf
Offline Send Email
Nov 27, 2003
3:09 pm

Hi, I am using MC9S12DP256 Controller. Kindly let me know, how do I handle the timer interrupt. what is the interrupt function to handle the timer interrupt. ...
R R Sridhar
shridhar_rr
Offline Send Email
Feb 21, 2007
1:12 pm

... [using CodeWarrior] Steps: 1. Read Freescale docs to understand what an interrupt is, and how it should be used. There is a specific section on timer...
Jefferson Smith
imajeff84663
Online Now Send Email
Feb 23, 2007
6:39 pm

Hi guys, So I have two output compare interrupts setup such that the handlers look up in a circulating table (one for each handler) the state a port should be...
mr.mattyg
Offline Send Email
May 8, 2008
8:27 pm

... 100uS is a lot even for 8MHz busclock. Your circulating table etc should work. ... I see nothing wrong above. ... Let me guess, is this some arbitrary time...
Edward Karpicz
keffffek
Offline Send Email
May 9, 2008
4:06 am

Edward, I'm not 100 % sure what the arbitrary time is. One thing is I'm on a 2MHZ Bus clk, I would like to jump up to 16, but not sure if I can just do that ...
Matt Gauthier
mr.mattyg
Offline Send Email
May 9, 2008
1:12 pm

sorry for delay ... Your code sets timer fot fast flag clear (FFC). I wrongly assumed you are using normal flag clear sequence. And regarding normal flag clear...
Edward Karpicz
keffffek
Offline Send Email
May 14, 2008
6:34 am

Edward, Thanks for the info, definitely some useful information in there that I would have never known! Long story short, I rewrote my code to only use one ...
Matt Gauthier
mr.mattyg
Offline Send Email
May 19, 2008
3:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help