??? 08/13/08 13:31 Read: times |
#157463 - Have a look! Responding to: ???'s previous message |
Erik Malund said:
Richard Erlacher said:
simply reading or writing a value when you "know" the time is right. you are describing SPI Not necessarily My point remains that it's important to select the MCU with the "right" features for the application. absolutely a data pointer that automatically increments, then automatically switches to the "other" data pointer without any additional instructions, which chip does this? DS89C4x0 for one ... You can set it so that it automatically switches between two data pointers, increments or decrements after each operation ... It doesn't go 100 MIPS, of course ... but you can save the extra instructions. Erik from the user's guide: Data Pointer(s) The data pointers (DPTR and DPTR1) are used to assign a memory address for the MOVX instructions. This address can point to a data memory location, either on- or off-chip, or a memory-mapped peripheral. When moving data from one memory area to another or from memory to a memory-mapped peripheral, a pointer is needed for both the source and destination. The user can select the active pointer through a dedicated SFR bit (Sel = DPS.0), or can activate an automatic toggling feature for altering the pointer selection (TSL = DPS.5). An additional feature, if selected, provides automatic incrementing or decrementing of the current DPTR. RE |