EmbeddedRelated.com
The 2024 Embedded Online Conference

I2C problems

Started by iamthewilldinkel in 68HC1218 years ago 2 replies

Hi all, I'm using the HCS12 on a PK-HCS12E128 dev board. I'm trying to interface with a D51307N real-time clock chip using the I2C bus...

Hi all, I'm using the HCS12 on a PK-HCS12E128 dev board. I'm trying to interface with a D51307N real-time clock chip using the I2C bus and having some issues. Can anyone please point me in the direction of some resources which may help me crack this nut? PS: I looked in the forum for support; the only I2C code -- which was commented in French -- I could find was for the GPIO pins. Th...


PWM driver for IGBTs

Started by ra in 68HC1221 years ago 4 replies

Hello I am planning to use an hcs12 for a windgenerator controler and was wondering if anyone has had any experience using its...

Hello I am planning to use an hcs12 for a windgenerator controler and was wondering if anyone has had any experience using its PWM output to drive an IGBT. Here the IGBT would be used to control the battery charge current (120 V, max 20 Amp). Could one simply pu


HCS12 Oscillator circuit

Started by Robert Imhoff in 68HC1220 years ago 11 replies

Hello, I am venturing into making a first circuit for a wind turbine controller based around the MC9S12DG256 or MC9S12A256...

Hello, I am venturing into making a first circuit for a wind turbine controller based around the MC9S12DG256 or MC9S12A256 with a Pierce oscillator. Would anyone be able to give me some feedback on the layout? In the device guide, Motorola says the tracks to the oscill


HCS12 devlopment with linux workstation

Started by hc08jb8 in 68HC1220 years ago 2 replies

Hello All I see that there is a gcc12 port for the HC(S)12 mcus, I would like to use a linux workstation for some hobby...

Hello All I see that there is a gcc12 port for the HC(S)12 mcus, I would like to use a linux workstation for some hobby project development. Quick question:- 1.) does the gdb connect to the serial monitor on the chips? 2.) is it possible to do source level debug


HCS12 and CAN-module

Started by mlammila in 68HC1220 years ago 6 replies

I used before HC12 (60 and 128) and it's msCAN-module which worked fine. Now I have tried to use MC9S12D64 microcontroller's...

I used before HC12 (60 and 128) and it's msCAN-module which worked fine. Now I have tried to use MC9S12D64 microcontroller's msCAN-module and I have got it to send messages (checked with oscilloscope) but there is something wrong in the sending because my monitor program (national


SofTec PKHCS12C32

Started by luismoreira_2004 in 68HC1219 years ago 4 replies

Hi All I just recently started with HCS12 and this weekend I decided to use it on a little project. I need to generate a 250uS pulse...

Hi All I just recently started with HCS12 and this weekend I decided to use it on a little project. I need to generate a 250uS pulse every 250mS. So I modified the example program RTI that came with the Kit, I changed the RTI prescale and modify the rest of the program to toggle PORTB bit 0. the program worked great... Then as I was going to add


Problems configuring PAD0..15 as input

Started by silvozemljic in 68HC1220 years ago 2 replies

Hello. I'm using Adapt9S12E128 Microcontroller Module with MC9S12E128CPV chip. and Metrowerks Codewarrior development...

Hello. I'm using Adapt9S12E128 Microcontroller Module with MC9S12E128CPV chip. and Metrowerks Codewarrior development environment for HCS12 chips. Here is my problem... I would like to use PAD0..15 lines which are conected to onchip ATD module as inputs, so that


Cosmic vs ImageCraft IDE for HCs12

Started by waltel506v in 68HC1221 years ago 3 replies

Hello, I'am currently using IAR with Motorola SDI BDM. We are in the process of having to move forward with new product using ...

Hello, I'am currently using IAR with Motorola SDI BDM. We are in the process of having to move forward with new product using 68S12a64. IAR has had multiple delays with release of update for new s12xx support since Nov2002 and now not due till Oct2003. Have attempted Co


Simulator/Debugger HCS12 Code warrior

Started by Rajasree A.N in 68HC1220 years ago 2 replies

Clear DayPlease guide me through some documentations for usng the components in code warrior simulator. Thanks, Rajasree ...

Clear DayPlease guide me through some documentations for usng the components in code warrior simulator. Thanks, Rajasree


looking for a MC9S12DP256 Bootloader

Started by apedroso11 in 68HC1218 years ago

Hi, I am looking for a CAN and/or Serial bootloader for HCS12 (MC9S12DP256) and I've found several options: 1. Serial (AN2153 and...

Hi, I am looking for a CAN and/or Serial bootloader for HCS12 (MC9S12DP256) and I've found several options: 1. Serial (AN2153 and AN2153SW) 2. LRAE (AN2546) and AN2720/D (Flash routines) 3. BootRom.zip (on this group, by lenux22) - Can anybody tell me what is the easiest one to start with? - I have tried to compile AN2153SW


HC12 ATD (Analog To Digital) Converter

Started by Ashley in 68HC1219 years ago

I have just started learning microcontrollers. Can someone help me to provide the program (C) of the following steps: 1....

I have just started learning microcontrollers. Can someone help me to provide the program (C) of the following steps: 1. Configure and enable the ATD (i.e. Analog to Digital) subsystem of the Motorola HCS12 (ATDCTL2, 3, 5). 10 Bit accuracy should be used. 2. Trigger conversions on 4 channels of the ATD. 3. Wait for the 4 co


HCS12 : how to reset manually ???

Started by montserret_maxime in 68HC1218 years ago 6 replies

Hi , Do you know how to reset manually HSC12 CPU ??? Many thanks in advance.

Hi , Do you know how to reset manually HSC12 CPU ??? Many thanks in advance.


HCS12 and CAN Bus

Started by hc08jb8 in 68HC1220 years ago 27 replies

Hi Folks I am trying to use CAN bus as a communication link in a project. I have a CAN 'Master' connected to the PC and...

Hi Folks I am trying to use CAN bus as a communication link in a project. I have a CAN 'Master' connected to the PC and several CAN 'Nodes'. These nodes are based on Motorola HCS12C32 MCU with CAN. I have got the communication working however I find the default maximum tran


HCS12 maximum SCI rate?

Started by big_bear_london in 68HC1220 years ago 4 replies

I have calculated the BR value and programmed the SCI for different rates without problem, but I haven't found a maximum rate...

I have calculated the BR value and programmed the SCI for different rates without problem, but I haven't found a maximum rate specified. I sort of assumed it was limited by the BR register, but I have not been able to get 115.2k to work. Has anyone else? Does anyone know the max rat


HCS12 flash security and cumulative programming

Started by Michal Konieczny in 68HC1219 years ago 2 replies

I'm writing some FLASH programming code, and now I have reached final step of securing the microcontroller. Unsecured microcontroller has ...

I'm writing some FLASH programming code, and now I have reached final step of securing the microcontroller. Unsecured microcontroller has lower bits of byte at 0xff0e equal to 0bxxxxxx10. Now if I want to secure it, I have to write something different there. Because LSB is already zeroed, there are two possibilities: one is to first erase it and then program


Re: Request for Help with hcs12 microcontroller!

Started by mukul tewary in 68HC1215 years ago 2 replies

Hi all, I just signed up for this group.. I needed to ask someone for some help.. I am working on a project, and a part of it requires me to...

Hi all, I just signed up for this group.. I needed to ask someone for some help.. I am working on a project, and a part of it requires me to take information that is being sent in from a GPS device and parse the string to extract the latitude and longitude coordinates and send it serially to a laptop connected via the second serial port.. The GPS device unfortunately can't be controlled to send...


hcs12 flash

Started by in 68HC1221 years ago 2 replies

Hello, I use an mc9s12dp256, and my apllication needs to save some parameters in Flash. So I have make a program but it...

Hello, I use an mc9s12dp256, and my apllication needs to save some parameters in Flash. So I have make a program but it doesn't work, it chras my CPU. My config: CPU: m9s12DP256 (single chip) Fosc: 16MHz Fbus: 8MHz If someone foud an erro


HCS12 Bank Switch

Started by Phillip Mastroianni in 68HC1219 years ago 6 replies

How does the compiler deal with bank switching? We current are using 9s12DP256 processor which uses banked memory. If there is a...

How does the compiler deal with bank switching? We current are using 9s12DP256 processor which uses banked memory. If there is a document which I can read that would be helpful. Also this process use .5u SST flash, which requires a fixed length srecord. Does the current build too


Motorola linear vs paged S records

Started by Karoly Molnar in 68HC1221 years ago 2 replies

Hi All, I am implementing a boot loader for the HCS12 processor family. I use the linear memory layout that is mentioned in the...

Hi All, I am implementing a boot loader for the HCS12 processor family. I use the linear memory layout that is mentioned in the AN2153 App. Note. (This is the format that is used by P&E Micro's Flash programmer and Cosmic's compiler and it is now supported by Metrowerks as


Need to generate s2 file simply!!! NEED HELP QUICK!!

Started by gogosgeorge in 68HC1219 years ago 4 replies

Hi guys, Im doing my engineering project now, and purchased 2 9S12E128 Evaluation boards to use, as well as 2 LCD 16char/2...

Hi guys, Im doing my engineering project now, and purchased 2 9S12E128 Evaluation boards to use, as well as 2 LCD 16char/2 line displays. I used to use a hc11 which was soooo easy to create a s19 file using as11, now its not that easy for me with the hcs12! I got cod



The 2024 Embedded Online Conference