Author Topic: PIC16F747 with HI-TEC C  (Read 3440 times)

0 Members and 1 Guest are viewing this topic.

Offline grimmjawTopic starter

  • Regular Contributor
  • *
  • Posts: 80
PIC16F747 with HI-TEC C
« on: January 19, 2012, 03:53:09 pm »
Hi guys,

I just recently entering the wonderfull world of microcontroller  and bought myself the PICkit 3 Debug express.The kit came with PIC18f45k20 demo board with C18 compiler.After playing around with the board (blinking led etc) , I decided  that I want to build a new project with PIC16F747.

I'm using HI-TEC C compiler to program the pic.Unfortunately I cannot find the header file or the linker file for the PIC16F747.Does anyone idea where can i find these file or am I heading towards a wrong path.


Thanks for the help

grimmjaw
 

Offline Rufus

  • Super Contributor
  • ***
  • Posts: 2095
Re: PIC16F747 with HI-TEC C
« Reply #1 on: January 19, 2012, 04:16:48 pm »
No linker file is required and including <htc.h> should pull in the required headers for the processor selected in MPLAB.

If you want to look at the header for your processor it is pic16f747.h and should have been installed with the compiler.

 

Offline mobbarley

  • Regular Contributor
  • *
  • Posts: 200
  • Country: au
Re: PIC16F747 with HI-TEC C
« Reply #2 on: January 20, 2012, 03:59:34 am »
are you using that chip for the triple pwm? catch: they all use the same frequency
 

Offline grimmjawTopic starter

  • Regular Contributor
  • *
  • Posts: 80
Re: PIC16F747 with HI-TEC C
« Reply #3 on: January 20, 2012, 08:21:45 am »
@Rufus:thanks for the info..It seem to be working now (no error)
@mobbarley:Yup..I planning to play around with RGB led...with same frequency, meaning that all 3 pwm have the same duty cycle or the same speed?
say red at 10%,blue at 30% and green at 50%..or all three colour have to be 10%....

I'm at the office now..cannot really test it myself.Thanks again

grimmjaw

 

Offline mobbarley

  • Regular Contributor
  • *
  • Posts: 200
  • Country: au
Re: PIC16F747 with HI-TEC C
« Reply #4 on: January 20, 2012, 01:08:27 pm »
They just run at the same frequency. You can do an RGB LED easily with any PIC thats clocked reasonably fast - just use a timer interrupt so that the frequency is consistent to avoid glitches.
 

Offline mobbarley

  • Regular Contributor
  • *
  • Posts: 200
  • Country: au
Re: PIC16F747 with HI-TEC C
« Reply #5 on: January 21, 2012, 05:49:14 am »
And if you don't already have the 16f747's laying around you are probably way better off with a more modern pic, try the 18f2XK22 series, something like 5 PWMs or 1 full and 2 half bridges with a spare pwm left over.
 

Offline grimmjawTopic starter

  • Regular Contributor
  • *
  • Posts: 80
Re: PIC16F747 with HI-TEC C
« Reply #6 on: January 24, 2012, 02:48:39 pm »
@mobbarley:I actually have 16f747 laying around but thanks for the tip
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf