EmbeddedRelated.com

Advanced Transdata

Started by Bill Chernoff in comp.arch.embedded19 years ago 1 reply

I am using a Rice17A to emulate a PIC18C252. Having a lot of fun trying to debug 2 timer-overflow based interrupts. One is high priority, one...

I am using a Rice17A to emulate a PIC18C252. Having a lot of fun trying to debug 2 timer-overflow based interrupts. One is high priority, one is low. I can't single step because the timers keep right on running, so they overflow and interrupt pretty much immediately, when single stepping. Now I've got my Logic analyzer to trigger properly, and its trigger out goes into the Rice's break inp...


Worst case stack

Started by pozz in comp.arch.embedded2 years ago 4 replies

I found a nice tool[1] on GitHub. I run it on one of my embedded projects and after a couple[2] of fixes, it eventually printed some good...

I found a nice tool[1] on GitHub. I run it on one of my embedded projects and after a couple[2] of fixes, it eventually printed some good output. There were many unresolved functions, mainly from libc, C runtime, interrupts. I defined all of them in .msu, so now in the final output there aren't unresolved functions. Now there's another big problem. Many functions have an unbounded s...


PUSHF equivalent for HCS08 uc ??

Started by Ether Jones in comp.arch.embedded17 years ago 6 replies

Does anyone know how to "push flags" on the HCS08 series microcontrollers? I have a section of code that I need to make non-interruptable. ...

Does anyone know how to "push flags" on the HCS08 series microcontrollers? I have a section of code that I need to make non-interruptable. But I can't simply do this: DisableInterrupts EnableInterrupts ... because I don't know whether or not interrupts were disabled in the first place, and if they were disabled, I don't want to enable them. I want t


best way to simulate multi core architecture ?

Started by TheWhizKid in comp.arch.embedded19 years ago 6 replies

Hi guys, Please give me some suggestions ! 1. I need to make a cycle accurate simulator for a dual core cpu. How do I pass external events...

Hi guys, Please give me some suggestions ! 1. I need to make a cycle accurate simulator for a dual core cpu. How do I pass external events like interrupts from one core to another during the simulation ? 2. How does one make a "C" reference model talk to a verilog model during a simulation ? is "PLI" the only way ? Thanks thewhizkid


Re: PIC Input Capture

Started by Gary Kato in comp.arch.embedded20 years ago 1 reply

Forgot. You should also disable interrupts while calculating your pulse with and pulse interval since the values you are using can change at any...

Forgot. You should also disable interrupts while calculating your pulse with and pulse interval since the values you are using can change at any time if you don't. If you don't, you'd still get weird values. Say this happens: MOVF low(fall),w SUBWF low(last_fall),w You'd get an interval of 0 once more.


Compact Flash operation by interrupts

Started by Vladimir Vassilevsky in comp.arch.embedded17 years ago 2 replies

I am trying to implement a non-blocking driver for the CF card. So, this driver has to operate by CF interrupt rather then by polling the...

I am trying to implement a non-blocking driver for the CF card. So, this driver has to operate by CF interrupt rather then by polling the registers. So far so good, however one problem remains: Is it possible to generate the interrupt when the write sector operation is complete, i.e. when the CF is ready for the next sector write? VLV


Interrupt not firing on PIC18F

Started by namezmud in comp.arch.embedded19 years ago 1 reply

I've started tinkering with a PIC18F4680 (with CAN bus) using microchips MPLAB C18 C compiler. I've been beating my head against a problem for...

I've started tinkering with a PIC18F4680 (with CAN bus) using microchips MPLAB C18 C compiler. I've been beating my head against a problem for many hours now :evil: . I can't get interrupts to work. I have tried, TMR0, TMR1 and INT0. I have verified that TMRnIP, TMRnIE, TMRnIF and GIEH & IPEN are all HIGH yet my ISR does not get run. If I clear TMRnIF in the main loop TMRnIF is set aga...


timerx hitachi 3642/3644

Started by icurmt in comp.arch.embedded20 years ago 7 replies

Hi, I am trying to count the number of pulses through timerx. Infact, I need to observe two input pulses. I need to obtain the pulses...

Hi, I am trying to count the number of pulses through timerx. Infact, I need to observe two input pulses. I need to obtain the pulses received on A between every input pulses to B. For example, whenever I receive pulse on say B, I need to reset the counter A and start counting the pulses A receives until B's next input. Does it make sense to do it w/o setting any interrupts on A or B....


Differences between interrupt service routine (ISR) and a subroutine

Started by 2005 in comp.arch.embedded17 years ago 36 replies

Hi What are the differences between ISR and a subroutine in embedded systems, how about the following: - interrupts are disabled by the...

Hi What are the differences between ISR and a subroutine in embedded systems, how about the following: - interrupts are disabled by the microprocessor prior to calling the isr - isr's are always smaller - an isr cannot be written in C - a subroutine always has arguments - the CPU flags are stored on the stack in addition to the return address Thanks


Floating point calculations on 16 uC

Started by db in comp.arch.embedded19 years ago 17 replies

Hi, I'm doing floating point calculations on a Fujitsu MB90F474 16bit uC. All float calculations are done in the main loop context. Sometimes...

Hi, I'm doing floating point calculations on a Fujitsu MB90F474 16bit uC. All float calculations are done in the main loop context. Sometimes the result returns a garbage value. This seems to happen only when interrupts are enabled. Note that there are no globals or shared data involved. If anyone has had similar problems please let me know. Any advice when using floating point calculat...


Dallas RTC 1305 and interrupts

Started by Georges Konstantinidis in comp.arch.embedded20 years ago 1 reply

Hello All, I started a project which uses a PIC16F876 and a RTC DS1305 from Dallas. There is no problem to read and write the registers. My only...

Hello All, I started a project which uses a PIC16F876 and a RTC DS1305 from Dallas. There is no problem to read and write the registers. My only problem is the interruption . I connected the INT0 for the RTC to the RB0 pin of the PIC (I used a 5k pull-up resitor). I configured correctly (I think ) the registers to activate a interrupt every second . When I test my program, it appears that th...


simulation tutorial? Asynchronous interrupts?

Started by mike in comp.arch.embedded10 years ago 5 replies

I'm writing simple programs for a PIC 16F877A. Attempting to simulate with MPLAB. Linear code...no problem. But I've never written a...

I'm writing simple programs for a PIC 16F877A. Attempting to simulate with MPLAB. Linear code...no problem. But I've never written a program that didn't have multiple asynchronous interrupt inputs and timers. The MPSIM seems to fall apart in that instance. Yes, there are ways to simulate inputs, but the asynchronous nature is where all the problems happen. State another way, no pro...


Configure Port2 pin as an interrupt

Started by ninan in comp.arch.embedded15 years ago 5 replies

Hi, I'm using LPC2378 for my current project. I want to configure Port2.7 Pin as an interrupt. I have already used up all the 3...

Hi, I'm using LPC2378 for my current project. I want to configure Port2.7 Pin as an interrupt. I have already used up all the 3 External Interrupts(EXINT0,EXTIN1,EXINT2). It been said tat EXTINT3 Pin can be configured as an interrupt for a GPIO Pin, which i am not clear with. Please help me in this regard, Ninan, India


Software Architechture comparison, comments and sugestions...

Started by Sink0 in comp.arch.embedded12 years ago 21 replies

I was thnking with myself today and i remembered an old software architecture for embedded systems division: 1. Round-robin 2. Round-robin...

I was thnking with myself today and i remembered an old software architecture for embedded systems division: 1. Round-robin 2. Round-robin with interrupts 3. Function-queue-scheduling 4. Real-time Operating Syste IHMO the first one is just a subset of the second so i will just ignore it. I was thinking on what kind of architecture i usually use on my projects (that usually range bew...


Serial communication with Infineon C167 (Tasking Compiler)

Started by Howard in comp.arch.embedded20 years ago 7 replies

Hi. We are having a prosject at school, and are currently testing the Infineon C167 ?C with Tasking EDE compiler (C). But we get...

Hi. We are having a prosject at school, and are currently testing the Infineon C167 ?C with Tasking EDE compiler (C). But we get some problems using the serial interface. I think the initialization of the registers and so on actually are correct. This because we've tried to force both receive- and transmit-interrupts by setting those flags, and made the interrupt routines to give out diffe...


Update internal flash through UART

Started by Ivan Z. in comp.arch.embedded15 years ago 2 replies

Hi, I'm working with TMS470R1A384. And I'd like to have ability to update my Program through UART. In others words, I'd like to write...

Hi, I'm working with TMS470R1A384. And I'd like to have ability to update my Program through UART. In others words, I'd like to write FlashLoader. But I have no idea how to write my program for it. I configured *.xcl so as my Program was in Bank_1 and INTVEC too. and my FlashLoader - in Bank_0. But my Programs interrupts use addresses at the beginning anyway. How can I tell tms470 t...


Micro with 4-independent PWM channels

Started by Mike in comp.arch.embedded19 years ago 37 replies

I am looking for a PIC or Atmel Micro that has 4-independentl controlled PWM channels of about 10-bit resolution . The frequnenc can be the same...

I am looking for a PIC or Atmel Micro that has 4-independentl controlled PWM channels of about 10-bit resolution . The frequnenc can be the same but I need simultaneous 0-100% duty cycle control o each channel independently . The max PWM frequncy should be greate than 1KH Price Range $2.00-$6.00/usd. A few A/D channels, interrupts,C-Compile friendly. I have looked @ the PIC18F1220, however ,...


[cross-post] g21k and non-interruptible functions

Started by Alessandro Basili in comp.arch.embedded12 years ago 39 replies

Dear all, I have the need to define some functions as "non-interruptible" and I remember some #pragma at least for C51 which would do this. I...

Dear all, I have the need to define some functions as "non-interruptible" and I remember some #pragma at least for C51 which would do this. I looked for similar #pragmas for the g21k but apparently I haven't found any hint. Does anyone out there know how to reliably define a function as non-interruptible? I understand that I could disable all interrupts and enable them once the function...


PIC16F648A interrupts

Started by Robert Baer in comp.arch.embedded8 years ago 5 replies

I have a simple program that runs the (timer2) PWM reliably, scope measurements confirm timing of pulse width and the rate as well. I add...

I have a simple program that runs the (timer2) PWM reliably, scope measurements confirm timing of pulse width and the rate as well. I add a simple 256 location lookup table to change the PW on a cyclic basis. Still OK but not exactly verified with scope on a dynamic basis, tho verified that i get the proper PW at setting of CCPR1L. Now, here is when i get into trouble; addin...


help with interrupt catching in Xilinx EDK 9.2 and custom IP

Started by llombard in comp.arch.embedded16 years ago

Dear all, Here is my problem: I make a new microblaze project in EDK 9.2i and a new custom IP with 1 register and 2 interrupts. I leave the...

Dear all, Here is my problem: I make a new microblaze project in EDK 9.2i and a new custom IP with 1 register and 2 interrupts. I leave the default settings everywhere, I link the interrupt to the xps_intc_0 "Intr" port. I add: microblaze_enable_interrupts(); { XStatus status; print("\r\nRegistering TEST_INT_Intr_DefaultHandler() to xps_intc_0...\r\n"); status = XIntc_...