Searching \ for '[PIC]:Register Info' 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/microchip/devices.htm?key=pic
Search entire site for: 'Register Info'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:Register Info'
2002\05\24@031404 by Tony Nixon

flavicon
picon face
Hi all,


I often find that I need to open up a data sheet, PDF or paper, to find
what value to set OPTION_REG, ADCON0 etc. and usually use some binary
value to write to it so i can see what bits are set or not. This becomes
a pain after awhile, so I created a small Windows application that has
PIC register defintions and bit values available.

It's a simple screen with a list of PICs available and when you select
one, a tabbed notebook appears with the various registers and bit
definitions. You can then select the register options, which are named
from the data sheet, and see what value the register becomes. you can
then copy it to the source if need.

There is a text file included that has the register definitions in it
and can be added to or customised as needed.

I've put some 16F87x chips in as a starter, and will add more when I get
time.

I don't know if it's of use to anyone but if so..

http://www.bubblesoftonline.com/demo/regmon.zip


--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
spam_OUTsalesTakeThisOuTspambubblesoftonline.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\05\24@050823 by Alan B. Pearce

face picon face
>I don't know if it's of use to anyone but if so..

>http://www.bubblesoftonline.com/demo/regmon.zip

When you update it I suggest you rename it to picregmon, or something
similar, as there is a windows program around called regmon which can
monitor access to the windows registry. Wouldn't want them confused :)

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\05\24@081751 by Bob Ammerman

picon face
Tony, this is an excellent idea.

How about adding  checkbox titled 'Include comments'

Then, for example, you would copy something like this to the clipboard:

'10000011'
;    -- PCFG3:PCFG0, A/D Port configuration: A0125=A,A3=V
;    -- ADFM, A/D result format: Right justified

That way the source isn't full of magic numbers with no indication of what
they mean.

Bob Ammerman
RAm Systems


{Original Message removed}

2002\05\27@020604 by Tony Nixon

flavicon
picon face
Bob Ammerman wrote:
>
> Tony, this is an excellent idea.
>
> How about adding  checkbox titled 'Include comments'
>
> Then, for example, you would copy something like this to the clipboard:
>
> '10000011'
> ;    -- PCFG3:PCFG0, A/D Port configuration: A0125=A,A3=V
> ;    -- ADFM, A/D result format: Right justified
>
> That way the source isn't full of magic numbers with no indication of what
> they mean.
>
> Bob Ammerman
> RAm Systems

I've modified the output so that it displays like this...

;
; INTCON 0x00B
; Interrupt enable and status bits
; [0] RBIF: CLEAR
; [1] INTF: CLEAR
; [2] T0IF: CLEAR
; [3] RBIE, PORTB On Change Interrupt: Disabled
; [4] INTE, RB0 INT Interrupt: Disabled
; [5] T0IE, Timer 0 Interrupt: Enabled
; [6] PEIE, Periferal Interrupt: Disabled
; [7] GIE, Global Interrupt: Enabled
;
       movlw b'10100000'
       movwf INTCON

If you want to disable the flag bits, or any others, and only view the
enable bits, you can turn those outputs off with individual check boxes
so it would display like this...

;
; INTCON 0x00B
; Interrupt enable and status bits
; [3] RBIE, PORTB On Change Interrupt: Disabled
; [4] INTE, RB0 INT Interrupt: Disabled
; [5] T0IE, Timer 0 Interrupt: Enabled
; [6] PEIE, Periferal Interrupt: Disabled
; [7] GIE, Global Interrupt: Enabled
;
       movlw b'10100000'
       movwf INTCON


I also split the description text files into smaller individual ones as
one single file could end up being quite large.

Will add more as I can, but anyone can add or modify the text themselves
if they choose to use it.

--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
.....salesKILLspamspam@spam@bubblesoftonline.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\05\27@103406 by Bob Ammerman

picon face
One more crazy idea for you:

Allow for 'include' files in the .PCF file so that ports that are common to
many chips only need to be defined once.

Bob Ammerman
RAm Systems


{Original Message removed}

2002\05\30@193655 by Tony Nixon

flavicon
picon face
Hi all,

I uploaded a newer version of the PIC register helper.

There are some more chips listed, plus you can now edit the data files
from the application.

I don't know if Microchip takes a dim view on this idea but...

Some registers have multiple functions and discecting them all and
trying to display them is messy so I added the option of each register
definition being able to display a PDF file, such as..

REGISTERpdf=sspstat.pdf

I have extracted certain single pages from the data sheets and matched
them to some of the names in the definition files. If a pdf file is
listed for a particular register then an INFO button appears on the
screen and if clicked on, that register PDF file opens, in this case a
single page detailing the SSPSTAT bits.


http://www.bubblesoftonline.com/demo/picreg.zip

--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
salesspamKILLspambubblesoftonline.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body


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