A few problems: Flash Start up & IRQ

Started by chiefwigms in 68HC1215 years ago 5 replies

Hey guys - I'm having a couple problems with the 9S12DP256 and our robot. First: We have two DC motors wired to a SN754410...

Hey guys - I'm having a couple problems with the 9S12DP256 and our robot. First: We have two DC motors wired to a SN754410 h-bridge (VCC1 is off of the DP256, while VCC2 is off of an external battery pack), which is wired from PWM pins on the DP256. Additionally


Oscillator from s12dp256 to s12Xdp512

Started by jpdi...@free.fr in 68HC1212 years ago 3 replies

Hye I'm trying to go from 9s12dp256 CPU to 9s12Xdp512, with the same printed board. I'm able to download and debug program (ICC12...

Hye I'm trying to go from 9s12dp256 CPU to 9s12Xdp512, with the same printed board. I'm able to download and debug program (ICC12 ImageCraft V 7 compiler and NoIce debugger) But I think the CPU run with his internal clock, not quartz : - some functions (delay) developped before are very slow - the PLL doesn't run too. When I compare data sheets, I see dp256 family : Collpitts oscil...


9S12DP256 Won't Run Without BDM

Started by Kellogg Dave in 68HC1216 years ago 9 replies

I'm using Future's 9S12 BADGE board. When BDM is connected and used to start the program, all is well. With no BDM connected, when...

I'm using Future's 9S12 BADGE board. When BDM is connected and used to start the program, all is well. With no BDM connected, when power is turned on, the program runs for a few hundred milliseconds and then seems to hang. Any ideas? 607-656-2597


FP Context Save and Restore

Started by Shayne C. Rich in 68HC1214 years ago

Hi, I wonder if I could apply to your combined experience and wisdom? I am trying to do a floating point context save and restore...

Hi, I wonder if I could apply to your combined experience and wisdom? I am trying to do a floating point context save and restore in ICC6, on a 9S12DP256 device. ImageCraft has provided two functions and a struct for this purpose. The struct and function prototypes are found in the


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


Expanded RAM

Started by Anonymous in 68HC1214 years ago 7 replies

I've just design a board with 9s12dp256 and expansion RAM following AN2408/D, following example 5 : "Word wide RAM SRAM ECS...

I've just design a board with 9s12dp256 and expansion RAM following AN2408/D, following example 5 : "Word wide RAM SRAM ECS gated". The memory chip is exactly AS7C4098, as in the AN, that means 256k words. The first goal is to debug programs in RAM area, to avoid wr


Software reset

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

Hi, is there a way to generate a reset from software on the 9S12DP256? Shayne C. Rich Microbial Aerosol Biodetection System ...

Hi, is there a way to generate a reset from software on the 9S12DP256? Shayne C. Rich Microbial Aerosol Biodetection System 1780 N Research Park Way North Logan, UT 84341 Tel: 435-797-3431 Fax: 435-797-3328


BDLC module

Started by teleko7 in 68HC1215 years ago

Hi guys When working with a 9S12DP256?s BDLC m?dule, how does a node know that it is the one that has to append an IFR after...

Hi guys When working with a 9S12DP256?s BDLC m?dule, how does a node know that it is the one that has to append an IFR after the EOD of the message, and the type of that IFR?? For example, how do i know i must append a type 1, 2 or 3 IFR after a given data string?? where is


dwnloading to flash via dbug12

Started by Joe McCarron in 68HC1215 years ago 1 reply

Hi All, I am using dbug12 with 9s12dp256. When I use the "fload" cmd to load code into flash i get "Command Not Allowed In...

Hi All, I am using dbug12 with 9s12dp256. When I use the "fload" cmd to load code into flash i get "Command Not Allowed In EVB Mode" Is this correct? Can you only use this cmd if connected to the target via a pod? Thanks Joe


EEPROM write problems

Started by Dan Azari in 68HC1214 years ago

Hi all, I'm having a frustrating problem reliably writing a word to EEPROM on a 9s12dp256, and I'm hoping that there is an...

Hi all, I'm having a frustrating problem reliably writing a word to EEPROM on a 9s12dp256, and I'm hoping that there is an obvious oversight in my code. The first time I call my EEPROM write routine it works. However, subsequent calls fail to write the word, but PIVIOL and ACC


interrupt overhead in EVB mode (9S12DP256)

Started by ctrobot28 in 68HC1215 years ago 3 replies

My little program runs from ram, the board is in EVB mode (dbug12 in flash). It uses RTI interrupts, approx. as follows: ...

My little program runs from ram, the board is in EVB mode (dbug12 in flash). It uses RTI interrupts, approx. as follows: volatile int foo = 0; rti_interrupt_handler() { foo = 100; } test_func() { enable_rti_interrupts(); while (foo == 0); // spin


9S12DP256 & BDLC

Started by juppy999 in 68HC1214 years ago 1 reply

Hi All SAE J1850 defines PWM (41.6 kbps) and VPW (10.4 kbps) modes, but the BDLC controller on DP256 appears to be VPW...

Hi All SAE J1850 defines PWM (41.6 kbps) and VPW (10.4 kbps) modes, but the BDLC controller on DP256 appears to be VPW _only_. Have I missed something, or is the J1850 spec not fully implemented by the BDLC, despite the blurb suggesting otherwise? Regard


How do I initialize the stack for banked memory mode?

Started by codewarr2000 in 68HC1214 years ago 3 replies

All, How do I initialize the stack for banked memory for the 9S12DP256 in Start12.c? and, is it the same then for the...

All, How do I initialize the stack for banked memory for the 9S12DP256 in Start12.c? and, is it the same then for the 9S12DJ64 cpu? Compiler line has: -CpPpage=RUNTIME -Mb -D_HCS12 In Start12.c: Is not the stack being set with this macro


CPU don't Start without one pull-up on the SPI2 I use an 9s12dp256

Started by DUMAZET Jerome in 68HC1215 years ago 1 reply

Hi, I have an problem with the start up with an 9s12DP256B I have an IC supervisor for the reset At the power on the reset seem...

Hi, I have an problem with the start up with an 9s12DP256B I have an IC supervisor for the reset At the power on the reset seem be good the oscillator start (16Mhz) but the CPU don't start I had remark, when I touch with an 100ko resistor in my hand the PH4,5,6,7 (


my app erase/write to flash not working (9S12DP256)

Started by ctrobot28 in 68HC1215 years ago 2 replies

I'm using the algorithm from AN2204 to erase a single 256-word sector and then write a single word (as my test case). I finally...

I'm using the algorithm from AN2204 to erase a single 256-word sector and then write a single word (as my test case). I finally got it to complete without any error flags (PVIOL|ACCERR), but neither the erase nor the write has any effect on the memory. Someone please tell me if


Pb interrupt on timer

Started by Anonymous in 68HC1214 years ago 5 replies

Hello I use 9s12dp256, ICC12 pro compiler, NoIce debugger. In order to mask the errata on SPI (mask 1K79X) when CPHA bit set, which ...

Hello I use 9s12dp256, ICC12 pro compiler, NoIce debugger. In order to mask the errata on SPI (mask 1K79X) when CPHA bit set, which cause problem on SPTEF flag (MUCts00702 : SPI SPTEF flag set erroneously), I first write interrupt routine like this : //********************************************** #pragma interrupt_handler Spi0_isr


Connecting external RAM & LCD to the 9S12DP256

Started by m_bernier in 68HC1215 years ago 1 reply

Hi, I looked through a lot of application notes from Motorola (AN2287 & AN2408) but i have no clear answer on how to use the...

Hi, I looked through a lot of application notes from Motorola (AN2287 & AN2408) but i have no clear answer on how to use the external bus. I want to use expanded narrow mode (8 bit data) to interface a external SRAM & LCD controller (T6963). I need the intern


Restoring the Serial Monitor on 9s12c32 with CW 2.1, 3 or 4.5

Started by aerowesty2000 in 68HC1212 years ago

Could anyone tell me how to load the serial monitor back onto a 9S12C32 MCU using Metrowerks Codewarrior and a P&E BDM. I am familiar with...

Could anyone tell me how to load the serial monitor back onto a 9S12C32 MCU using Metrowerks Codewarrior and a P&E BDM. I am familiar with developing C programs on CW 2, 3, 4.5 for the 9S12dp256 But, have not done any assy programming. We have a blank 9S12C32 in which we want to load the serial monitor. How do I restore the serial monitor, where do I get it, how do I configure CW to...


Input Capture register access in ECT

Started by teleko7 in 68HC1215 years ago

Hi. I?m working with a 9s12dp256 and trying to build in a polaroid?s ultrasonic transducer, working with the ECT module. But...

Hi. I?m working with a 9s12dp256 and trying to build in a polaroid?s ultrasonic transducer, working with the ECT module. But when I try to copy Input Capture data from a IC register to an "int" variable, always get 0x00. I know it must be as easy as it seems to be


can't find port A/B info

Started by ctrobot28 in 68HC1215 years ago 4 replies

I've got an LCD hooked to a 9S12DP256, via port A for data and the top 3 bits of port B for control (it's in normal single chip...

I've got an LCD hooked to a 9S12DP256, via port A for data and the top 3 bits of port B for control (it's in normal single chip mode). Naturally, it's not working. I've set the DDR bits for the ports, but I don't know if there's anything else I should set for port control,