EmbeddedRelated.com
The 2024 Embedded Online Conference

CONFIG_HZ_1000 vs. CONFIG_HZ_250

Started by Washington Ratso in comp.arch.embedded14 years ago 3 replies

I have changed my Linux 2.6.26 configuration from 250 HZ to 1000 HZ to get more samples when using oprofile in timer interrupt mode. ...

I have changed my Linux 2.6.26 configuration from 250 HZ to 1000 HZ to get more samples when using oprofile in timer interrupt mode. Besides increasing the number of timer interrupts, are there other effects from increasing HZ from 250 to 1000?


MSP430 Interrupts/Status Register

Started by chrisfrommunich in comp.arch.embedded20 years ago 1 reply

Hello to all, I have to program a TI MSP430 in Forth. My problem is that I'm not able write in the SR and in the IE1 register. I can write in...

Hello to all, I have to program a TI MSP430 in Forth. My problem is that I'm not able write in the SR and in the IE1 register. I can write in other controlregisters like ADC12CTL1... etc. The following is teh code I'm using for the "DINT" command: code /DisInt


Recursion in HLL

Started by Erich78 in comp.arch.embedded15 years ago 18 replies

Is there a way to detect Recursion in High Level language like C ? We have had terrible Resets in the last Customer Release and I am being asked...

Is there a way to detect Recursion in High Level language like C ? We have had terrible Resets in the last Customer Release and I am being asked to analze Semaphore deadlocks, Nested Interrupts and Stack overrun issues. We suspect that there is recursion in our sources and am interested in detecting and cleaning up all recursion. Freeware would be preferred but Commercial tools could be considere...


TMS470 with IAR C++ Compiler

Started by Hagar in comp.arch.embedded15 years ago 8 replies

Hi all. I'm trying to use C++ and IAR for TMS470 uC's but I'm getting some weird troubles with C++. For example: I have a simple test code...

Hi all. I'm trying to use C++ and IAR for TMS470 uC's but I'm getting some weird troubles with C++. For example: I have a simple test code to receive CAN frames using interrupts. It compiles ok but when the frame arrives the application blows! If I use the same logic and configurations with C compiler everything works perfectly. I did a research for C++ Projects with TMS470 but didn't fi...


16F913 mind of it's own

Started by Anonymous in comp.arch.embedded17 years ago 4 replies

Using the simulator the program in question works sometimes and sometimes doesn't. I am trying to isolate a couple of problems as a last resort...

Using the simulator the program in question works sometimes and sometimes doesn't. I am trying to isolate a couple of problems as a last resort by placing an endless loop in the code (endhere. . . . goto endhere). But it breaks out of that. I've turned off the interrupts, they aren't used at all in the program. On the simulator it will jump to incorrect places from a certain point. It has gon...


Ho to detect phase shift in 2 square waves ?

Started by Rodo in comp.arch.embedded20 years ago 5 replies

Hi all... I have 2 square waves that are out of phase by 90 degrees. I want to be able to tell when the first wave shifts from "leading" to...

Hi all... I have 2 square waves that are out of phase by 90 degrees. I want to be able to tell when the first wave shifts from "leading" to "lagging". The second wave will do the opposite. I'm trying to do this in software. I have some ideas on how to do it with interrupts but I'd like to explore other possibilities. So, if someone can suggest where to dig out info on the subject. It wou...


SPI performance on Freescale MPC83xx?

Started by Matthias in comp.arch.embedded18 years ago 6 replies

Hi, In our project, due to some restrictions and requirements we would have to use the SPI of a Frescale MPC83xx for receiving a continous...

Hi, In our project, due to some restrictions and requirements we would have to use the SPI of a Frescale MPC83xx for receiving a continous stream of serial data at a bit rate of at least 500 kbps, but would like to use modes with up to 12 Mbps as well. As it seems, there is no DMA support for SPI, so we would have to spend CPU time for this (either via interrupts or via kind of polling)....


Interrupts in U-boot

Started by Nicholas Karsen in comp.arch.embedded20 years ago 1 reply

I am attempting to implement interrupt in u-boot, is there any example code. I have noticed that some of the code is implemented, however there...

I am attempting to implement interrupt in u-boot, is there any example code. I have noticed that some of the code is implemented, however there are messages which say there is no IRQ support in u-boot. What does this mean? What is the state of u-boot in this regard? It seems u-boot is slower than linux? Are there any reseaons an AT91RM9200 would work slower? Clearly thats my target. ...


interrupts with FX2

Started by jan0385 in comp.arch.embedded14 years ago 22 replies

Hello, do you know where I can find information about setting up an interrupt with the FX2? To my knowledge an ISR looks like: static...

Hello, do you know where I can find information about setting up an interrupt with the FX2? To my knowledge an ISR looks like: static void MyIsr(void) __interrupt 0 { // Clear global USB IRQ EXIF &= ~0x10; .. } But how do I tell the FX2 to run the ISR when the IRQ0 (INT0 pin) occurs? Best regards Jan --------------------------------------- Posted through h...


Self-waking PIC

Started by PigPOg in comp.arch.embedded19 years ago 4 replies

Hi all, Is there anyway that a PIC in sleep mode can wake-up periodically by way of an internal mechanism (say, every 30 seconds), perform a...

Hi all, Is there anyway that a PIC in sleep mode can wake-up periodically by way of an internal mechanism (say, every 30 seconds), perform a short routine and then re-enter Sleep again? I'm using a 16F505, but this has no interrupts so I was wondering if I could use the internal timer to implement this function? I know the wake-up on input change would suit but this would mean adding an ...


So... What are the alternatives? Was: I don't use an RTOS because...

Started by Elder Costa in comp.arch.embedded19 years ago 164 replies

I have followed the thread with a great dose of interest. Though a small system can be implemented with an infinite loop running the main tasks...

I have followed the thread with a great dose of interest. Though a small system can be implemented with an infinite loop running the main tasks and some interrupts to handle asynchronous events, I wonder how one could handle more complex systems with no RTOS (or at least a multithread cooperative scheduler) without getting into a big messy buggy code. I guess it is not an mission impossi...


I2C Problem

Started by Carmel in comp.arch.embedded17 years ago 4 replies

Hi all, I am trying to drive an I2C device from a windows CE board, unfortunately without success. I am trying the following...

Hi all, I am trying to drive an I2C device from a windows CE board, unfortunately without success. I am trying the following test program... void I2CStart() { // Initialize the unit // put slave address in ISAR g_wISAR = 0x20; // enable desired interrupts in ICR. // Arbitration loss detect interrupt NOT enabled g_wICR |= (ICR_ITEIE | ICR_IRFIE | ICR_BEIE | ICR_SSDIE | ICR_SADI...


Setting ARM CPSR to C variable

Started by Luken8r in comp.arch.embedded15 years ago 2 replies

Im using the TI Code Composer suite with an ARM 7 and Im looking for a way to get the CPSR back into a C variable. I was looking through...

Im using the TI Code Composer suite with an ARM 7 and Im looking for a way to get the CPSR back into a C variable. I was looking through the documentation that came with the compiler and it didnt have quite what I was looking for. What Im need to do is get the state of the interrupt disable bit. I need to use this bit as a condition variable for something like: === if (interrupts enabled){ ...


Causing an Interrupt on a event

Started by dimi...@gmail.com in comp.arch.embedded18 years ago 9 replies

Hello people, I'm wondering if someone can help me with internal interrupts. I'm using the PIC18f452 ADC to get a reading from a wall sensor...

Hello people, I'm wondering if someone can help me with internal interrupts. I'm using the PIC18f452 ADC to get a reading from a wall sensor (its an IR transmit receive circuit) which gives out numbers ranging from 0 to 500 (these numbers correspond to how far the sensor is from the wall). What I'm trying to do is generate an interrupt when the number is 250. I've thought about connecting ...


Problem Porting nucleus onto AT91RM9200

Started by psriniva in comp.arch.embedded18 years ago 1 reply

Hi, I am trying to port Nucleus Kernel onto the AT91RM9200 Target (on Cogent CSB337) using Nucleus EDGE IDE. I am facing some problem with the...

Hi, I am trying to port Nucleus Kernel onto the AT91RM9200 Target (on Cogent CSB337) using Nucleus EDGE IDE. I am facing some problem with the Stack handling especially while servicing the interrupts. Has anyone been able to successfully prot Nucleus RTOS onto AT91RM9200? Please let me know. Thanks and Regards, Prashanth


arm-elf-gcc building erroneous code for ISR (long posting)

Started by Jens Hildebrandt in comp.arch.embedded20 years ago 4 replies

Hello group, I'm curently trying to get familiar with the ARM7 by building some example-projects for a LPC2106-controller. One such project...

Hello group, I'm curently trying to get familiar with the ARM7 by building some example-projects for a LPC2106-controller. One such project is the blinky_irq example from Keil which should demonstrate the use of interrupts and of the LPC2xxx vectored interrupt controller. I'm using gcc-3.2.1 with binutils 3.13.1 and newlib 1.11.0 . So far I had no problems with these tools and I was abl...


Strange behaviour in PIC18 interrupt

Started by R. Wilcock in comp.arch.embedded19 years ago 13 replies

I am using a PIC18F4320 and have been trying to solve a very strange problem.. I have configured an interrupt using Timer1 which fires every...

I am using a PIC18F4320 and have been trying to solve a very strange problem.. I have configured an interrupt using Timer1 which fires every 1ms. In that interrupt an ascii character gets sent, and is incremented, every time. Also, every 79 interrupts another section of the code gets executed, which just sends a '%' and resets the ascii code to '1'. Nothing else is going on AT ALL in the...


Compiler Support for Ensuring that a Statement is Atomic

Started by Datesfat Chicks in comp.arch.embedded14 years ago 16 replies

This is slightly off-topic, as it involves implementation rather than the C language. It frequently comes up in embedded systems that one...

This is slightly off-topic, as it involves implementation rather than the C language. It frequently comes up in embedded systems that one wishes to ensure that a C-language statement is atomic. One might have available functions or macros to disable or enable interrupts, so one might write: volatile int sempahore; DI(); sempahore++; EI(); Whether an increment can b...


Help needed with SCI interrupts (HC12)

Started by Anonymous in comp.arch.embedded17 years ago 10 replies

Hello. I'm writing a program for an NE64 board, which reads a series of data over the SCI1 port, and then transmits them over the Ethernet...

Hello. I'm writing a program for an NE64 board, which reads a series of data over the SCI1 port, and then transmits them over the Ethernet port. Pretty much it's done and works, but due to the amount of data collected on every reading, I have to send out 10-15 packets every time. My problem is that, when the function for UDP transmission is executed, some of the data received on the serial ...


Adobe Flash served by embedded processor w/o O.S.

Started by Dave Boland in comp.arch.embedded15 years ago 2 replies

Currently, I use AJAX to provide a near-realtime display of data for a device (basically data acquisition and some control). The box contains...

Currently, I use AJAX to provide a near-realtime display of data for a device (basically data acquisition and some control). The box contains a 16-bit processor, TCP/IP stack, but no OS (I use timer interrupts the same way car companies use them in engine controllers). The user interface is a table of values read/set, some alarms when something is out of spec., and a few configuration ...



The 2024 Embedded Online Conference