Searching \ for '[PIC] Repository?' 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: 'Repository?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Repository?'
2007\07\13@122700 by Dr Skip

picon face
Greetings,

I've done just a little bit of playing around with microcontrollers
(PICs) and I try to read everything here one the list, at least to the
level of what to watch out for should I have to do 'that' some day.
Having written Zmodem code on a PC at one point, I know comm code can be
frustrating to get right. From the list it seems there are similar
experiences getting serial comm going on a PIC. In fact, serial comm is
one of those things I keep putting off for the PIC...

Is there a code repository anywhere for PIC code modules? I think most
compilers allow inline assy lang., so that might be most useful,
understanding that any particular module may only be useful to a small
group of part numbers. Initialising ports seems to be a common challenge
here too. Maybe modules that are bullet-proof for that as well. Such a
thing is a great learning tool, and I've used and contributed to other
PC repositories in the past. However, in the PIC world, there's also so
much else to debug - the code, hardware, setup, interfaces, etc, that
having some pieces of known quality might make the job a bit easier,
especially beyond just sensing a voltage and operating relays. In other
repositories, you end up with hacks and the not-so-good examples as well
as the great and elegant ones. I'm hoping that a repository exists, and
with the expertise here, it's be a good one. Can anyone point me to one
or more?

Thanks,
Skip


2007\07\13@130012 by John Chung

picon face
Here is a good step for serial programming.
http://www.electronic-engineering.ch/microchip/projects/projects.html

Build each level separately. Start with the RS232 IC
then start with the PIC module. TRY low baud rate
first to minimize problems, mainly due to the PIC
clock.

John


--- Dr Skip <spam_OUTdrskipTakeThisOuTspamgmail.com> wrote:

{Quote hidden}

> --

2007\07\13@130154 by Russell McMahon

face
flavicon
face
> I'm hoping that a repository exists, and
> with the expertise here, it's be a good one. Can anyone point me to
> one
> or more?

For serial routines the oft recommended material is Father Tom
McGahee's serial library. Searching piclist archives for McGahee and
serial should turn them up.

Tom's page is here

   http://redrival.com/mcgahee/

It has a PIC UART listing which will be useful but I don't know if
that is the routines I mentioned above.



           Russell




2007\07\13@140237 by Bob Axtell

face picon face
I have absolutely NO problems with serial communications. I have written
several. Interpretation of
GPS NEMA coding, interface with a PC, RS485, RS422, even synchronous
communication from a
pager. I have run the PIC as fast as 250kb for DMX512 (theatrical
lighting standard). I've done all of it.

The main problem you will have in using PICs is that your receiving and
transmitting buffers must be
small, because many of the PICs don't have much memory. You can
alleviate this greatly by designing
in a 32K SPI RAMTRON scratch pad memory. These memories, unlike EEPROMS,
need NO write waits.
Otherwise, just write the code carefully. Receive using an interrupt,
and write in the main loop whenever
the UART can accept another character. When you have received 16
characters, shove it into the RAMTRON
memory.

Its just like most stuff, after awhile it becomes second nature, like
riding a bicycle.

--Bob

Dr Skip wrote:
{Quote hidden}

2007\07\13@151711 by Xiaofan Chen

face picon face
On 7/13/07, Dr Skip <.....drskipKILLspamspam@spam@gmail.com> wrote:
>
> Is there a code repository anywhere for PIC code modules?

1) search http://www.piclist.com
2) use Google to search http://forum.microchip.com
3) Microchip Code Module Library and Application Maestro.
Microchip is now provide a forum for Code Modules depository.
http://forum.microchip.com/tt.aspx?forumid=189

2007\07\16@064559 by Alan B. Pearce

face picon face
>For serial routines the oft recommended material is Father Tom
>McGahee's serial library. Searching piclist archives for McGahee
>and serial should turn them up.

Note that his code is excellent for devices that have the USART, but for
devices that use the EUSART you may find Olins code module in his
development environment better.

Anyway I would recommend Olins development environment for the macro library
that he has which takes care of most bank/page switching when required, and
it has many hooks and options in it that make re-using code on any PIC
family, even when developed originally for another family, almost seamless.
Also contains macros that help keep the conditional branching more user
friendly, and includes neat bits like FIFO and long integer math macros.

See http://www.embedinc.com/pic/ to download, and the instructions on how to
use. His site also contains a link to a PDF that Jan-Erik did for an earlier
version of the environment, but it gives a good easier to read detail for
the beginner, and then you can get back to the later documentation that
comes with the environment at a late stage.

2007\07\17@113831 by Dr Skip

picon face
Thanks for the replies and good info. Some interesting links.

Serial was just the example though, there are other areas I'm not that
keen to take on as well. ;-)

-Skip

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