dual SCI and SPI ports

Started by Louis Eames in 68HC1214 years ago 3 replies

Hi, I am working on a design using the HCS12A128 and i want to use both of the SCI ports, one for RS232 and one for USB....

Hi, I am working on a design using the HCS12A128 and i want to use both of the SCI ports, one for RS232 and one for USB. Although i only want to use one at a time, would i need to disable one while the other is in use to prevent contention? If so, how because the


MACRO Substitution.

Started by John Dammeyer in 68HC1214 years ago 4 replies

Hi all, I wonder if someone can point me in the right direction for this macro substition in ICC12. I want a generalized...

Hi all, I wonder if someone can point me in the right direction for this macro substition in ICC12. I want a generalized macro that inserts either 0, 1 or 2 depending on which SPI port I have wired up. So if I want to get at the SR for SPI1 SPI1SR in the .h file I


SPI and PNI VECTOR 2XE compass

Started by ucrjeff in 68HC1214 years ago 2 replies

Has anyone used the Vector 2xe with the HC12? I need HELP!!

Has anyone used the Vector 2xe with the HC12? I need HELP!!


MMC/Sd CARD Interface

Started by jehenzeb2978 in 68HC1211 years ago 1 reply

Hi All, I am going to interface MMC/Sd card with 9S12DP256B. If someone has done this task already, then please send me the low level...

Hi All, I am going to interface MMC/Sd card with 9S12DP256B. If someone has done this task already, then please send me the low level routines in SPI Mode. Thanx Mian Ahmed Jehnazeb Anwer


help needed

Started by koby_bens in 68HC1214 years ago 3 replies

hi ! i am new with this micro and i wanted to know few thing:(9S12E128) * where can i find c example * how can i write...

hi ! i am new with this micro and i wanted to know few thing:(9S12E128) * where can i find c example * how can i write 16 bit data/address (like xdata at 8051) * can i write spi word which contain 14 bit thanks koby


LCD driver

Started by chil326 in 68HC1215 years ago 5 replies

Hello, do anyone have simple driver in C for CML12SDP256 board from Axiom? The LCD is on SPI. The MCU is MC9S12DP256. A...

Hello, do anyone have simple driver in C for CML12SDP256 board from Axiom? The LCD is on SPI. The MCU is MC9S12DP256. A tutorial could be great too. Thank you


Re: Low voltage amplifier circuit ?

Started by Smiljanic, Sasha in 68HC1214 years ago

Jerramy, Why don't you use an external SPI A/D converter that can increase your precision and allow you to select mutliple...

Jerramy, Why don't you use an external SPI A/D converter that can increase your precision and allow you to select mutliple ranges? Most will be happy to convert millivolts to a 14-16bit number. Either way you go you will require an least one more IC on your circuit (OPAMP or A/D) a


CardS12 Help Required Please!

Started by random_man_man in 68HC1213 years ago 2 replies

I am a realtive novice in the world of embedded systems and I have recently bought myself an Elektronikladen, MC9S12DG256C powered ...

I am a realtive novice in the world of embedded systems and I have recently bought myself an Elektronikladen, MC9S12DG256C powered CardS12 board. I have identified the ports I want to use on the main connectors - H, AD0, AD1, PWM/SPI, T and J I am using Imagecraft's ICC12 V6 IDE trial to compose and compile C code. My problem: I am using &


Re: Problem with SPI

Started by linktek in 68HC1214 years ago 13 replies

Hi, has anyone got a figure on the life expectancy of the Atmel AT45 serial flash devices? I cant find any thing related to the...

Hi, has anyone got a figure on the life expectancy of the Atmel AT45 serial flash devices? I cant find any thing related to the amount of write cycles allowed. Frank ----- Original Message ----- From: "manekb2000" <> To: <>


HCS12 to HCS12 communication

Started by deaninkc in 68HC1213 years ago 9 replies

While looking around for a way to interface a DP256 processor to SD memory card and USB. I ran across the MC9S12UF32 processor that has ...

While looking around for a way to interface a DP256 processor to SD memory card and USB. I ran across the MC9S12UF32 processor that has hardware interfaces to both. The problem is it does not have a SPI or CAN interface or the AD that I need, so I though I would use both processors. I'm assuming I can somehow communicate between the two processors usi


Hi

Started by Mallikarjun Reddy in 68HC1211 years ago

Hi, Can I know where I can get the detail information on the basic steps to write program for the interrupt in C? Any sample code as a...

Hi, Can I know where I can get the detail information on the basic steps to write program for the interrupt in C? Any sample code as a reference? Basically, I will use SCI, SPI, Timer module, ATD,in my project . Any reference or sample code on this? What are the specific registers that needed .To be initialised and also corresponding ports bits . Any help is highly appreciated. Best R...


MMC card

Started by Pascal in 68HC1213 years ago 6 replies

Hi, I saw that there was a topic about the mmc card. I use mmc card on spi bus with hcs12. I have a question about the real card size....

Hi, I saw that there was a topic about the mmc card. I use mmc card on spi bus with hcs12. I have a question about the real card size. Where is the information in the card? How could we know it is a 64 128 256 MB? Thanks for help Regards


flash card with 9s12

Started by Pascal in 68HC1214 years ago 9 replies

Hello, I am looking for information to drive a flash card (spi or parallele) with a 9s12. Where can i find information about soft...

Hello, I am looking for information to drive a flash card (spi or parallele) with a 9s12. Where can i find information about soft and/or hard design? Thank you very much Regards


Using SPI to drive VGA DDC control lines

Started by Nigel Johnson in 68HC1210 years ago

Has anybody done this? I need to generate test patterns for a monitor using the 9s12 - I can generate the patterns and V and H sync nicely but...

Has anybody done this? I need to generate test patterns for a monitor using the 9s12 - I can generate the patterns and V and H sync nicely but can't get the monitor to display them because it has to be initialised using DDC. Any help wpould be appreciated. Nigel, ve3id ------------------------------------


SPI0 locking up

Started by Sam Laur in 68HC1215 years ago 1 reply

I've had some problems with the SPI locking up. My processor is MC9S12DP256C (mask 2K79X). I have three MAX3100 UARTs in the system,...

I've had some problems with the SPI locking up. My processor is MC9S12DP256C (mask 2K79X). I have three MAX3100 UARTs in the system, and I ran into these problems when I was trying to write completely interrupt driven serial code (before, the receive was interrupted but transmit was


HC11 to 68HC12

Started by PDJ in 68HC1214 years ago 5 replies

Hi, I am migrating from the HC11 to the 9S12A256 chip. Does anyone know where I can find examples in assembly that set up the...

Hi, I am migrating from the HC11 to the 9S12A256 chip. Does anyone know where I can find examples in assembly that set up the core on this series or something similar? I need to setup general-purpose registers, the port routing, the A/D, serial SCI and SPI port


Re: sample codes on ATD,SCI, SPI, TIMER MODULE

Started by in 68HC1211 years ago

Hello, For this matter I have had good use of the free Codewarrior with Processor Expert and its Beans. It lets you define your peripheral...

Hello, For this matter I have had good use of the free Codewarrior with Processor Expert and its Beans. It lets you define your peripheral hardware and/or software functions using a GUI rather than programming them by hand. The really great thing is that it produces commented C-source code components based on your settings and adds these to your project with an interface available fo...


HC12 and SD card

Started by adeshere in 68HC1210 years ago 4 replies

Hi, I am trying to talk to an SD card via SPI. I can set up the card and read the CSD CSI registers. BUT When i read data from sector...

Hi, I am trying to talk to an SD card via SPI. I can set up the card and read the CSD CSI registers. BUT When i read data from sector 0, i get the FF 00 to indicate that the command was received correctly and then i eventually get the FE to indicate the data is next. The data i get back is just 00 00 00 00 00 .... I've tried many cards Any ideas ? regards Adrian ---...


time fcns

Started by Lewis, Bob in 68HC1215 years ago 2 replies

Hi The ANSI library defines a number of time functions like difftime, ctime and so on. I realize that this does not...

Hi The ANSI library defines a number of time functions like difftime, ctime and so on. I realize that this does not apply to the HC12 given the nature of embedded system; however I have a spi device that will work like the system time clock (DS1305).


code for ia4420

Started by Pascal DEREX in 68HC1212 years ago 3 replies

Hello, Is somebody would have used the component ia4420 from integration? I am looking for example code with spi protocol with 9s12 or...

Hello, Is somebody would have used the component ia4420 from integration? I am looking for example code with spi protocol with 9s12 or other. Thank you Regards ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/dN_tlB/TM -------------------------------------------