Address mark wakeup messages not being recognized

Started by garyolmstead in 68HC1211 years ago 2 replies

I am using the 9S12A32 serial port and I want to use address mark wake up. I have set the SCI for 9 bits, one stop bit, no parity, interrupts...

I am using the 9S12A32 serial port and I want to use address mark wake up. I have set the SCI for 9 bits, one stop bit, no parity, interrupts on, transmitter and receiver on, address mark wakeup. I am manually setting (and later clearing) bit 8 in SCIDRH. Using the True Time Real Time Debugger, I can see characters coming into the receive buffer, but the interrupt is never triggered, ...


Transmit complete interrupt discrepancy

Started by pi eng in 68HC1213 years ago 2 replies

Hi, I have written an SCI interrupt routine which caters for all the SCI interrupts. To test the code I am transmitting and...

Hi, I have written an SCI interrupt routine which caters for all the SCI interrupts. To test the code I am transmitting and receiving via the loopback path. The test code sends a large packet of data. On the last character of the packet and within the interrupt routine, the Tx interrupt is turn


falling edge interrupts

Started by juju1414 in 68HC1215 years ago

Hello, I need some help in writing code for some srf04's. I need to measure the time from the falling edge of the trigger signal...

Hello, I need some help in writing code for some srf04's. I need to measure the time from the falling edge of the trigger signal to the falling egde of the echo signal. I am thinking of linking the trigger output pin to an interrupt pin to catch the time of the falling edge


Timer interrupts

Started by Stefan Loos in 68HC1213 years ago 3 replies

Hi Can u tell me how to clear timer interrupt flags if you have two timers running ? Do you have to wrtie TFLG1 = 0x01 or ...

Hi Can u tell me how to clear timer interrupt flags if you have two timers running ? Do you have to wrtie TFLG1 = 0x01 or TFLG1 |= 0x01 to clear Timer1 flag and TFLG1 = 0x02 or TFLG1 |= 0x02 to clear Timer2 flag in the isr ??? Thx for help Stefan


external UART and SCI instruction

Started by Sim IPS in 68HC1210 years ago

Hi, I am using external UART(xr16c854) for communication with mc9s12dj256b and I am disabling maskable interrupts by using SCI instruction .Is...

Hi, I am using external UART(xr16c854) for communication with mc9s12dj256b and I am disabling maskable interrupts by using SCI instruction .Is it make any problem in my communication with UART?(ie,is it make any problem in receiving or transmitting data with UART?) thanks Simi _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Scanning of this message and addit...


Timer Compare Help needed!

Started by drew...@gmail.com in 68HC128 years ago 3 replies

I am trying to use TC7 on an MC9S12NE64 to drive a time based interrupt. I can't use RTI since it is too slow. I am trying to figure out what I...

I am trying to use TC7 on an MC9S12NE64 to drive a time based interrupt. I can't use RTI since it is too slow. I am trying to figure out what I am doing wrong. It does not seem to matter what I load into TC7, the time interrupt never changes. I have the following initializations TSCR1 = 0x80; // Enable Timer TIOS = 0x80; //Channel 7 = output compare TIE = 0x80; //Enable TC7 interrupts ...


HCS12 Nested Timer Interrupts

Started by varneybob in 68HC1215 years ago 3 replies

I am using the HCS12 eval board and have a mask set 1K79X part. While executing the Timer5 interrupt service routine, I need to be ...

I am using the HCS12 eval board and have a mask set 1K79X part. While executing the Timer5 interrupt service routine, I need to be interrupted by a higher-priority Timer4 interrupt service routine. However, it appears that the higher-priority Timer4 interrupt is never gaining acc


How to use the external ram (HC12compact)

Started by sebastian_nowak2 in 68HC1212 years ago 16 replies

Hello, i=B4m working with the HC12compact, ICC12, noice and a compod. my problem is that i can=B4t use the external ram from $2000 to...

Hello, i=B4m working with the HC12compact, ICC12, noice and a compod. my problem is that i can=B4t use the external ram from $2000 to $8000. in icc12 i set the program memory to $0900 the data memory to $0800=20 (this is the internal ram $0800 to $0C00). the stackpointer is set to 0C00. with these settings everything works well, until i use more than 10=20 integers or 4 interrupts. h...


flash app vs banked flash app

Started by Bernie Boos in 68HC1213 years ago 25 replies

Hi everyone, I'm using an MC9S12A256B ucontroller and have working code when I compile and run in a regular flash application. But my code...

Hi everyone, I'm using an MC9S12A256B ucontroller and have working code when I compile and run in a regular flash application. But my code has gone above the ~32.6kB and I have to switch to the Banked flash app. My code is compiling (after making sure my interrupts were in non-banked flash) and downloads to the ucontroller. But when i run the code and