piclist 1996\05\16\175435a >
Thread: 16C74 Emulation Mystery
www.piclist.com/techref/microchip/devices.htm?key=16C
picon face BY : Bob Fehrenbach email (remove spam text)



I just started a 16C74 project and ran into an emulator problem I haven't
seen before and wondered of anyone had a comment.  First of all, a
test program:

             *******************************
  list p = 16C74, n = 0, c = 132, r = dec,

STATUS                    equ     h'0003'
ADCON0                    equ     h'001f'
CHS2                      equ     h'0005'
CHS1                      equ     h'0004'
CHS0                      equ     h'0003'
RP0                       equ     h'0005'

          org   0

  bcf     STATUS, RP0        ;RAM page 0

  movlw   b'01001000'        ;Write something to ADCON0
  movwf   ADCON0

main:
  clrwdt                     ;Simulate scanning of 4 a/d channels
  movlw   1<<CHS0
  addwf   ADCON0, f          ;Another write to ADCON0
  bcf     ADCON0, CHS2       ;And another
  goto    main

  end
             *******************************

Loading this program and single stepping, the emulator does not
recognize any writes to ADCON0 (file h'1f').  In addition, it is
impossible to manually change the value of ADCON0 in the usual
manner.

If I go into the diagnostics window, tell the system that my
I/O address is 300 and then reload the hex file, the writes
are recognized!

I am using the latest version available version of the Picmaster
program.

The problem does not seem to exist if this exercise is conducted
using MPLAB.

Comments?


--
Bob Fehrenbach    Wauwatosa, WI     @spam@bfehrenbTakeThisOuTspamexecpc.com
<fL6mxYi8a0OF089yn@execpc.com> 8bit

See also: www.piclist.com/techref/microchip/devices.htm?key=16C
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) 16C74 Emulation Mystery

month overview.

new search...