On the money as usual, Mr. Warren. Thanks much. I always use the part
with analogs, but not on this project. It is being emulated with the
73, and will become the 63 at a later date. Always something, right?
Chris Eddy
Pioneer Microsystems, Inc.
Andrew Warren wrote:
{Quote hidden}> Pioneer Microsystems <
spam_OUTPICLISTTakeThisOuT
MITVMA.MIT.EDU> wrote:
>
> > I am emulating a C73A with the PicMaster. I can see my previous
> > write show up on the port pin, IE my scope sees it (indefinitely)
> > but when I look at the porta register, it sees 00H. Therefore,
> > whenever I write another output bit, the other outputs vanish (go
> > to zero).
> > ....
> > I am certain that the analog converter is disabled. Why on earth
> > won't the emulator see the true state of output bits in porta
> > register?
>
> Chris:
>
> Even if you've disabled the A/D converter by clearing the "ADON" bit
> in ADCON0, you need to set the PCFG2 and PCFG1 bits in ADCON1
> (register 0x9F) in order for the port pins to ct as digital inputs
> when you read them.
>
> Writing 0x06 to ADCON1 will solve your problem.
>
> -Andy
>
> === Andrew Warren -
.....fastfwdKILLspam
@spam@ix.netcom.com
> === Fast Forward Engineering - Vista, California
> ===
http://www.geocities.com/SiliconValley/2499