logo       

Re: How to use PCE?: msg#00716

hardware.microcontrollers.tini

Subject: Re: How to use PCE?

The MCON register requires TIMED ACCESS for writes (move MCON,x/pop MCON).

See http://pdfserv.maxim-ic.com/arpdf/DS80C390.pdf ,

page 21.

vlunven-tUm0VErj3DBWj0EZb7rXcA@xxxxxxxxxxxxxxxx wrote:
Hello,

I'm using sdcc and I'm trying to use PCE0 and PCE1 port on tini.
my code doesn't work, please help me...

xdata at 0x00100000 ppib1;

main()
{
int i=0;
for (i=0; i<65535; i++)
{
_asm
push _MCON
mov a,_MCON
anl a,#0xF0
mov _MCON,a
_endasm;

ppib1=0x90;
_asm
pop _MCON
_endasm;
}
}

Thanks
Vincent.



--
Tom Chenot
Dallas Semiconductor
http://www.dalsemi.com
--

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise