verification . please help improve this article by adding citations to reliable sources . unsourced material may be challenged and removed . october 2008 learn how and when to remove this template message rabbit semiconductor is the company which designs and sells the rabbit family of microcontrollers and microcontroller modules . for development it provides dynamic c a non standard dialect of c with proprietary structures for multitasking . rabbit semiconductor was purchased in 2006 by digi international . 1 before the purchase rabbit semiconductor was a division of z world inc. z world developed and manufactured embedded controller products as well as embedded software development environments . contents 1 microcontroller architecture 2 dynamic c 2.1 multitasking constructs 3 see also 4 references 5 external links microcontroller architecture edit the rabbit processor family shares many features with the zilog z80 z180 processors . for example the registers of a rabbit 2000 3000 processor are almost the same as the registers of a z80 z180 processor . the rabbit 4000 processor expands to include the use of 32 bit registers . the instruction set of rabbit processors also closely resembles the instruction set of the z80 z180 family . while the opcodes of many instructions are the same between the rabbit 2000 3000 processors and z80 z180 processors the two families of processors are not binary compatible . the rabbit processor family has unique features . for example the z80 z180 family disables interrupts once an interrupt is serviced by an interrupt service routine . however the rabbit processors permit interrupts to interrupt service routines according to priorities a total of 4 . as with the z80 z180 family the rabbit processors are cisc processors as opposed to risc competitors like the atmel avr processors . a comparison of clocks per instruction of the rabbit processor against a typical risc processor like the avr reveals that even though the rabbit processors can use a faster clock up to 60 mhz the effective processing power is comparable to that of a similarly priced avr processor using a slower clock up to 32 mhz . for example the inc ix d instruction requires 11 to 13 clock cycles depending on specific processor and on operand characteristics 2 on a rabbit processor . the equivalent instruction sequence ldd inc std on an avr requires 5 clock cycles . 3 another example is the call instruction . it requires 11 to 13 clock cycles depending on specific processor and on operand characteristics on a rabbit microprocessor 2 versus 4 to 5 cycles citation needed on an avr processor . this difference in part is due to the avr using on chip memory for both instructions and data whereas the rabbit uses off chip memory for both instructions and data . rabbit semiconductor claims that the instruction set of rabbit processors is optimized for c code . 4 a similar claim is made by atmel for their avr processors citation needed . the two architectures actually have very similar addressing modes such as literal register indirect and indirect plus displacement . furthermore both architectures have specialized 16 bit registers . the rabbit has ix iy and sp whereas the avr has x y and z. the main difference is that the rabbit instructions place more constraints on register usage compared to the avr instructions . for example the 8 bit rabbit add instruction permits only the a register be the destination . however the add instruction of the avr permits the use any one of the 32 8 bit registers as the source or destination . generally speaking an instruction set that is less register restrictive is more optimizable because there is less need to save and reload the content of a register . dynamic c edit perhaps the most notable feature of the rabbit microcontroller is its development environment . dynamic c a product of rabbit semiconductor has additions deletions and inconsistencies compared to the ansi c standard . note reference porting a program to dynamic c rabbit semiconductor dynamic c follows the iso ansi c standard when feasible and desirable . because the standard does not take into account the special needs of embedded systems it is necessary to depart from the standard in some areas and desirable in others . the standard does not take into account important embedded systems issues such as read only memory and embedded assembly language . for this reason practical compilers intended for embedded systems do not completely comply with the standard but use it as a guide . as an example of an addition dynamic c has a chaining mechanism to chain fragments of code from different subroutines to an arbitrary number of chains . this extension permits the use of not only initialized variables but any arbitrary code to execute before a program starts execution in the main function . as an example of a deletion as of version 10.23 dynamic c does not support block scope variables or bit fields . the development toolchain does not include a separate preprocessor and linker which may complicate the process of porting existing programs to the compiler . as of version 10.64 block scope for variables is supported . as an example of an inconsistency dynamic c implicitly treats all initialized global variables as if they were declared with the const qualifier . furthermore all const variables reside in flash memory . earlier versions of dynamic c did not check the use of the const keyword in parameters it was possible to pass a const variable as a parameter to a function that did not expect it potentially leading to attempts to write to flash memory . as of the latest version of dynamic c the compiler will produce an error when the user attempts to modify a const variable directly and will produce a warning if the user discards the const qualifier when passing a parameter to a function . multitasking constructs edit one noteworthy feature of dynamic c is its inclusion of language constructs to simplify multitasking . these constructs the costate statement and the slice statement implement a form of cooperative and preemptive multitasking respectively . as an example consider the following program which flashes two leds with different frequencies void main while 1 create 2 costatements which will toggle our leds . costate led1on ; waitfor delayms 100 ; led1off ; waitfor delayms 50 ; costate led2on ; waitfor delayms 200 ; led2off ; waitfor delayms 50 ; when this code is run the first costatement will be executed and the first led will turn on . the costatement will then yield to the second statement while it waits for 100 milliseconds . the second costatement will execute in a similar manner . while both costatements are waiting for their time to elapse the while loop will busy wait but this waiting time could potentially be used to perform other tasks . for more information see the dynamic c user s manual . see also edit arduino references edit digi international acquires rabbit semiconductor a b rabbit family of microprocessors instruction reference manual pdf . digi international . retrieved 2013 01 02 . avr instruction set includes clocks per instruction rabbit 3000 microprocessor user s manual external links edit rabbit semiconductor dynamic c 9 user s manual digi international porting a program to dynamic c rabbit 4000 family instruction reference rabbit 4000 digi systems on chip open source bacnet stack for rabbit family retrieved from https en.wikipedia.org w index.php title rabbit semiconductor & oldid 729677909 categories fabless semiconductor companieshidden categories articles needing additional references from october 2008all articles needing additional referencesall articles with unsourced statementsarticles with unsourced statements from january 2013articles with unsourced statements from october 2008 navigation menu personal tools not logged intalkcontributionscreate accountlog in namespaces article talk variants views read edit view history more search navigation main pagecontentsfeatured contentcurrent eventsrandom articledonate to wikipediawikipedia store interaction helpabout wikipediacommunity portalrecent changescontact page tools what links hererelated changesupload filespecial pagespermanent linkpage informationwikidata itemcite this page print export create a bookdownload as pdfprintable version languages italiano edit links this page was last modified on 13 july 2016 at 20 37 . text is available under the creative commons attribution sharealike license ; additional terms may apply . by using this site you agree to the terms of use and privacy policy . wikipedia is a registered trademark of the wikimedia foundation inc. a non profit organization . privacy policy about wikipedia disclaimers contact wikipedia developers cookie statement mobile view