> -----Oorspronkelijk bericht----- > Van: openocd-development-boun...@lists.berlios.de > [mailto:openocd-development-boun...@lists.berlios.de] Namens > Michel Catudal > Verzonden: donderdag 28 mei 2009 5:33 > Aan: Duane Ellis; openocd-development > Onderwerp: Re: [Openocd-development] NEC V850 Core > > Duane Ellis a écrit : > > **THIS*IS*OFF*LIST** > > > >>> The context switching in the NEC devices has no match. > > > > Really, I'd like to see how you do this, in a pre-empt > context switch > > there are lots of registers to save, do you have a *specific* NEC > > support group you work with? I'd like a name or two, local > guys here > > are clue-less. Factory guy came in 5 months ago, gave us a training > > session about PM Plus not able to answer questions I had. > > > This is not something a salesman is telling me but actual > data from NEC where they compare the AR7TDMI, Cortex-M3 and > V850ES According to their chart, an interrupt takes 24 cycles > for ARM7TDMI, 12 for Cortex-M3 and 4 for their new V850ES.
I don't understand why there is so much emphasis on the number of cycles it takes to get into an interrupt. Sounds more like a sales pitch to me. If your software and hardware is designed well, the number of interrupts is few and a lot is done inside an interrupt routine. In other words: the number of cycles to get into an interrupt is usually neglegible compared against the number of cycles it takes to actually execute the interrupt service routine. Also, it is very hard to have a fixed time between the interrupt and entering the interrupt service routine. Other interrupts may be pending or some instructions may take longer. The hardware should allow for delayed interrupts without going up in smoke. Hence, the number of cycles it takes to enter the interrupt service routine becomes less relevant anyway. I did a design with an LPC2000 series controller (ARM7TDMI) from NXP in which I used a 300kHz timer interrupt to implement a DC-DC converter in software (voltage control and cycle-by-cycle current limitting). I didn't need to use the FIQ (fast interrupt) or assembly code. The timing isn't really critical because the LPC2000 has some really nifty features in its hardware. Heck, its all ARM 16 bit thumb code too. Anyway, just get as much mips as you can. The V850 sounds like a hard to get part to me if you're not buying large quantities. I'd stick with an ARM controller. There is a lot of choice and moving to another manufacturer doesn't require to learn a whole new toolchain and CPU. Nico Coesel _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development