Search this site (www.microchipC.com).







TechToys advertising

Your ad here

 

News

15th April 2008. Free HI-TECH Software PIC32 compiler: time limited offer. See Hi-Tech C compiler offer.

3rd April 2008. HI-TECH C® PRO released for the PIC10/12/16 MCU Family, with Omniscient Code Generation, supporting the PIC10/12/16 MCU Family.

Details, see the product forum post.

21st February 2008. Release Candidate Testing: HI-TECH Software’s PICC-18 PRO v9.62.

The team at HI-TECH Software want to really put the PICC-18 PRO Release Candidate ANSI C compiler through its paces.

HI-TECH would be most grateful if you were able to help them as a tester. Every tester will have the opportunity to earn themself a FREE HI-TECH C compiler of their choice.

To sign up as a tester and get details of the free compiler offer, please click here.

12th February 2008. Beta Release: HI-TECH C PRO for the PIC32 MCU Family. Nearly 50 volunteer testers will, effective week commencing 11 February, put the beta release of HI-TECH C PRO for the PIC32 MCU Family ANSI C compiler through its paces. Engineers wishing to join the beta testing team can sign up here.

9th January 2008. Added tiny threads example project.

8th January 2008 . Added interrupt driven UART for PIC16x.

3rd January 2008. Added link to MiniBasic - includes a complete library of example peripheral source code in C, for PIC18, PIC24, PIC32.

30th November 2007. Updated PIC18F4550 example - a Virtual Comm Port (VCP) over USB.

7th November 2007. Microchip has released the PIC32, based on a MIPS core. The "PIC32 Linux challenge" has been laid down, to fit uClinux or Linux into a PIC micro.

22nd August 2007. Added PIC JoyStick I/O demonstration project.

22nd August 2007. Added PIC18LF4550 plus LCD plus temperature sensor sample project.

25th July 2007. About to increase site source code by 20%, together with upgraded the sample source code the latest PIC and dsPIC micros. Check back later ...

8th June 2007. Added data type header for Hi-Tech C. Makes handling of data in Hi-Tech C easier.

4th June 2007. Corrected the delay routines for the PIC18Fx core.

22th January 2007. Added dsPIC bootloader. This bootloader has auto-baud rate detection, and works with any dsPIC via a configurable XML file.

17th January 2007. Added PIC18F1320 bootloader.

17th January 2007. Added Samsung KS0713 Graphical LCD Driver project for the PIC or dsPIC.

16th January 2007. Added dsPIC30Fx source code in C for C30 compiler.

12th January 2007. Revamped site navigation to add side tabs.

7th October 2006. Planned site revamp is underway.

9th August 2006. Added Google adwords to this site.

7th August 2006. Updated some minor documentation regarding the bootloader.

5th June 2006. Updated some source documents.

11th April 2006. Microchip.com announces that users of buy.microchip.com can purchase pre-programmed chips from buy.microchip.com, after uploading their code to their website. Note that buy.microchip.com is the official Microchip site - not to be confused with this site!

24th Dec 2005. PIC16F87x and PIC16F87xA bootloader v9.50 released. Added PICC-LITE compatibility. Many thanks to Nozomu Muto.

27th August 2005. PIC16F87x and PIC16F87xA bootloader v9.40 released. This is an extremely critical update - read the notes in the release file.

7th July. PIC18Fx and PIC16Fx delay routines updated.

11th June 2005. PIC18F4550 USB RS232 COMx source code updated with install instructions.

19th April 2005. Utility to generate LCD dot matrix drivers. See LCD source code

19th March 2005. Plug your PIC18F4550 into your USB port, and send RS232 characters via a virtual COM port. See source code.

View older news.

11 Nov 1999 Uploaded first
version of this site to the web.

PIC Sample Code in C

Brief Site Map

PIC C Sample Code

A huge amount of PIC sample code in C, over 55 projects. Browse the PIC C sample code archive here.

Frequently Asked Questions for Hi-Tech C

Hi-Tech C Frequently Asked Questions with the 65 most commonly asked questions about Hi-Tech C.

16F876A or PIC16F877A bootloader

Download a program into your PIC micro, in-circuit, within seconds via a serial link. Browse to Shane Tolmies 16F87xA bootloader.

18F1320 bootloader

Download a program into your PIC micro, in-circuit, within seconds via a serial link. Browse to 18F1320 bootloader.

18Fx52 bootloader

Download a program into your PIC micro, in-circuit, within seconds via a serial link. Browse to Shane Tolmies 18Fx52 bootloader.

dsPIC bootloader

Download a program into your dsPIC, in-circuit, within seconds via a serial link. This bootloader has auto-baud rate detection, and works with any dsPIC via a configurable XML file. Browse to Ingenia dsPIC bootloader.

Featured Articles

  • Review of CCS C, one of the compilers for the PIC micro.
  • Review of Hi-Tech C for PIC18x, one of the compilers for the PIC micro.
  • 18Fxxx tutorial with quick start, everything you need to get started on this platform.
  • Tool setup tips, optimization tips for C, and much more. A huge 7.6Mb .pdf file - highly recommended. Read.
  • How to have four PIC16F87x chips on one RS232 bus.
  • "How do I integrate MPLab and an editor such as UltraEdit?".
  • "How do I measure an unknown resistor without using an A/D port?".
  • "Why do I need a common ground point for mixed analogue/digital circuits?".
  • "If I had to condense 3 years of PIC micro experience into one page, what would I say?".
  • A technique thats resulted in development time shortened by 20% and bugs reduced by 10%. Read.
  • Discussion on the most technically superior way of compiling files under Hi-Tech C. Read.

18Fxxx Tutorial

Hello Shane,

Saw your bootloader page (WorkingTex) on Sunday, wired the max232 circuit Monday morning at 09:00 AM and had downloaded my first program into an 'F876 by 09:15!!! By the end of the day, I came to realize that this is by far one of the best time savers I've come across in the last 5 years!
Thanks for an extremely detailed description and once again, thank you for making Petr Kolomaznik's small and powerful bootloader available.

Fritz Braun Jr.
Melbourne, Fl USA
www.bellsouth.net

Everything you need to know to get started using the 18Fxxx micros with C. Optimization tips, tool setup, and more.

Hi-Tech C Speed Optimization

Optimizing your code for speed and small size in loops in Hi-Tech C. See Hi-Tech C speed optimization tips.

Reviews

"Thanks, you got me up and running quickly!"

- Sam Douglas.

Hi-Tech C Micellaneous

C Links

"I found this site one of the most helpful on the net regarding C
development for the PIC family.
Many thanks to the people involved on it!"

- Eduardo Robles

About the Author


Hi,

I have invested literally thousands of hours in this site, for you, and I sincerely hope this archive saves you a lot of time and effort. To enable you to trust what I have written on this site, here is my experience:

  • 4 years doing an Electrical Engineering degree at Canterbury University, graduated with Honours.

  • 1 year of tutoring students for a stage 4 electrical engineering design course at university.

  • 8 years of commercial programming with PIC micros.

  • 10 years of experience, 6 years of commercial programming in C/C++

    2 years of commercial programming with ARM/Linux (PXA255).

  • 4 years of experience with 8086 assembly.

  • 4 years of experience, 2 commercial, with Delphi 7.

Regards,
Shane Tolmie (BEng. Elec. Hons.)
Email: support@microchipc.com



We welcome any suggesions or comments! Send them to Shane Tolmie on support@microchipc.com. This site is a completely separate site to www.microchip.com, and is maintained independently of Microchip Ltd., manufacturers of the PIC micro. All code on this site is free for non-commercial use, unless stated otherwise. Commercial use normally free, however, it is prohibited without contacting support@microchipc.com for permission. All content on this site created by Shane Tolmie is copyrighted by Shane Tolmie 1999-2007.