MC9S12DP256 Security Bit

Started by Bill in 68HC1214 years ago 2 replies

I keep inadvertantly setting the security bit on the 9S12. How can I avoid this? Unsecure software puts it back right again, but I must be...

I keep inadvertantly setting the security bit on the 9S12. How can I avoid this? Unsecure software puts it back right again, but I must be loading something into flash memory that says "Secure" this MCU. Any tips or suggestions?


IIC Bus on MC9S12DP256

Started by domi2c in 68HC1213 years ago 1 reply

Hi everybody I've bought a miniDragon board from Wytek and been trying to run the IIC block. But I'm lost in the Motorola...

Hi everybody I've bought a miniDragon board from Wytek and been trying to run the IIC block. But I'm lost in the Motorola documents. All I would like to have is an assembler example of starting, addressing a device and stopping the Bus. Have anybody already done


Re: IIC Bus on MC9S12DP256

Started by sleidiman in 68HC1213 years ago

Hello! I?m only a beginner in programming ?C but I try to help you. I have a similar problem. I want to communicate with a temperature ...

Hello! I?m only a beginner in programming ?C but I try to help you. I have a similar problem. I want to communicate with a temperature sensor over I2C. I show you my init-function: (but it isn?t in assembler) void initI2C(void) { IBFD=0x1F; /*here you must define the frequency divider*/ /*Block Guide page.16-25*/ IBAD=0xA0; /*Sla


Illegal Breakpoint

Started by Ming Jiang in 68HC1215 years ago 1 reply

Hello all, I am having a problem with my MC9S12DP256 eval board. Hopefully somebody can help me out. I set my target in ICD-12...

Hello all, I am having a problem with my MC9S12DP256 eval board. Hopefully somebody can help me out. I set my target in ICD-12 debugger mode. Most times I ran my code by hitting F5 (Start/Continue), suddenly it would stop on its own. and I saw the bottom message changed from RUNNING to ILLEGAL_BP. I


Text book

Started by Tushar Desai in 68HC1214 years ago 3 replies

Hi Can anyone please recommend a good text book for HSC12(MC9S12DP256 : 16-Bit Motorola Microcontroller) controllers dealing...

Hi Can anyone please recommend a good text book for HSC12(MC9S12DP256 : 16-Bit Motorola Microcontroller) controllers dealing specifically with embedded C/C++ programming languages. Thanks in advance. Regards Tushar ________________


sci routines icc12

Started by Cyril in 68HC1213 years ago 2 replies

Hello i would like to know whether anyone has routines in C ( for use with ICC12 compiler) that program SCI interface. I use...

Hello i would like to know whether anyone has routines in C ( for use with ICC12 compiler) that program SCI interface. I use axiom cml-9s12dp256 board and mc9s12dp256 MCU. any code would be very much appreciated. thanks.


Re: SCI Interrupt !! Help Please ...

Started by jluc...@hotmail.com in 68HC129 years ago

I am having the same trouble. Do I configure my interrupt for SCI1 or do I just change the vector call from $3E56 to $3E54? Thanks > >...

I am having the same trouble. Do I configure my interrupt for SCI1 or do I just change the vector call from $3E56 to $3E54? Thanks > > > > > Hi everyone, > I'm using an HCS12 microprocessor [MC9S12DP256] with a D-Bug12 V 4, > and I tried to use the SCI interrupt, but for some reason the > interrupt handler never been called even though I enabled all SCI > interrupts, e


DP256 CAN Transmission

Started by venki in 68HC1213 years ago 1 reply

Hi, Am a newbie to CAN. Am trying to implement a CAN driver on MC9S12DP256 micro eval board using metrowerks codewarrior. I have 2...

Hi, Am a newbie to CAN. Am trying to implement a CAN driver on MC9S12DP256 micro eval board using metrowerks codewarrior. I have 2 problems 1. There are 5 CAN channels in DP256. How to select the required channel ?.(We are using CANE bit and MODRR registers, still not transmitting) 2. We observed that the "sync" bit in CAN1CT


Problem in linking with metrowerks V1.0

Started by Florent VERRIERE in 68HC1215 years ago 3 replies

We use Metrowerks V1.0 to develop on a mc9s12dp256 and need to copy a project in a new one with a new directory name. After have...

We use Metrowerks V1.0 to develop on a mc9s12dp256 and need to copy a project in a new one with a new directory name. After have create a new project , files and copy of sources, it is impossible to link our application In fact, compilation of different library is done without prob


Port IRQ's

Started by Graham Tricker in 68HC1214 years ago 2 replies

Hi I have a problem with interrupts on port P on a MC9S12DP256. I have two clock signals on P2 and P7 running at 19200 baud. I...

Hi I have a problem with interrupts on port P on a MC9S12DP256. I have two clock signals on P2 and P7 running at 19200 baud. I am interrupting on the rising edge of each signal, I can run each of these independently with no problems. When I run both interrupts simultaneously I


hcs12 flash

Started by in 68HC1215 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


Potentiometer dragon12

Started by mkarthik_reddy in 68HC1211 years ago

Hi all, I have a problem when trying to read the analog value from the onboard potentiometer on Dragon 12(mc9s12dp256).I came to know...

Hi all, I have a problem when trying to read the analog value from the onboard potentiometer on Dragon 12(mc9s12dp256).I came to know that the potentiometer is internally connected to pad07 and the result is stored in the adr00h register.I tried to display it on the LCD.It gives a blank space.These are my ATDCTL config words _io_reg[atd0ctl2]=0x80; _io_reg[atd0ctl3]=0x08; _io_reg...


SCI baud rate.

Started by mohan kumar in 68HC1214 years ago 3 replies

Hi, I have been using SCI0 of MC9S12dp256 and communicating with the com1 of PC through Hyperterminal. It seems to work fine...

Hi, I have been using SCI0 of MC9S12dp256 and communicating with the com1 of PC through Hyperterminal. It seems to work fine (Able receive and transmit ) upto to baud rate 38400. But if I try to configure to 57600 or 115K communication is not working. The Bus clock is 8Mhz (16MHZ


SCI Interrupt !! Help Please ...

Started by the_r8_one in 68HC1213 years ago 11 replies

Hi everyone, I'm using an HCS12 microprocessor [MC9S12DP256] with a D-Bug12 V 4, and I tried to use the SCI interrupt, but for...

Hi everyone, I'm using an HCS12 microprocessor [MC9S12DP256] with a D-Bug12 V 4, and I tried to use the SCI interrupt, but for some reason the interrupt handler never been called even though I enabled all SCI interrupts, enabled reciever and transmitter, and I used the vect


Interrupts

Started by R R Sridhar in 68HC1211 years ago 1 reply

Hi, I am using MC9S12DP256 Controller. Kindly let me know, how do I handle the timer interrupt. what is the interrupt function to handle the...

Hi, I am using MC9S12DP256 Controller. Kindly let me know, how do I handle the timer interrupt. what is the interrupt function to handle the timer interrupt. Can I use the counter module along with the timer simultaneously. Thanks


RTI interrupt doesn't work

Started by JCL in 68HC1213 years ago 2 replies

Hi all, I'm having a problem using RTI interrupt with my miniDragon board. I'm using ICC12 as a compiler and the vectors file brought with...

Hi all, I'm having a problem using RTI interrupt with my miniDragon board. I'm using ICC12 as a compiler and the vectors file brought with the compiler. I just want to toggle the PortP 0 bit at every RTI interrupt and scan it with a scope and nothing appears. Here is my code : #include #pragma interrupt_han


Standalone mode & 'Banked_flash' build target

Started by christian_theiss_2003 in 68HC1215 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


soft resetting HC12 from RAM

Started by br g in 68HC1214 years ago 1 reply

Hi, I am trying to reset the MC9S12DP256 controller through software. I am using COP watchdog reset for this. I am doing it in...

Hi, I am trying to reset the MC9S12DP256 controller through software. I am using COP watchdog reset for this. I am doing it in assembly. I got succeeded in resetting the device when I am executing the code in flash. But the device is hanging when I am trying to execute the same code in R


SCI Rx Interrupt Only Works Once On S12DP256

Started by jmey...@emittechnologies.com in 68HC129 years ago 20 replies

I'm working on a Dragon12-P board from evbplus.com containing the mc9s12dp256 and using CW 5.9.0 for a compiler. I'm a beginner, too. :) I've...

I'm working on a Dragon12-P board from evbplus.com containing the mc9s12dp256 and using CW 5.9.0 for a compiler. I'm a beginner, too. :) I've got a C program that collects data from about 10 inputs, concats the data into a single string, and transmits the data upon receiving anything on SCI1. Eventually, I want to send specified data based on different string inputs. I am using Receiver Inte...


Read Flash Using Cosmic Zap

Started by Graham Tricker in 68HC1213 years ago

Hi I need to read the contents of a section of flash on a mc9s12dp256 part to check what is actually programmed. Does...

Hi I need to read the contents of a section of flash on a mc9s12dp256 part to check what is actually programmed. Does anyone know if this is possible using Cosmic Zap, all I have managed to find is a flash verify which checks against an s-record, but I only want to ch