Searching \ for 'Getting back up to speed...' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=getting+back+speed
Search entire site for: 'Getting back up to speed...'.

Truncated match.
PICList Thread
'Getting back up to speed...'
1995\09\21@151322 by Timothy McDonough DIAL UP1

flavicon
face
It's been a while since I last programmed a PIC and I'm starting a new
project with a 16C54. I downloaded recent versions of the assembler,
simulator and Picstart software.

The assembler manual cautions that I should no longer use the OPTION
and TRIS commands. Okay, how do I go about accessing these registers
for setup, etc.? (My updated documentation on the micro's isn't here
yet but I want to get started.) Where can I look at a code snippet
of some "modern" 16C54 code?

Thanks in advance,

Tim

1995\09\22@000349 by Brian Read

flavicon
face
The difference on OPTION and TRIS commands is now you just
perform regular op-codes on the OPTION and TRIS file registers.

Brian

1995\09\22@134631 by Stuart Allman

flavicon
face
To access the ports you will need to set the appropriate bit in the
STATUS (I think it's bit 5) register so that you are in page 1.  Then set
the appropriate bits in the TRISA, TRISB, or TRISC register to configure the
pin on each port as an input or output (1 for input, 0 for output).  You
should be able to use the picreg.equ file to get the addresses of the registers.
Don't forget to change back to page 0.

Stuart Allman
spam_OUTstudioTakeThisOuTspamhalcyon.com

1995\09\22@163944 by John Payson

flavicon
face
>
> It's been a while since I last programmed a PIC and I'm starting a new
> project with a 16C54. I downloaded recent versions of the assembler,
> simulator and Picstart software.
>
> The assembler manual cautions that I should no longer use the OPTION
> and TRIS commands. Okay, how do I go about accessing these registers
> for setup, etc.? (My updated documentation on the micro's isn't here
> yet but I want to get started.) Where can I look at a code snippet
> of some "modern" 16C54 code?

On the 16C64, those instructions ARE the way to access those registers.  On
some later micros like the 6x/7x series, the instructions are still available
but the option and tris registers are available as "general purpose" registers
and should be accessed thusly, not by special-purpose instructions.

More... (looser matching)
- Last day of these posts
- In 1995 , 1996 only
- Today
- New search...