pic 16C765, using USB C source

Hiya,

I think im ok writing a USB driver for Linux, but Im not really into ASM and was woundering whether anyone could point me towards a tutorial/ project that uses C source for the firmware on the PIC instead of USB, I'm a grown man and probably should be as scared of ASM as I am, but it still makes me quake in my boots.

I've google searched and found mostly ASM, anyone got any pointers? I read somewhere about there being an example provided with a compiler but I havent been able to find this? I dont mind developing under windows and then using Linux for my controlling.

Also will I be able to use the Noppp programmer to program this chip?

Cheers

Dave

Reply to
googlinggoogler
Loading thread data ...

Hmm I have exactly the opposite problem. I want to use asm with a PIC18F2450 (the new,improved usb chip) and all I can find is C code. The only asm code I can find is for the PIC16C765 (as you found). Go to the Microchip web site and search on usb.

Reply to
Dennis

Hi Dennis,

I would like to know why C code is not good for what you want to do ??

Getting the C code as a reference, you could re-write it and know the code works out of the box (app note).

Only very little code needs to be in assembly anymore.

I am just interested in what the attraction to assembly is.

I do all my PIC, x51, AVR, 6502, Z80, projects in C.

I have not done a project in Assembly in years.

Thanks for you feedback.

Donald

Reply to
Donald

May be something useful here:

formatting link

Reply to
Rob

I'm doing this at home as a hobby and am too cheap to buy a C compiler for the PIC (the free ones seem rather limited). I spent years as an asm programmer in my early career. For the PIC architecture it is rather hard for a compiler to generate as good a code as I can do in asm. Most of my projects have been small ones and 1K or so of code in asm isn't a big deal. Particularly if you have built up some macros and common routines. And yes I have done hand compiling and may end up doing that here.

In my day job I use C and C++ so the language isn't a problem. In fact for architectures such as Power I wouldn't even try to beat the compiler

- it does a much better job of keeping track of multiple execution units and condition code registers than I want to.

I suppose I should give in to the AVR crowd and use the GNU tool chain - at least the AVRs have a somewhat C friendly architecture.

Reply to
Dennis

Ok, I can understand that.

I have used the GNU compiler for severial chips (8 and 16 bit), not bad for free. But I always buy a compiler with support for paying projects.

Back to the C code for the PIC18F2450, what app note or code sample did you find.

Thanks

Donald

Reply to
Donald

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.