13.07.2015 Views

CJ2 CPU Unit Software User's Manual - CIP ETI

CJ2 CPU Unit Software User's Manual - CIP ETI

CJ2 CPU Unit Software User's Manual - CIP ETI

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 I/O Memory AreasDirectly Specifying EM AddressesThere are two ways to specify an EM address: the bank and address can be specified at the same timeor an address in the current bank can be specified. In general, we recommend specifying both the bankand address at the same time. Bank and Address SpecificationWith this method, the bank number is specified just before the address. For example, E2_10 specifiesaddress E10 in bank 2. Current Bank Address SpecificationWith this method, just the address is specified. For example, E10 specifies address E10 in the currentbank.• The current bank will be reset to 0 when the operating mode is changed from PROGRAM mode toRUN/MONITOR mode, unless the IOM Hold Bit (A500.12) is ON.• The current bank can be changed with EMBC(281) to access data in another bank.• A301 contains the current EM bank number.• The current bank is not changed as the program proceeds through cyclic tasks. For example, ifthe current EM bank is changed to bank 2 in task 1, the current EM bank will still be bank 2 in task2. The current bank will return to its original value (in the source cyclic task) if it has been changedin an interrupt task.66-14 Extended Data Memory Area<strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>6-29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!