EmbeddedRelated.com
The 2024 Embedded Online Conference

problems with Cosmic C's @interrupt

Started by alienprey2000 in 68HC1221 years ago 2 replies

Hi, I have been trying to get interrupts working on my B32 board for a couple of days now and am really stuck. My problem is with...

Hi, I have been trying to get interrupts working on my B32 board for a couple of days now and am really stuck. My problem is with the @interrupt qualifier. Whenever I use it I get a linking error "unexpected bank location" The manual clarifies this as, "an inter


Non-Maskable Interrupt

Started by Andrew Lohmann's New Email Server in 68HC1220 years ago 2 replies

Hi Is XIRQ a reasonable substitute for NMI as found on MC6801/HD6301? I can't find a manual to describe it. NMI was edge...

Hi Is XIRQ a reasonable substitute for NMI as found on MC6801/HD6301? I can't find a manual to describe it. NMI was edge triggered and would interrupt other interrupts. This is handy because I have a high speed data transfer from an analog to digital converter and which uses


Deferred Service routine

Started by Amit Gupta in 68HC1217 years ago 3 replies

Edward and All I am not clear about your answer for Query 1:- I have an Interrupt - A ISR executing and I have cleared the interrupt at...

Edward and All I am not clear about your answer for Query 1:- I have an Interrupt - A ISR executing and I have cleared the interrupt at the begining and enabled the interrupts by setting _CLI. Now assume that my Interrupt- A occurs , then in normal situation the Interrupt will start executing but in practical situation I dont want this to happen. What I want is that if something like this...


Re: Please help with SCI0 interrupt on DEMO9S12NE64

Started by grec...@lafayette.edu in 68HC1211 years ago

Under DBug-12 SCI0 interrupts are not available. The document Reference Guide For D?Bug12 Version 4.x.x A Debug Monitor For The MC9S12Dx256,...

Under DBug-12 SCI0 interrupts are not available. The document Reference Guide For D?Bug12 Version 4.x.x A Debug Monitor For The MC9S12Dx256, MC9S12A256, MC9S12Dx128, MC9S12H256 & MC9S12A128 Microcontrollers Written By Gordon Doughman Field Applications Engineer Software Specialist states on page 11: Note that even though there is an entry in the table for SCI0, replacing the default v


Interrupt from PH port

Started by Dariusz Kusinski in 68HC1219 years ago 5 replies

Hi, Problem concerns the service of interrupts from PH port. I have 2 independents sources of events. On the beginnig...

Hi, Problem concerns the service of interrupts from PH port. I have 2 independents sources of events. On the beginnig I've tested service of this events on IC (input capture) of MCU and every things have worked properly. Now I reconnect these sources of e


Getting uCOS-II running on a HCS12

Started by Tobias Svensson in 68HC1220 years ago 1 reply

Hi, I?m trying to get uCOS-II running on a HCS12 from the IC68HC12-patch from www.ucos-ii.com. I?m having a problem with...

Hi, I?m trying to get uCOS-II running on a HCS12 from the IC68HC12-patch from www.ucos-ii.com. I?m having a problem with hcs12dp256.h and tick-interrupts. Does anyone know about these problems, or have a patch for HCS12? Grateful for all help. THX i


XGATE??

Started by Adrian Vos in 68HC1218 years ago 21 replies

Hi All, I am in need of more output compare style ECT outputs than the standard S12 supports. I was thinking that I could achieve this by...

Hi All, I am in need of more output compare style ECT outputs than the standard S12 supports. I was thinking that I could achieve this by dedicating one standard OC channel to do all the timer work and generate interrupts, and then using a clever software approach with linked lists of pending timer events with a pointer to a general purpose output that it would perform the timer event


Modulus down counter not working

Started by jeff...@bendnet.com in 68HC1212 years ago 7 replies

Hello, I am using a Wytec microdragon with serial monitor & trying to get a 25ms interrupt. I had it working in a previous similar project, so I...

Hello, I am using a Wytec microdragon with serial monitor & trying to get a 25ms interrupt. I had it working in a previous similar project, so I believe the code should work. The keypad & lcd work fine. My question is: is there some input pin that could be affecting the modulus counter? As soon as the interrupts turn on all control is lost. Any code after (interrupts_on) is not executed - Je...


trouble with S12XS SCI controller

Started by ben_smida_hamdi in 68HC1215 years ago 3 replies

i'm developing an uart driver based on interrupts. i've realized that when executing the ISr software failed to reset TDRE Flag.i made sure...

i'm developing an uart driver based on interrupts. i've realized that when executing the ISr software failed to reset TDRE Flag.i made sure tha i've followed all steps listed in the datasheet to do so which are: 1-reading the SCI Status Register. 2-Writing to the SCI Data Low register. but the ISR Continue to go in Loop. i wish tha anyone could help me figure this out. --------------...


'S12DP256 - errata for all 0K79X and 1K79X masks

Started by bruce_at_pocket_neurobics in 68HC1222 years ago 1 reply

(I believe mask 1K79X is the latest version.) This bug's worth some advertising I think... Quote from errata sheet: SCI...

(I believe mask 1K79X is the latest version.) This bug's worth some advertising I think... Quote from errata sheet: SCI INTERRUPT ASSERTS ONLY IF AN ODD NUMBER OF INTERRUPTS ACTIVE MUCTS00510 The interrupt of the SCI is only asserted if an odd number of inte


Reg problem with Input capture interrupts

Started by saravanan in 68HC1216 years ago 5 replies

Dear all, I am using HCS12X evaluation board.I wrote a simple code to compute the wheel speed using the input capture...

Dear all, I am using HCS12X evaluation board.I wrote a simple code to compute the wheel speed using the input capture timer. I have connected the wheel speed outputs to the channels IOC0 - IOC3. Now the wheels are moving at a constant pace. The problem what I am facing is, as TIE(C0I) has higher priority than the remaining three(C1I,C2I,C3I), channel ...


PEmicro USB HCS08 / HCS12 Multilink - help needed

Started by Benny in 68HC1216 years ago 11 replies

Hi all I am using the PEmicro USB HCS08 / HCS12 Multilink unit for programming / debugging. The unit is working good with simple projects,...

Hi all I am using the PEmicro USB HCS08 / HCS12 Multilink unit for programming / debugging. The unit is working good with simple projects, but when I am trying to run the CW debugger using this unit connected to the target board, and the project includes several active interrupts like: SCI + 2x PWM , the device lose synchronization and I can't debug Did anyone knows how to handle it...


Generating square wave using output compare

Started by ErnieBarreyro in 68HC1220 years ago 1 reply

I am trying to generate a 10 KHZ square wave using the timers' output compare on 9s12e128. Is there a way such that you only load...

I am trying to generate a 10 KHZ square wave using the timers' output compare on 9s12e128. Is there a way such that you only load the TCn registers once and then let it run? Or do you have to use interrupts or polling to find out if output compare ocurred then re-load the TCn register.


Address mark wakeup messages not being recognized

Started by garyolmstead in 68HC1217 years ago 2 replies

I am using the 9S12A32 serial port and I want to use address mark wake up. I have set the SCI for 9 bits, one stop bit, no parity, interrupts...

I am using the 9S12A32 serial port and I want to use address mark wake up. I have set the SCI for 9 bits, one stop bit, no parity, interrupts on, transmitter and receiver on, address mark wakeup. I am manually setting (and later clearing) bit 8 in SCIDRH. Using the True Time Real Time Debugger, I can see characters coming into the receive buffer, but the interrupt is never triggered, ...


Timer interrupts

Started by Stefan Loos in 68HC1219 years ago 3 replies

Hi Can u tell me how to clear timer interrupt flags if you have two timers running ? Do you have to wrtie TFLG1 = 0x01 or ...

Hi Can u tell me how to clear timer interrupt flags if you have two timers running ? Do you have to wrtie TFLG1 = 0x01 or TFLG1 |= 0x01 to clear Timer1 flag and TFLG1 = 0x02 or TFLG1 |= 0x02 to clear Timer2 flag in the isr ??? Thx for help Stefan


HCS12 Nested Timer Interrupts

Started by varneybob in 68HC1221 years ago 3 replies

I am using the HCS12 eval board and have a mask set 1K79X part. While executing the Timer5 interrupt service routine, I need to be ...

I am using the HCS12 eval board and have a mask set 1K79X part. While executing the Timer5 interrupt service routine, I need to be interrupted by a higher-priority Timer4 interrupt service routine. However, it appears that the higher-priority Timer4 interrupt is never gaining acc



The 2024 Embedded Online Conference