ProcessorExpert & Interrupts in RAM

Started by Relson, David in 68HC1212 years ago

I've enabled "interrupts in RAM" to allow interrupts to be handled by the boot loader or the user application (according to which program is ...

I've enabled "interrupts in RAM" to allow interrupts to be handled by the boot loader or the user application (according to which program is active). I've noticed that if ProcessorExpert has NVMemory's interrupts enabled, in Vector.c it uses NVMemory_Interrupt rather than TargCpu_INT29. With this setting, the interrupt ignores the address in IntT


Identifying Interrupts

Started by Shayne C. Rich in 68HC1213 years ago 3 replies

I have an operating system running on a 9S12DP256. I seem to be getting spurious interrupts. I have directed all interrupts that I...

I have an operating system running on a 9S12DP256. I seem to be getting spurious interrupts. I have directed all interrupts that I am not using for my application to a sort of trap ISR. I was wondering though, is there a way to tell which interrupt fired without writing a different I


interrupts and sonar

Started by juju1414 in 68HC1214 years ago

Hello, I have been trying to get my sonars(srf04's) to work for some time now, with no luck. The problem is the interrupts. I...

Hello, I have been trying to get my sonars(srf04's) to work for some time now, with no luck. The problem is the interrupts. I have gotten the interrupts to trigger when they recieve the echo, but they seem to give out random values for the time that the interrupt occured. H


Help!

Started by Find out~~!! in 68HC1214 years ago 3 replies

Hi, i have a project that deals with interrupts. I need to call 2 interrupts and one of them, an RTI for counting, but the...

Hi, i have a project that deals with interrupts. I need to call 2 interrupts and one of them, an RTI for counting, but the counting code has to be in the MAIN routine and not in the ISR. Can you please tell me how to do this? and how to call 2 interrupts, one for counting a


Interrupts

Started by "mr.mattyg" in 68HC129 years ago 4 replies

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...

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 in and when the next interrupt should occur, then sets the port and loads the next interrupt into TC#. This table is dynamic based on user input. Anyway everything seems to work as I planned when interrupts are not occurring at a h...


Deferred Service Routines / Nested Interrupts Concept

Started by Amit Gupta in 68HC1211 years ago 3 replies

Hello everyone Queries :--- Query - 1 While executing an "Interrupt A" Interrupt Service Routine , the "Interrupt A" occurs again then...

Hello everyone Queries :--- Query - 1 While executing an "Interrupt A" Interrupt Service Routine , the "Interrupt A" occurs again then how should I handle the sitaution assuming that I dont want to miss any of the interrupts( even while execting ISR). Is it related to Deferred Service Routines ?? Query - 2 Nested Interrupts I mean if we have two interrupts :- Interrupt A(...


HCS12 Interrupts

Started by tophongli in 68HC1211 years ago

Hello, I am using IAR to develop a 9s12d64 based project. I am new to these and am having problems with interrupts. . In main program, I...

Hello, I am using IAR to develop a 9s12d64 based project. I am new to these and am having problems with interrupts. . In main program, I have the following init routine to turn realtime interrupt on: void rti_init (void) { RTICTL = 0x17; /* set RTI prescaler */ CRGINT = 0x80; /* Enable RTI interrupts */ } In ISR, I have the following routine with a dead loop bl...


Serial BootLoader without interrupts?

Started by Spencer Volmar in 68HC1212 years ago 2 replies

Has anyone written a serial BootLoader that polls the serial port instead of using interrupts? I am trying to find a BootLoader that can be...

Has anyone written a serial BootLoader that polls the serial port instead of using interrupts? I am trying to find a BootLoader that can be launched by the user app and then execute the new user app without a cold reset after it is downloaded. The BootLoader can not use interrupts because the internal RAM position can't be changed to overlay the vector table since the


Interrupts in C

Started by Doegon in 68HC128 years ago 4 replies

Hi guys i'm really struggling with setting up interrupts and using them in a program to read keys and display them on the seven segment display on...

Hi guys i'm really struggling with setting up interrupts and using them in a program to read keys and display them on the seven segment display on the dragon 12 card.please help,an example code will be much appreciated. Thanks ------------------------------------


help with D60 Pulse Accum interrupts

Started by Wade A Smith in 68HC1214 years ago

The tip for timer interrupts was the key (dont use BSET to clear interrupt flags) and it works now. I *thought* that I had ...

The tip for timer interrupts was the key (dont use BSET to clear interrupt flags) and it works now. I *thought* that I had Pulse Accum working. Once the Timer Interrupts were working it became clear that the Pulse Accum was not working. I am working with a 912D60


CodeWarrior interrupts

Started by Norbert Gaier in 68HC1212 years ago 1 reply

Hello everyone, I have to write a paper about the way CodeWarrior compiler handles interrupts. Do you know some links to where I can find...

Hello everyone, I have to write a paper about the way CodeWarrior compiler handles interrupts. Do you know some links to where I can find some documentation about this? Thank you, Norbert --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click.


Difference between S12 and S12X

Started by drew...@gmail.com in 68HC128 years ago 2 replies

I have code written for a HCS12 Micro and was thinking about porting it over to a HCS12(X). It has interrupts, and it seems that the interrupts...

I have code written for a HCS12 Micro and was thinking about porting it over to a HCS12(X). It has interrupts, and it seems that the interrupts are handled differently. Is this true, or if the modules are the same between the 2 chips, will the code just port over and work the same. ------------------------------------


Interrupts

Started by Joseph in 68HC1214 years ago 3 replies

I'm having diffuculties differentiating between Interrupts and subroutines. I understand how to program an interrupt (more or less)...

I'm having diffuculties differentiating between Interrupts and subroutines. I understand how to program an interrupt (more or less) but I'm not quiet sure how to activate it. How can I use my interrupt once I've set it into the the vector table??? joe ---------


Setting up interrupts

Started by Leighton Rowe in 68HC1213 years ago 1 reply

Hey All, I basically just started learning to program the mc9s12 family (with Codewarrior). Luckily, I have an idea how to config...

Hey All, I basically just started learning to program the mc9s12 family (with Codewarrior). Luckily, I have an idea how to config the peripherals because I previously worked extensively with ARM7 mcus (like lpc2000). However I need a little help with setting up interrupts, as I'm not yet used to the 9s12 interrupt vector mapping system...it's ne


How to use interrupts on HCS12 using ICC12????

Started by wwsyip in 68HC1213 years ago 1 reply

I've been doing alot of research on interrupts and using them but I have yet to understand the basic steps to it. The sample code...

I've been doing alot of research on interrupts and using them but I have yet to understand the basic steps to it. The sample code that I've downloaded have been largely useless. Is there anyone who can tell me the step by step instructions on how to implement interrupt dri


Interrupt driven MsCan bus

Started by Paul Johnson in 68HC1215 years ago 8 replies

Hi All, All of the examples I have seen using the CAN bus with the HC12 line uses simple polling. Is anyone aware of an example...

Hi All, All of the examples I have seen using the CAN bus with the HC12 line uses simple polling. Is anyone aware of an example using interrupts? Has anyone out there used interrupts themselves? On a related note, all of the examples use only one of the output registers


Interrupts

Started by Allen, Nick in 68HC1214 years ago 14 replies

Hello All-- this is my first time transmitting to this group. I'm trying to get CAN interrupts working on HC12BC32 using...

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


Port IRQ's

Started by Graham Tricker in 68HC1214 years ago 2 replies

Hi I have a problem with interrupts on port P on a MC9S12DP256. I have two clock signals on P2 and P7 running at 19200 baud. I...

Hi I have a problem with interrupts on port P on a MC9S12DP256. I have two clock signals on P2 and P7 running at 19200 baud. I am interrupting on the rising edge of each signal, I can run each of these independently with no problems. When I run both interrupts simultaneously I


Real Time Interrupts

Started by coolguyclay in 68HC1214 years ago 4 replies

Hello. My group (school project) is using the ICC12 C compiler to run our controller. We are having a hard time getting the...

Hello. My group (school project) is using the ICC12 C compiler to run our controller. We are having a hard time getting the interrupts to work. Right now out movement is based on loops, but for more accurate movement and to incorporate sensor control to our robot, we think we ne


OC interrupts

Started by Joseph D. Kay in 68HC1212 years ago

I'm having trouble getting output compare interrupt service routines to work on my s12compact board. My goal is to use the ISR to sample an...

I'm having trouble getting output compare interrupt service routines to work on my s12compact board. My goal is to use the ISR to sample an analog input channel every 20us. I've done something similar on a 68HC11 board but am having trouble on the s12compact board. Does anyone have an example of using the OC interrupts?