Serial Port Interfacing

Started by ijuhijhijh in 68HC1214 years ago 1 reply

Hi, just a little question. I have a Motorla EVBHC12 microncontroller running some software to control a steering motor and...

Hi, just a little question. I have a Motorla EVBHC12 microncontroller running some software to control a steering motor and throttle controller. Basically a logical '1' or '0' is sent to a relay to activate or turn off each one. I also have a GPS navigational


PWM ports on HCS12

Started by Naheed M K in 68HC1215 years ago 2 replies

Hi, Could I drive any motors directly using HCS12 output port pin with out any Drivers(H-bridge). If yes then could you please...

Hi, Could I drive any motors directly using HCS12 output port pin with out any Drivers(H-bridge). If yes then could you please give the partno of that motor preferably with rotary encoders. Thanks Naheed


Re: DC Motor filtering (was Bootloading--Again)

Started by Jeremy Fowell in 68HC1215 years ago

Hi > . . . Even with them there, they > would still blow half the time > under stall load, If you have power...

Hi > . . . Even with them there, they > would still blow half the time > under stall load, If you have power transistor failures under stall it may be a good idea to measure the current flowing under this condition. It may be that transi


Help Needed!

Started by onterrybell in 68HC1214 years ago 2 replies

I am having problems displaying the output voltage onto the lcd of the HC12, so i was wondering if anyone could take a look at my...

I am having problems displaying the output voltage onto the lcd of the HC12, so i was wondering if anyone could take a look at my code and see what i am doing wrong. The program is attempting to run a stepper motor off of a voltage range of 0 to 12 volts which has been scaled dow


Analog to Digital conversion

Started by leoshakeme in 68HC1213 years ago 4 replies

Hi, I am very new to microcontrollers. I am using a MC9S12DP256C on a trainer board. To develop I'm using CodeWarrior and C code. It is all...

Hi, I am very new to microcontrollers. I am using a MC9S12DP256C on a trainer board. To develop I'm using CodeWarrior and C code. It is all overwhelming. I am trying to write a program that will compare two voltages and depending on which voltage is greater to send a digital signal to a stepper motor controller. My biggest problem stems from interfacing. I dont know how to initializ


Stepper Motors

Started by laruejohnson69 in 68HC1214 years ago

Good morning... I have written a program using the Motorola M68HC12 reference manual. What I am trying to succeed in is to get the...

Good morning... I have written a program using the Motorola M68HC12 reference manual. What I am trying to succeed in is to get the LED's to display voltages that are applied to the potentiameter (0-5 volts). My motor is not stopping at these applied voltages. Example: If I want m


boil detector

Started by Anonymous in 68HC1213 years ago 22 replies

Guys, I need to design a closed loop system with a temp sensor input and a stepper motor output, the temp sensor is not in contact with...

Guys, I need to design a closed loop system with a temp sensor input and a stepper motor output, the temp sensor is not in contact with the object being measured and may be about 1m away. I need to detect when a liquid is boiling and take action to reduce and maintain at a simmer. Any suggestions on what to use for the temp/image sensor. Best Regards


Re: Stepper Motors

Started by ianc...@gmail.com in 68HC1212 years ago

Jackie, > > Good morning... I have written a program using the Motorola M68HC12 > reference manual. What I am trying to succeed in...

Jackie, > > Good morning... I have written a program using the Motorola M68HC12 > reference manual. What I am trying to succeed in is to get the LED's > to display voltages that are applied to the potentiameter (0-5 > volts). My motor is not stopping at these applied voltages. So your trying to characterize an analog value on an LED? sounds like a job for the ADC system on


Anyone Interested in Consulting Work?

Started by "Darrell N." in 68HC1211 years ago

Hi all. I know this probably isn't the proper forum for this, but I am looking for an experienced HC12 programmer to do some work on a very...

Hi all. I know this probably isn't the proper forum for this, but I am looking for an experienced HC12 programmer to do some work on a very interesting project. We are building a hybrid powered sailboat, a large catamaran. It has two electric motor systems for propulsion, and a DC generator to supply power. In addition, there are 2 Lithium Polymer battery packs that supply energy...


Controlling a Servo with the HC12?

Started by defe...@gmail.com in 68HC129 years ago 18 replies

Hello, I am trying to control a Parallax Continuous Rotation Servo (#900-00008) using my MC9S12C128CFUE. I need to to use PWM to give a pulse...

Hello, I am trying to control a Parallax Continuous Rotation Servo (#900-00008) using my MC9S12C128CFUE. I need to to use PWM to give a pulse 1.5ms(rest), 1.3ms (clockwise), and 1.7ms (counter-clockwise) every 20ms/50Hz. I can spin the motor, but it only ever spins in 1 direction and I can not make it stop spinning even if I try to calibrate it. Any help is appreciated. Here is my current co...


Quadrature Inputs

Started by Paul Johnson in 68HC1216 years ago 23 replies

I'm surprised, given the number of embedded applications involving motor control or data capture, that almost no micros out there...

I'm surprised, given the number of embedded applications involving motor control or data capture, that almost no micros out there support quadrature input. On our products, we use Xilinx FPGA's that provide 8 sets of quadrature input and handle all the accumulation, etc. Howev


Re: entry level S12 tools

Started by Allen, Nick in 68HC1213 years ago 2 replies

I'll second this! I started out working with a 68hc12bc32 eval board. Got some motor control code working, and began to migrate to a...

I'll second this! I started out working with a 68hc12bc32 eval board. Got some motor control code working, and began to migrate to a 9s12 eval board. Got lost in the zillions of differences and went back to hc12. I read in this forum about difficulties within each part number between mask sets and other confusing issues. I'm going through learning cu


Semaphores and Processor Reset

Started by Shayne C. Rich in 68HC1214 years ago 4 replies

Hi, I've got two questions I'd like to ask the group. I am running a multi-threaded OS on a 9S12DP256 MCU, my compiler is ICC6 ...

Hi, I've got two questions I'd like to ask the group. I am running a multi-threaded OS on a 9S12DP256 MCU, my compiler is ICC6 Pro. I am using global control structs to handle my motor control systems. The control thread implements a PI controller, a separate serial thread rea


Re: entry level S12 tools

Started by Edward Karpicz in 68HC1213 years ago

> > I'll second this! > I started out working with a 68hc12bc32 eval board. > Got some motor control code working, and began to >...

> > I'll second this! > I started out working with a 68hc12bc32 eval board. > Got some motor control code working, and began to > migrate to a 9s12 eval board. Got lost in the zillions > of differences and went back to hc12. I read in this Zillions of differences? First we were using 912D60A and had about 10 products with it.


Dragon 12 SCI

Started by nishanth_r in 68HC128 years ago 7 replies

Hey All, I'm working on a project with a Dragon12 board running codewarrior for the code. i'm trying to get position control of an arm...

Hey All, I'm working on a project with a Dragon12 board running codewarrior for the code. i'm trying to get position control of an arm connected to a motor. I manged to get this done, but it kinda oscillates and so my professor suggested i analyse the position values to get a proper proportional control value. i'm trying to use SCI to get output my position error values so i can plot them. ...


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


Opinion needed :)

Started by Amit S Shrigondekar in 68HC128 years ago 3 replies

Deal All, I am a student and have to do a project using MC9S12C32 controller. I am thinking of implementing CAN protocol for...

Deal All, I am a student and have to do a project using MC9S12C32 controller. I am thinking of implementing CAN protocol for transferring data collected from temperature sensor +controller to master node and master node will then send control signals to stepper motor to control its speed . Is implementing CAN protocol tough? I saw that MC9s12C32 does have a support for CAN ...


Input Capture and Output Compare for MC9S12DP256

Started by yawjiun_84 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 Output Compare function to generate a step pulse train to a stepper motor driver. Meanwhile, Input Capture function will be used to detect the quadrature encoder input as a feedback. Any reference or sample code on this? W...


HC9S12NE64 and Binary Serial Monitor Question

Started by equaltemperment in 68HC1213 years ago 5 replies

I am evaluating the Softec AK-S12NE64-A Starter Kit with the Freescale HC9S12NE64 that comes with built in Ethernet and webserver ...

I am evaluating the Softec AK-S12NE64-A Starter Kit with the Freescale HC9S12NE64 that comes with built in Ethernet and webserver software ( http://softecmicro.com/products.htm l?type=detail& title=AK-S12NE64-A). The board works great, and with the onboard motor controller, temperature sensor with