Floating point calculations in HCS12

Started by Patrick in 68HC1210 years ago

Hi there, I'm struggling to figure out how to multiply by floats in the HCS12. For example, let's say we wanted to multiply 100 by 0.165. My...

Hi there, I'm struggling to figure out how to multiply by floats in the HCS12. For example, let's say we wanted to multiply 100 by 0.165. My initial idea was to multiply 100 by 165 and then divide that result by 1000. I did this using the emul and ediv instructions, however I am not getting correct results in my implementation. Could anyone provide an example of how to do this? Than...


HCS12 Beginners Guide/ Tutorial

Started by Ajay in 68HC1215 years ago 3 replies

Can u pls. give me a link for HCS12 Beginners Guide/ Tutorial for C programming + Harware Interfacing etc.? ...

Can u pls. give me a link for HCS12 Beginners Guide/ Tutorial for C programming + Harware Interfacing etc.?


ADC HCS12 DP256

Started by hellfire1272000 in 68HC1216 years ago 4 replies

I would like some help in putting together some C Code to set-up and read one ADC Channel continuously and also set-up and Scan...

I would like some help in putting together some C Code to set-up and read one ADC Channel continuously and also set-up and Scan through multiple ADC channels continuously. I have Codewarrior for HCS12.Some help would be appreciated as I am a newcommer to embedded.


information about a simulator for the HCS12 family

Started by Alexandre Zambon in 68HC1213 years ago 5 replies

Hi, We are looking to use a simulator for HCS12 family. We are using actually ICC12 for compiling and Dbug-12 for download...

Hi, We are looking to use a simulator for HCS12 family. We are using actually ICC12 for compiling and Dbug-12 for download and some debugging parts. But Dbug-12 doesn't offer the possibility to create breakpoints, execute code, and see meanwhile the variable state, in


Re: HCS12 uncertain future

Started by Frank in 68HC1212 years ago 8 replies

The TMS470 seems like a perfect match for replacing HCS12 designs if Freescale drops the 16 bit line.... The TMS470 offers 1MEG Flash/64K...

The TMS470 seems like a perfect match for replacing HCS12 designs if Freescale drops the 16 bit line.... The TMS470 offers 1MEG Flash/64K sram at $14 http://focus.ti.com/mcu/docs/overview.tsp?familyId=454&templateId=5324&navigationId=11467&path=t emplatedata/cm/mcuovw/data/tms470_ovw


A few questions for a project, thanks!

Started by Vuln...@gmail.com in 68HC1210 years ago 5 replies

Hi all, I have a project I am working on for my senior design and I am hoping to get some advice on a few things, thanks for your time! For my...

Hi all, I have a project I am working on for my senior design and I am hoping to get some advice on a few things, thanks for your time! For my embedded systems class we made a project based around a door security system. One HCS12 had an IR sensor and a wireless transmitter connected, and use PB's to set/enter a password. It then transmitted status bits to a second HCS12 connected to a compu...


Field Reprogramming of HCS12

Started by Pat Fitzpatrick in 68HC1215 years ago 5 replies

Hi All, We are soon going to send some HCS12 modules (9S12D64 and 9S12H256 based) out for field testing. It's easy to e-mail...

Hi All, We are soon going to send some HCS12 modules (9S12D64 and 9S12H256 based) out for field testing. It's easy to e-mail new code to the test sites, but we need a simple method of reprogramming the modules. We effectively have the six pin BDM connector available.


resolution for PWM driven servo on HCS12

Started by Steve Auch-Schwelk in 68HC1214 years ago 23 replies

Can anyone let me know if they have some suggestions for the HCS12 prescale, scale, clock, and period, and duty settings for...

Can anyone let me know if they have some suggestions for the HCS12 prescale, scale, clock, and period, and duty settings for running a standard servo (666Hz+/-130Hz or 1.25-1.75ms). My oscilator is 16MHz, so the bus clock is at 8MHz. It seems that the resolution at these f


Help on Codewarrior ( HCS12 ) PC simulation

Started by mdn4u in 68HC1215 years ago 4 replies

Hi all, I am working towards designing motor control system using motorola HCS12 MCU. Just bought Codewarrior Standard edition...

Hi all, I am working towards designing motor control system using motorola HCS12 MCU. Just bought Codewarrior Standard edition as development environment and expecting DP256 evolution board in 2-3 weeks. To reduce the development time I am planning to use Codewarrior


External Program Memory

Started by Tim Peltu in 68HC1213 years ago 6 replies

Hi, I want to use a HCS12 (a 9S12E128 would fit very well) for my project and I need one thing of which I'm unsure that the HCS12...

Hi, I want to use a HCS12 (a 9S12E128 would fit very well) for my project and I need one thing of which I'm unsure that the HCS12 supports it. For my project I do not want to use the flash as memory for the program, I want to put the programm in an external OTP ROM. I read that I can swit


GNU compiler and memory on HCS12

Started by Steve Auch-Schwelk in 68HC1214 years ago 8 replies

I have a tboard eval. with the HCS12 MC mounted. It came with a 30 day trial of the ICC compiler, but I decided to try GCC. My...

I have a tboard eval. with the HCS12 MC mounted. It came with a 30 day trial of the ICC compiler, but I decided to try GCC. My program has now grown to over 12K, and I am having trouble fiddling my memory.x to get the program to load. the default memory map looks like


Migrating from HCS12 256 to HCS12 512

Started by Alexandre Zambon in 68HC1213 years ago

Hi, We are looking to change the actual CPU HCS12DJ256 to a HCS12DP512 to get high flash memory. The person before me choose the ICC12...

Hi, We are looking to change the actual CPU HCS12DJ256 to a HCS12DP512 to get high flash memory. The person before me choose the ICC12 of ImageCraft and create a code to convert a .s19 file to a .s2 file. So I don't understand well why the generate s2 file for the HCS12DJ256 is working and I must understand it to modify the algorithm for HCS


HCS12 to HCS12 Port interfacing

Started by Jerry Fields in 68HC129 years ago 5 replies

Hello, I have two MC9S12DP512 microcontrollers, and I need to interface them. The first mc9s12, has port P set to output, the second mc9s12...

Hello, I have two MC9S12DP512 microcontrollers, and I need to interface them. The first mc9s12, has port P set to output, the second mc9s12 has port T set to input, and I want to connect one line on those ports. There are no large amounts of data being sent, as I am just holding the line high or low. My question is, do I need a current limiting resistor in between the two? I have not yet fo...


Is the HCS12 (E128 is mine) able to drive/control servos??

Started by gogosgeorge in 68HC1213 years ago 3 replies

Hi guys, Is the HCS12 able to control servos? Im using a remote control car which has 2 servos already, but I need to use...

Hi guys, Is the HCS12 able to control servos? Im using a remote control car which has 2 servos already, but I need to use another servo (or control the existing one) running from the 9S12E128 to control the voltage pot on the cars rmote control transmitter. Im still


HCS12 and end of life notices

Started by dleatmot in 68HC1212 years ago 4 replies

Dear group, Freescale is in the process of migrating to new more environmentally friendly products. During this process, many of the...

Dear group, Freescale is in the process of migrating to new more environmentally friendly products. During this process, many of the HCS12 have appeared to be marked with end of life status. This is due to the transitional time required to get the new Pb free suffix part numbers up and running in the system. During this time, the non environmental frie


A compiler problem.Is it because the C Program or CWSEHC12..

Started by caoshyh in 68HC1214 years ago

I am using the CodeWarrior Development Studio Special Edition for HCS12 write a simple program for the MCU of MC9S12DP256B using...

I am using the CodeWarrior Development Studio Special Edition for HCS12 write a simple program for the MCU of MC9S12DP256B using the HCS12 software stationery of stationary-k79x.In the Project manager window I removed several MCU peripheral definition and add two files ( "P


BDM for Metrowerks Codewarrior 2.0

Started by ra in 68HC1215 years ago 3 replies

Hello Has anyone succeeded in getting Metrowerks Codewarrior 2.0 to debug an hcs12 board with a self-made BDM consisting of a...

Hello Has anyone succeeded in getting Metrowerks Codewarrior 2.0 to debug an hcs12 board with a self-made BDM consisting of a second hcs12 board running d-bug12? (this would sort of be equivalent to Technological Arts' microBDM12SX) The Metrowerks "True Ti


Web Site dedicated to the HCS12

Started by John Theofanopoulos in 68HC1215 years ago 7 replies

Hello all, This is a simple announcement for a web site I have set up dedicated to embedded controllers (currently, specific to...

Hello all, This is a simple announcement for a web site I have set up dedicated to embedded controllers (currently, specific to the HCS12 and all the family derivatives). The site is officially up as of today and can be used by embedded controller programmers to share ideas/ti


Bootloader HCS12

Started by tipet20002000 in 68HC1215 years ago 2 replies

Hello, Does anybody know how can I run application from RAM with metrowerks? I've done a bootloader in C for MC9S12A128 and...

Hello, Does anybody know how can I run application from RAM with metrowerks? I've done a bootloader in C for MC9S12A128 and a program with Builder C++ to download code from PC to HCS12 via RS485. I can download code into block 1, but to download code into block


Re: Request for Help with hcs12 microcontroller!

Started by mukul tewary in 68HC129 years ago

thanks a lot bill!!! I'll try it out.. --- On Thu, 3/19/09, William Rison wrote: From: William Rison Subject: [68HC12] Re: Request...

thanks a lot bill!!! I'll try it out.. --- On Thu, 3/19/09, William Rison wrote: From: William Rison Subject: [68HC12] Re: Request for Help with hcs12 microcontroller! To: 6...@yahoogroups.com Date: Thursday, March 19, 2009, 2:24 PM Hi, Mukul, I use a 68HC11 to read the data from a GPS receiver. Below is the code I use to do this. It sh