is there a delay time after flash write?

Started by ctrobot28 in 68HC1214 years ago 2 replies

My program on 9S12DP256 does software-controlled power-off - i.e. it detects when power switch is off, then writes some data...

My program on 9S12DP256 does software-controlled power-off - i.e. it detects when power switch is off, then writes some data from ram to flash, then turns off power to itself. (Actually turns off the external power, not just doing a "stop" instr.) But the data is not


PWM & Processor Expert

Started by Jordi Costa in 68HC1215 years ago

I'm trying to get 9S12DP256 PWM working under CodeWarrior Processor Expert. I should generate a single shot and get an event at this...

I'm trying to get 9S12DP256 PWM working under CodeWarrior Processor Expert. I should generate a single shot and get an event at this end. The bean includes the event OnEnd(), that is theoretically called when the number of specified cycles are generated, and requires events enabled, but when in Bean Propert


dbug12 load addr confusion - 9S12DP256

Started by ctrobot28 in 68HC1214 years ago 1 reply

Trying to figure out why my program won't even start when loaded in flash -- I'm comparing to dbug12's s-record file, and I'm...

Trying to figure out why my program won't even start when loaded in flash -- I'm comparing to dbug12's s-record file, and I'm puzzled by the load addresses. The start address has to be stored at the reset vector, 0xfffe, which as an s-record load address would be 0xffffe,


Functions pointers

Started by Anonymous in 68HC1212 years ago 19 replies

Hello all ! I use ICC12 professionnal, with BDM Multilink. The processor 9s12dp256 is in single chip mode (256K flash, 12K Ram). I...

Hello all ! I use ICC12 professionnal, with BDM Multilink. The processor 9s12dp256 is in single chip mode (256K flash, 12K Ram). I use two project?: - the first is the complete project, which is flash into Eprom - the second is a "debug" project. I run it into Ram area, and when functions are OK, I put them in the complete project.


Measuring PWM /w input capture ECT

Started by jeffguilfoil in 68HC1215 years ago 20 replies

Hi, I am trying to do some basic PWM input using input capture with the ECT. I do not understand why it is not working. I've got...

Hi, I am trying to do some basic PWM input using input capture with the ECT. I do not understand why it is not working. I've got a HCS12 (9S12DP256). Here's some code: PWME EQU $A0 PWMPOL EQU $A1 PWMCLK EQU $A2 PWMPRCLK EQU $A3 PWMCAE EQU $A4 PW


put const datas in paged area with ICC12

Started by Anonymous in 68HC1212 years ago

Hello ! I use ICC12 professionnal version, with NoIce debugger, 9s12dp256 processor. I wrote a program for a graphic LCD display,...

Hello ! I use ICC12 professionnal version, with NoIce debugger, 9s12dp256 processor. I wrote a program for a graphic LCD display, using font characters (9 character sets). So I wrote before a program which translates graphic BMP windows files with fonte character into texte files (on request, if somebody interested, I can upload the source of


How to use SRecCvt on S19 compiled by ICC12

Started by zhao47803 in 68HC1214 years ago 1 reply

Hi, I just tried to compile the example "hello world" that comes with ICC12. I chose "9s12dp256 12k ram mode" for the target. ...

Hi, I just tried to compile the example "hello world" that comes with ICC12. I chose "9s12dp256 12k ram mode" for the target. When I used SRecCvt to convert the hello.s19 by typing "sreccvt -b 16 0x30 32 -o new.s19 hello.s19". The conver


9S12DP256 codewarrior uCOS-II banked flash

Started by donpichol in 68HC1214 years ago 1 reply

Hi, At the moment, i got a uCOS-II-based-application running in "Flash Application" target (Codewarrior). I want to run it in...

Hi, At the moment, i got a uCOS-II-based-application running in "Flash Application" target (Codewarrior). I want to run it in "Banked Flash" mode. As you can think, some problems occur with assembly routines. After a while reading datasheets i reso


integer clock vs. binary clock (9S12DP256)

Started by ctrobot28 in 68HC1214 years ago 8 replies

The BDLC module has to be told (CLKS bit) whether the bus clock is integer or binary. For my board the clock (PLL) is 24 Mhz -...

The BDLC module has to be told (CLKS bit) whether the bus clock is integer or binary. For my board the clock (PLL) is 24 Mhz - if integer that would be 24,000,000, if binary it would be 25,165,824 (24*1024*1024). How do I tell which it is? The crystal is 4 Mhz, but the dat


SPI write MOSI ilde low?

Started by Mongkol sent by Nabble.com in 68HC1212 years ago 1 reply

Hello all, I am using the 9S12DP256 to the output signal of an SPI Analog Devices 16bit SPI ADC (AD7708) void init_spi(){ ...

Hello all, I am using the 9S12DP256 to the output signal of an SPI Analog Devices 16bit SPI ADC (AD7708) void init_spi(){ IO_PORTS_8(DDRS)=0x60; //MOSI ,CLK ouput IO_PORTS_8(SPI0BR)=0x47; //clk 20.1 kHz IO_PORTS_8(SPI0CR1)=0x58; //MSTR=1 ,CPOL =1,CPHA =0 ,SPE =1 IO_PORTS_8(SPI0CR2)=0x00; } void spi_wr(unsigned int code){char


Can the 9s12C32 module run Dbug12 4 in pod mode?

Started by goforitxx in 68HC1214 years ago 1 reply

I need to use my 9s12c32 module to work as a bdm pod. The 4.0 version of dbug12 has a Pod mode option to turn a 9s12dp256 into a...

I need to use my 9s12c32 module to work as a bdm pod. The 4.0 version of dbug12 has a Pod mode option to turn a 9s12dp256 into a bdm pod. Will this work with the 9s12c32? If so, how would it be loaded and setup? The module would need a bdm out port. How whould it be hoo