FAQs for ICE-11


The embedded tools company

Search FAQs



PDF document ( 62KB / 13-Oct-2016 )


TOP

CONFIG Register Cannot be Modified

Ref: 0026
The CONFIG Register does not react on modifications.

The CONFIG Register is implemented with EEPROM cells. It can be written anytime in any mode with the mechanism for programming EEPROM. Writing has no immediate effect. The new value gets active with the next reset. See also chapter 4.4.1.6 CONFIG Register Programming in M68HC11 E Series Technical Data Book.
So, for changing the value use the following PRACTICE commands:
   SYStem.Down
   SYStem.CPU SingleTst
   SYStem.Mode AloneInt
   Data.Set EEPROM:103f value
   SYStem.Down
   SYStem.Mode AloneInt
   Data.dump 103f
Then you can see the changed value.

TOP

Start-up Problems (68HC11)

Ref: 0014
How can I program registers, which can be accessed through the first 64 CPU cycles only.

In TEST mode, the emulator can access all registers at any time. In EXPANDED or SINGLE mode, the processor must run excecute a RESET. The following example shows, how the eXception. Activate instruction can be used for generating an immediate reset:
; setup operation modes
  sys.res
  sys.cpu expanded
  sys.m ee
; disable EPROM
  d.s 3f 04
; map memory
  map.def 0--0ffff
; define reset vectors
  d.s 0fffe %w 1000
  d.s 0bffe %w 1000
; load sample program
  d.a 1000--101f nop
  d.a 1020 bra 1020
; example for option register programming
  d.a 1010 ldaa #0
  d.a ,    staa 39
; set 1st breakpoint, typically on 'main' in C program
  b.s 1020 /p
; activate cpu reset
  x.a cpureset on
; start emulation
  g
; release cpu reset
  x.a cpureset off
; check if o.k.
  wait 0.1s
  if n:state.run():a:r(pc)==1020
    print "Startup o.k."
  enddo





Copyright © 2016 Lauterbach GmbH, Altlaufstr.40, D-85635 Höhenkirchen-Siegertsbrunn, Germany  Impressum
The information presented is intended to give overview information only.
Changes and technical enhancements or modifications can be made without notice. Report Errors
Last generated/modified: 13-Oct-2016