Interrupts in C

Started by Doegon November 30, 2009
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

Are you trying to use ASMIDE program to do the interrupts or are you using an external source?

Are you using Dbug-12 software? I do know there are issues using one of the SCI ports with DBug-12 software.

Not really sure on using C for programming, my learning on HC12 board was all assembly, our instructor at the time insisted it was the easiest.

Thanks.

Justin

"In theory, there is no difference between theory and practice. But, in practice, there is. "
--Yogi Berra/Jan L.A. van de Snepscheut--

To: 6...
From: e...@yahoo.com
Date: Mon, 30 Nov 2009 17:21:08 +0000
Subject: [68HC12] Interrupts in C

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

_________________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/


I don't know? I need it for a dodge magnum dash. I got a software called Tachosoft mileage calculator v19.3 speedometer odometer .

Dodge Magnum - 9S12DG256 - 2005-2007 years
Dodge Magnum (hours) - 9S12DG256 - 2005-2007 years


________________________________
From: justin lucas
To: 6...
Sent: Mon, November 30, 2009 12:59:35 PM
Subject: RE: [68HC12] Interrupts in C
Are you trying to use ASMIDE program to do the interrupts or are you using an external source?

Are you using Dbug-12 software? I do know there are issues using one of the SCI ports with DBug-12 software.

Not really sure on using C for programming, my learning on HC12 board was all assembly, our instructor at the time insisted it was the easiest.

Thanks.

Justin

"In theory, there is no difference between theory and practice. But, in practice, there is. "
--Yogi Berra/Jan L.A. van de Snepscheut--

To: 6...
From: e...@yahoo.com
Date: Mon, 30 Nov 2009 17:21:08 +0000
Subject: [68HC12] Interrupts in C



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


_________________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/


You need to enable the SCI port. You might have to configure the PLL of the processor to sync to the dodge magnum timing, since they might be different.

Any micro electronic book can provide an example...I don't have that particular processor, but the data sheet should provide you the details to enable the data port and how to configure the phased lock loop (PLL).

I am out of my area with C...

Might try this website...some examples are there.

http://www.axman.com/?q=book/export/html/196

good luck

Justin

To: 6...
From: b...@yahoo.com
Date: Mon, 30 Nov 2009 12:08:34 -0800
Subject: Re: [68HC12] Interrupts in C

I don't know? I need it for a dodge magnum dash. I got a software called Tachosoft mileage calculator v19.3 speedometer odometer .

Dodge Magnum - 9S12DG256 - 2005-2007 years
Dodge Magnum (hours) - 9S12DG256 - 2005-2007 years

________________________________
From: justin lucas
To: 6...
Sent: Mon, November 30, 2009 12:59:35 PM
Subject: RE: [68HC12] Interrupts in C

Are you trying to use ASMIDE program to do the interrupts or are you using an external source?

Are you using Dbug-12 software? I do know there are issues using one of the SCI ports with DBug-12 software.

Not really sure on using C for programming, my learning on HC12 board was all assembly, our instructor at the time insisted it was the easiest.

Thanks.

Justin

"In theory, there is no difference between theory and practice. But, in practice, there is. "
--Yogi Berra/Jan L.A. van de Snepscheut--

To: 6...
From: e...@yahoo.com
Date: Mon, 30 Nov 2009 17:21:08 +0000
Subject: [68HC12] Interrupts in C

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

__________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/



T2sgVGhhbmtzISEhDQpTZW50IGZyb20gbXkgQmxhY2tCZXJyea4gc21hcnRwaG9uZSB3aXRo
IE5leHRlbCBEaXJlY3QgQ29ubmVjdA0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0K
RnJvbToganVzdGluIGx1Y2FzIDxqbHV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