EmbeddedRelated.com
The 2024 Embedded Online Conference

Newbie: Cant write code to HC12

Started by florianschrbr in 68HC1219 years ago 12 replies

Hello! i'm new in this group and in hcs12 software development! i wrote an "hello world" application. Compiling work...

Hello! i'm new in this group and in hcs12 software development! i wrote an "hello world" application. Compiling work fine, but when i send the hello.s19 file to my MC9S12C32 the ICC tells: TwinPEEKs Monitor V2.1 for ChipS12.C32 Copyright


standalone EEPROM write on MC9S12A256B / 1k79x ?

Started by christian_theiss_2003 in 68HC1220 years ago 6 replies

Hi all, I have come across of some strange unexplained behaviour if I try to write to the 4k EEPROM of my HCS12 derivative: ...

Hi all, I have come across of some strange unexplained behaviour if I try to write to the 4k EEPROM of my HCS12 derivative: a) writing to the EEPROM with BDM attached works walking through my application code which successfully writes to the EEPROM b) wri


Send data to PC (C#) via DB9 Serial?

Started by subs...@styx66.net in 68HC1217 years ago 10 replies

I've been searching through the large amounts of threads in here, but haven't quite found what I'm looking for. My project is fairly simple -...

I've been searching through the large amounts of threads in here, but haven't quite found what I'm looking for. My project is fairly simple - a large array of temperature sensors muxed into our HCS12's (Axiom CML12SDP256) ATD ports, whose values are then sent to our PC for graphical/numerical display. The code on both ends is complete, its the code that drives the middle that I can't qui...


Standalone mode & 'Banked_flash' build target

Started by christian_theiss_2003 in 68HC1221 years ago 2 replies

Hi you guys at HC(S)12 yahoo group/mailing list, ...as I introduced myself yesterday a little I want to give you my setup...

Hi you guys at HC(S)12 yahoo group/mailing list, ...as I introduced myself yesterday a little I want to give you my setup configuration on the hcs12 target I am working on: * M68EVB912DP256 eval board from mot around M68Kit912DP256 bundle * uController MC9S12DP256, rev


IAR C + Motorola = some strange things

Started by lenux22 in 68HC1221 years ago 5 replies

Hello! We use HCS12 family controller with IAR compiler. This is a simple code: -------------------------------------- ...

Hello! We use HCS12 family controller with IAR compiler. This is a simple code: -------------------------------------- unsigned char B[4]; unsigned int *ptr; B[0] = 1; B[1] = 2; ptr = ( unsigned int* )B; ---------------


Bluetooth modules

Started by Mohammed El Korek in 68HC1217 years ago 3 replies

Hello, I am looking at a Bluetooth OEM module called the KC-21. This module has a 24 pin IC which allows interfacing options to an SPI and a...

Hello, I am looking at a Bluetooth OEM module called the KC-21. This module has a 24 pin IC which allows interfacing options to an SPI and a UART (SCI in hcs12 terms). I was wondering on options regarding having an application where one bluetooth module is connected through the serial port to a workstation while the other module is interfaced to a microcontroller. No need for a fancy ap...


HCS12 LCD with 74HC164 or 74HC595

Started by hc08jb8 in 68HC1220 years ago 3 replies

Hi All, I have seen some schematics where a HD44780 based LCD is hooked up using 74HC164 or 74HC595 (serial shifter chips, I...

Hi All, I have seen some schematics where a HD44780 based LCD is hooked up using 74HC164 or 74HC595 (serial shifter chips, I guess), this mode only uses a few pin resource on the MCU. I did look at the datasheets of the 164/595 but couldnt figure out much on the software pa


Compiling Speed Issue in CodeWarrior

Started by a_ribero in 68HC1219 years ago 4 replies

Hi there: I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert 2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000...

Hi there: I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert 2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000 SP4. The compiler options are the basic ones generated by the Wizard: -BfaGapLimitBits4294967295 -D_HCS12 -D__NO_FLOAT__ -Mb Only CodeWarrior IDE is running in foreground. A simple PE project with


HCS12 COP Reset

Started by Adrian Vos in 68HC1220 years ago 2 replies

Hi All, I am using the DP256. I am using the COP reset to initiate a desired reset at times, but I am also trying to use it to...

Hi All, I am using the DP256. I am using the COP reset to initiate a desired reset at times, but I am also trying to use it to detect corrupted firmware (the application is field programmable firmware upgradable with protected firmware permanent). I was planning on detecting t


EVB 912DP256 SCI Problems

Started by nealskura in 68HC1222 years ago 2 replies

Hello, I am currently writing development software for the HCS12 DP256 EVB. I am trying to test software functionality through...

Hello, I am currently writing development software for the HCS12 DP256 EVB. I am trying to test software functionality through SCI data dumps to a HyperTerminal program running on my workstation. Currently, I am not getting any input in HyperTerminal. As I trace


Trigger A occurred on HCS12 & CW6.1

Started by AndreaT in 68HC1213 years ago

I'm very new to embedded systems programming and learning about scheduling. I am getting a Trigger A occurred in the command window of the...

I'm very new to embedded systems programming and learning about scheduling. I am getting a Trigger A occurred in the command window of the debugger when I hit RUN. When I step through the code it seems to reset? at asm cli at the end of the code. Please let me know if you all have any ideas. /* Started with Valvano Fixed Priority Scheduler. System should light two LEDs alternately every 500...


Recommendation on HCS12 IDE platform

Started by Tim C. Perry in 68HC1221 years ago 5 replies

I am trying to decide what software development environment to use to develop real-time applications for a Motorola MC9S12Axx...

I am trying to decide what software development environment to use to develop real-time applications for a Motorola MC9S12Axx microprocessor. Software subsystems I will develop to run on the uproc include: - multidrop, interrupt driven, serial communication with error detection and


Power supply rise time

Started by Pat Fitzpatrick in 68HC1221 years ago 4 replies

Hi list, Does anyone out there know if there are any issues with a slow rise time on VDD for the HCS12 processor family (D64...

Hi list, Does anyone out there know if there are any issues with a slow rise time on VDD for the HCS12 processor family (D64 processor in particular)? I haven't found anything about it in the datasheet. Due to the large amount of capacitance on the power bus in o


CodeWarrior type cast objptr->funcptr

Started by Karsten Obenaus in 68HC1221 years ago 2 replies

We're using the Metrowerks Codewarrior for HC12 IDE and have encountered a problem with the compiler and type casting from an object...

We're using the Metrowerks Codewarrior for HC12 IDE and have encountered a problem with the compiler and type casting from an object pointer to a function pointer. Any help would be greatly appreciated. We'd like to use the HCS12 SGF NVM Standard Software Driver in our current


sample msCAN code for HCS12

Started by Steve Letkeman in 68HC1220 years ago

A number of people have asked me for some sample code for the newest version of msCAN, here it is... // This file may be...

A number of people have asked me for some sample code for the newest version of msCAN, here it is... // This file may be freely distributed as long as this header remains // intact in order to encourage you to visit our web site // at www.zanthic.com home of the CAN-4-U


Help with DP256 'C' Code

Started by Toby Merridan in 68HC1221 years ago 9 replies

I am a hardware engineer who has managed to cobble together some test code for this HCS12 project (dp256) basically I have set up a...

I am a hardware engineer who has managed to cobble together some test code for this HCS12 project (dp256) basically I have set up a RS232 link back to windows terminal. I am testing some inputs (SPI bus) and Digital Outputs, printing some blurb onto the screen when each channel is switched


MSCAN problem

Started by Johannes Schmid in 68HC1215 years ago 13 replies

Hi everybody! I have a problem using the CAN-Bus interface of the HCS12 used in the MicroSquirt(tm) ECU we use on our Formula race...

Hi everybody! I have a problem using the CAN-Bus interface of the HCS12 used in the MicroSquirt(tm) ECU we use on our Formula race car. Following the various data sheets I came up with the following code: void CanInit(void) { /* Set up CAN communications */ /* Enable CAN, set Init mode so can change registers */ CANCTL1 |= 0x80; CANCTL0 |= 0x01; while(!(CANCTL1 & 0x01)) ...


BDM for linux

Started by "Jim...@googlemail.com [68HC12]" in 68HC127 years ago 4 replies

Hi Guys I feel like I've come full circle. Last year I asked if any one had successfully managed to get a eeprom burner for HCS12 to work...

Hi Guys I feel like I've come full circle. Last year I asked if any one had successfully managed to get a eeprom burner for HCS12 to work in linux. I'm back at again this year, if you've managed to get it working, could you let me know what programs you use and what bdm? I'm currently doing all the development work on linux, then copying it all across to windows and running NoIce de...


IIC bus locks

Started by Jordi Costa in 68HC1219 years ago 11 replies

Hi all, I have HCS12 communicating with just an IIC slave device (M41T56, DS1307). If for some reason (program restart, parasitic...

Hi all, I have HCS12 communicating with just an IIC slave device (M41T56, DS1307). If for some reason (program restart, parasitic noise on bus, .......) communication is stoped while slave is sending a 0, SDA line is held down and the master cannot control the bus again and an arbitration error


Codewarrior & flash data problem

Started by Jordi Costa in 68HC1221 years ago 2 replies

I sent this question days ago and I don't receive any answer. Now I will try to explain the problem better. I'm new in HCS12...

I sent this question days ago and I don't receive any answer. Now I will try to explain the problem better. I'm new in HCS12 programming and after successful tests with Codewarrior Processor Expert using SPI, SCI, timers, etc., now I'm trying to store some data in flash. I thought that C



The 2024 Embedded Online Conference