View Full Version : ISOMAX's Words definition supplement
1- I found the pointer EDP for the DATA FLASH but witch WORD will affect it?
2- CMOVE and CMOVE> is for DATA RAM move but there is a way to exchange with PROGRAM RAM?
3- Is the PFMOVE must be used within Program Flash?
4- Is the 2VARIABLE and DVARIABLE the same?
5- How to use EEERASE and PFERASE?
6- RAM word is for ?
7- @@ and @! words are for ?
8- How to use ?AVAIL
9- There is a way to know the current PERIOD value?
...
nmitech
05-07-03, 01:57 PM
1- I found the pointer EDP for the DATA FLASH but witch WORD will affect it?
There is no word specifically to adjust EDP. You can use the words @ ! and +! to examine, change, and increment EDP.
2- CMOVE and CMOVE> is for DATA RAM move but there is a way to exchange with PROGRAM RAM?
No, there is no word included to copy between Program and Data RAM. You can write such a word using P@ P! @ and ! if needed.
3- Is the PFMOVE must be used within Program Flash?
Yes. It copies from Program RAM/Flash to Program Flash.
4- Is the 2VARIABLE and DVARIABLE the same?
YES.
5- How to use EEERASE and PFERASE?
These will erase 1 page (256 locations) of Flash ROM. You must provide an address which is within the page to be erased. The low 8 bits of the address will be ignored, so if you type HEX xxyy PFERASE ( where xxyy is a hex number ) then locations xx00 to xxFF will be erased.
6- RAM word is for ?
This allows IsoMax variables to be stored separately from Forth
variables, for some special applications. Normally it's left set to 0,
which instructs IsoMax to use the same RAM as Forth.
7- @@ and @! words are for ?
@@ is exactly equivalent to @ @ but faster. It's used when you have
an address stored in a variable, to fetch the address and then fetch the data at that address.
@! is exactly equivalent to >R @ R> ! and is used to copy a cell from one location to another. a1 a2 @! will copy one cell from address a1 to address a2.
8- How to use ?AVAIL
?AVAIL can be used any time, and will display a "dictonary full" error message if there is less than 16 bytes available in ANY of the following: Program RAM, Program Flash, Data RAM, Data Flash.
9- There is a way to know the current PERIOD value?
There is no word specifically to do this. As a workaround you can read the TD3 timer CMP1 register directly, at address HEX 0D78.
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.