(added subject tag) Fritz wrote: >I am currently planning to migrate from Pic Basic to Pic C. I understand >,from what I've read so far that this will require a totally different mind >set ( treatment of subroutines , goto's etc). Can anyone recommend reading >material that will help in this change. > >I don't know if I've got a mental block or not, but after years of assembler >and Basic I'm viewing this as a traumatic experience. Maybe I'm wrong. Indeed -- I've found that switching from one programming language to another (in my case, Assembly to C) on a processor whose hardware I'm intimately familiar with can be particularly vexing. I remember thinking "I know how to do a jump table in Assembly on the Z180, but what on earth does it look like in C?" and similar issues. I've always found cope snippets and examples in the new language to be the most useful tool when making this migration. There's a wealth of C-specific stuff out there. One place to look is your compiler -- if it includes sources (*.c) for the library functions, or examples of code, they might be very useful. For example, bit-banged serial comms (with bit shifts, loops, delays, etc.) address many "how-to" issues. I looked at the sample that came with my compiler and adapted it for my own use. In the process I learned how to do shifts, delays, etc. in C. On our website, the Salvo User Manual and several of the App Notes have real-world C code examples (not just Salvo-specific) you may find useful. There are plenty of other sites you can reach via PICList.com, the PIC WebRing, and the compiler vendors. Regards, -- ______________________________________ Andrew E. Kalman, Ph.D. Salvo(TM), The RTOS that runs in tiny places(TM) Pumpkin, Inc. 750 Naples Street San Francisco, CA 94112 tel: (415) 584-6360 fax: (415) 585-7948 web: http://www.pumpkininc.com email: aek@pumpkininc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu