RETIW lit |
|
| Description: | Return from interrupt, compensate RTCC |
| Operation: | PC = STACK[SP--]; RTCC += lit |
| Flags affected: | none |
| Registers affected: | RTCC PC |
| Sources referenced: | lit |
| Cycles: | 1 |
| Opcode: | |
| Details: | SX Users Manual page # 115 |
| Microchip PIC syntax: | |
| Notes: | |
RETIW - Same as RETI but adds the contents of W to RTCC without affecting the prescaler. This provides a periodic interrupt that can be adjusted by 256 steps (minus the time it takes to execute the interrupt routine)
by Loren Blaney via Richard Ottosen
The RETIW instruction ADDS W to RTCC, not subtracts it as stated in Table 16-1 in SX Datasheet page 33
See also:
| file: /Techref/scenix/inst/retiw.htm, 2KB, , updated: 2001/7/29 01:55, local time: 2012/5/25 14:37,
38.107.179.234:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/scenix/inst/retiw.htm"> SX Embedded Controller Instruction - RETIW</A> |
| Did you find what you needed? |
THE book for getting started with the PIC uC!
5 stars at Amazon.com
Now available from piclist.com for $34.95 ($7.50 S&H)
|
|
Peter Todd has released source and sample projects for his artwork, including his 3d wireframe cube renderer for the PIC 18f6520 This includes examples of hardware developed with free software tools such as gEDA/gschem/PCB, SDCC, gputils and picp all on Linux. http://petertodd.ca/art/source-code/ |
.