Reply by Jean-Pierre Lavandier July 28, 20092009-07-28
Hi,

The vector table contains function addresses, so to implement an interrupt
function, you have to create it somewhere with the @interrupt prefix, and
you have to replace the matching entry in the vector table by the function
name, not forgetting to declare it as an extern @interrupt function if it is
not written in the same source file.

Regards,
Jean-Pierre Lavandier


-----Message d'origine-----
De : 6... [mailto:6...] De la part de
stefan.ming
Envoy: lundi 27 juillet 2009 14:55
: 6...
Objet : [68HC12] Re: HCS12 with 3 SCI Ports?


Hello everybody,

it's my first time to use COSMIC to program MC9S12XDP512. I got along well
with it. However, i'm a little bit confused on how to write my interrupt.

you see, there're only defined function pointers without any explicit
indication as follows:

@interrupt @near void (* const _vectab[])(void) = {
dummit, /* 0xFF10 Surious Interrupt */
dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, /* 0xFF60 XRAM access violation */
dummit, /* 0xFF62 XGATE software error */
dummit, /* 0xFF64 XGATE software trigger 7 */
dummit, /* 0xFF66 XGATE software trigger 6 */
dummit, /* 0xFF68 XGATE software trigger 5 */
dummit, /* 0xFF6a XGATE software trigger 4 */
dummit, /* 0xFF6c XGATE software trigger 3 */
dummit, /* 0xFF6e XGATE software trigger 2 */
dummit, /* 0xFF70 XGATE software trigg
}

I'm really confused by such definitions. they are truelly different from
AVR.

Who can interprete it clearly to me? Thank you very much in advance!



Reply by "stefan.ming" July 27, 20092009-07-27
Hello everybody,

it's my first time to use COSMIC to program MC9S12XDP512. I got along well with it. However, i'm a little bit confused on how to write my interrupt.

you see, there're only defined function pointers without any explicit indication as follows:

@interrupt @near void (* const _vectab[])(void) = {
dummit, /* 0xFF10 Surious Interrupt */
dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, dummit, dummit, dummit, dummit, dummit, dummit, dummit,
dummit, /* 0xFF60 XRAM access violation */
dummit, /* 0xFF62 XGATE software error */
dummit, /* 0xFF64 XGATE software trigger 7 */
dummit, /* 0xFF66 XGATE software trigger 6 */
dummit, /* 0xFF68 XGATE software trigger 5 */
dummit, /* 0xFF6a XGATE software trigger 4 */
dummit, /* 0xFF6c XGATE software trigger 3 */
dummit, /* 0xFF6e XGATE software trigger 2 */
dummit, /* 0xFF70 XGATE software trigg
}

I'm really confused by such definitions. they are truelly different from AVR.

Who can interprete it clearly to me? Thank you very much in advance!

Reply by Michael June 24, 20092009-06-24
--- In 6..., jmeyer@... wrote:
>
> I have been looking, but I can't seem to find any HCS12 products with more than two undependant SCI ports. Does anyone know of a HSC12 product that does?
>
Check out the HCS12XA family you can get up to 6 SCI's. The 9S12A256 that I use has 3 SCI's but only in the large chip version. In the small chip version that I use only 2 SCI's are brought out to external pins but registers are there for 3 SCIs.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S12XA&webpageId43140751948709793176&nodeId624686363176&fromPage=tax

Reply by Donald E Haselwood June 24, 20092009-06-24
The MC9SE128 has three (independent) SCI ports.

Regards,

Donald E Haselwood

On Wednesday 24 June 2009 11:31:33 am
j...@emittechnologies.com wrote:
> I have been looking, but I can't seem to find any HCS12
> products with more than two undependant SCI ports. Does
> anyone know of a HSC12 product that does?

Reply by jmey...@emittechnologies.com June 24, 20092009-06-24
I have been looking, but I can't seem to find any HCS12 products with more than two undependant SCI ports. Does anyone know of a HSC12 product that does?