Jump to content
Sign in to follow this  
Tsukasa

Pic asm

Recommended Posts

I'm interested in learning to program the PIC microcontrollers. I'm not sure where to start. I want to learn pic assembly. Are there any guides available?

Share this post


Link to post
Share on other sites

If you don't absolutely need to use PICs (for instance, if you need to work with an existing design that uses one), I'd also recommend you to look at Atmel's AVR controllers. They're pretty good, easy to program in assembly and GCC is available for them aswell.

Share this post


Link to post
Share on other sites

I can get free samples of PICs from microchip, I already have a lot of them anyways. My programmer suports them, and it's much cheaper than buying a pal programmer, which is the main reason that I want to learn to program them. I plan to use them as substitutes for the bankswitching logic in atari carts. That way I can implement multiple kinds of bankswitching on a single multicart with the flip of a switch! I've seen plenty of projects that use them, and built a few as well.

Share this post


Link to post
Share on other sites

The question is whether the PIC will be fast enough to do the bank switching, which is typically done with discrete logic (or fpga, which should be the same). I think there's an old thread about someone who tried this method, and failed. I'm not saying it can't be done, though... .

5-11under

Share this post


Link to post
Share on other sites

The 16 series of PICs is definitely not even close to fast enough. Its been a while since I have used them, but I think the fastest clock is 20MHz. But the PICs are not one clock to one instruction, they are four clocks per instruction, which means 5 Mips. Not possible. Maybe the other series like the 18, I have never used or looked at them.

 

I have been experimenting with what I call Chimera Sr. Its has a 66MHz 32 bit ARM7 from Atmel in it. I am hoping it is going to be fast enough, but I think even that is going to be cutting it close. My goal is a GameShark like device. Where the processor can make changes to the code it sends to the 2600 on the fly.

 

You should really look into CPLDs. They are super cheap, easy to use (you just draw your logic on the screen using free tools, no need to know VHDL or verilog), and they are more than fast enough to do bankswitching.

 

Check this out for a quick tutorial on CPLDs:

 

http://tutor.al-williams.com/pldx-1.htm

 

Their start up kits are a bit pricey, but its possible to program CPLDs with a PIC, I did it. The code is available on Xilinxs web site. I am now using the same code to program CPLDs with an Atmel AVR.

 

Vern

Share this post


Link to post
Share on other sites

I learned a great deal from the McGraw Hill "Programming and Customized PIC Microcontrollers"

 

ISBN 0-07-136172-3

 

 

Comes with a CDROM with sources to all of the experiments in the booard, also has a lot in an web browser interface too... Its a good book, starts you with basic electronics and moves into simple to moderate to advaced stuff.

 

Its a good place to start, even comes with a PCB board to do work with (You supply the PIC of your choice - 28 or 40 pin)

 

 

 

 

 

Curt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...